2015-08-20 17:27:15 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2016-02-27 23:49:49 +01:00
|
|
|
import sys
|
2016-03-14 17:30:22 +01:00
|
|
|
import os
|
2016-10-16 08:49:19 +02:00
|
|
|
import site
|
2016-09-01 02:20:07 +02:00
|
|
|
from lbrynet import __version__
|
|
|
|
|
2016-03-14 17:30:22 +01:00
|
|
|
|
2016-03-22 02:33:55 +01:00
|
|
|
base_dir = os.path.abspath(os.path.dirname(__file__))
|
2016-09-01 02:20:07 +02:00
|
|
|
package_name = "lbrynet"
|
|
|
|
dist_name = "LBRY"
|
|
|
|
description = "A decentralized media library and marketplace"
|
|
|
|
author = "LBRY, Inc"
|
|
|
|
url = "lbry.io"
|
|
|
|
maintainer = "Jack Robison"
|
|
|
|
maintainer_email = "jack@lbry.io"
|
|
|
|
keywords = "LBRY"
|
2016-03-22 02:33:55 +01:00
|
|
|
|
2016-12-16 18:04:47 +01:00
|
|
|
|
|
|
|
# TODO: find a way to keep this in sync with requirements.txt
|
2016-09-01 02:20:07 +02:00
|
|
|
requires = [
|
2017-01-31 20:52:43 +01:00
|
|
|
'Twisted',
|
|
|
|
'appdirs',
|
|
|
|
'argparse',
|
|
|
|
'colorama',
|
|
|
|
'dnspython',
|
|
|
|
'ecdsa',
|
|
|
|
'envparse',
|
|
|
|
'gmpy',
|
|
|
|
'jsonrpc',
|
|
|
|
'jsonrpclib',
|
|
|
|
'jsonschema',
|
|
|
|
'lbryum',
|
|
|
|
'loggly-python-handler',
|
|
|
|
'miniupnpc',
|
|
|
|
'pbkdf2',
|
|
|
|
'protobuf',
|
|
|
|
'pycrypto',
|
|
|
|
'qrcode',
|
|
|
|
'requests',
|
|
|
|
'requests_futures',
|
|
|
|
'seccure',
|
|
|
|
'simplejson',
|
|
|
|
'six',
|
|
|
|
'slowaes',
|
|
|
|
'txJSON-RPC',
|
|
|
|
'wsgiref',
|
|
|
|
'zope.interface',
|
|
|
|
'base58',
|
|
|
|
'googlefinance',
|
|
|
|
'pyyaml',
|
|
|
|
'service_identity',
|
|
|
|
'ndg-httpsclient',
|
2016-09-01 02:20:07 +02:00
|
|
|
]
|
2016-02-27 23:49:49 +01:00
|
|
|
|
2016-12-16 18:04:47 +01:00
|
|
|
|
2016-09-01 02:20:07 +02:00
|
|
|
console_scripts = [
|
2016-09-26 03:32:56 +02:00
|
|
|
'lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:start',
|
|
|
|
'stop-lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:stop',
|
|
|
|
'lbrynet-cli = lbrynet.lbrynet_daemon.DaemonCLI:main'
|
2016-09-01 02:20:07 +02:00
|
|
|
]
|
2016-02-27 23:49:49 +01:00
|
|
|
|
2016-11-09 16:29:39 +01:00
|
|
|
|
|
|
|
def package_files(directory):
|
|
|
|
for path, _, filenames in os.walk(directory):
|
|
|
|
for filename in filenames:
|
|
|
|
yield os.path.join('..', path, filename)
|
|
|
|
|
|
|
|
|
2017-01-31 20:52:43 +01:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
|
|
|
|
setup(name=package_name,
|
|
|
|
description=description,
|
|
|
|
version=__version__,
|
|
|
|
maintainer=maintainer,
|
|
|
|
maintainer_email=maintainer_email,
|
|
|
|
url=url,
|
|
|
|
author=author,
|
|
|
|
keywords=keywords,
|
|
|
|
packages=find_packages(base_dir),
|
|
|
|
install_requires=requires,
|
|
|
|
entry_points={'console_scripts': console_scripts},
|
|
|
|
package_data={
|
|
|
|
package_name: list(package_files('lbrynet/resources/ui'))
|
|
|
|
},
|
|
|
|
zip_safe=False,
|
|
|
|
)
|