2015-08-20 17:27:15 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2016-03-14 17:30:22 +01:00
|
|
|
import os
|
2016-09-01 02:20:07 +02:00
|
|
|
from lbrynet import __version__
|
2017-03-13 19:10:31 +01:00
|
|
|
from setuptools import setup, find_packages
|
2016-12-16 18:04:47 +01:00
|
|
|
|
|
|
|
# TODO: find a way to keep this in sync with requirements.txt
|
2017-02-23 21:18:52 +01:00
|
|
|
#
|
|
|
|
# Note though that this list is intentionally less restrictive than
|
|
|
|
# requirements.txt. This is only the libraries that are direct
|
|
|
|
# dependencies of the lbrynet library. requirements.txt includes
|
|
|
|
# dependencies of dependencies and specific versions that we know
|
|
|
|
# all work together.
|
2017-04-10 21:10:52 +02:00
|
|
|
#
|
|
|
|
# See https://packaging.python.org/requirements/ and
|
|
|
|
# https://caremad.io/posts/2013/07/setup-vs-requirement/ for more details.
|
2016-09-01 02:20:07 +02:00
|
|
|
requires = [
|
2017-01-31 20:52:43 +01:00
|
|
|
'Twisted',
|
|
|
|
'appdirs',
|
2017-02-23 21:18:52 +01:00
|
|
|
'base58',
|
2017-01-31 20:52:43 +01:00
|
|
|
'envparse',
|
|
|
|
'jsonrpc',
|
|
|
|
'jsonschema',
|
2017-10-25 23:33:55 +02:00
|
|
|
'lbryum==3.1.10',
|
|
|
|
'lbryschema==0.0.13',
|
2017-01-31 20:52:43 +01:00
|
|
|
'miniupnpc',
|
|
|
|
'pycrypto',
|
2017-02-23 21:18:52 +01:00
|
|
|
'pyyaml',
|
2017-01-31 20:52:43 +01:00
|
|
|
'requests',
|
2017-03-23 23:25:31 +01:00
|
|
|
'txrequests',
|
2017-01-31 20:52:43 +01:00
|
|
|
'seccure',
|
|
|
|
'txJSON-RPC',
|
|
|
|
'zope.interface',
|
2017-05-28 22:02:22 +02:00
|
|
|
'docopt'
|
2016-09-01 02:20:07 +02:00
|
|
|
]
|
2016-02-27 23:49:49 +01:00
|
|
|
|
2016-09-01 02:20:07 +02:00
|
|
|
console_scripts = [
|
2017-06-26 03:04:33 +02:00
|
|
|
'lbrynet-daemon = lbrynet.daemon.DaemonControl:start',
|
|
|
|
'lbrynet-cli = 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-03-13 19:10:31 +01:00
|
|
|
package_name = "lbrynet"
|
|
|
|
base_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
# Get the long description from the README file
|
2017-08-28 20:32:55 +02:00
|
|
|
with open(os.path.join(base_dir, 'README.md'), 'rb') as f:
|
2017-03-13 21:05:54 +01:00
|
|
|
long_description = f.read().decode('utf-8')
|
2017-01-31 20:52:43 +01:00
|
|
|
|
2017-03-13 19:10:31 +01:00
|
|
|
setup(
|
|
|
|
name=package_name,
|
|
|
|
version=__version__,
|
|
|
|
author="LBRY Inc.",
|
|
|
|
author_email="hello@lbry.io",
|
|
|
|
url="https://lbry.io",
|
|
|
|
description="A decentralized media library and marketplace",
|
|
|
|
long_description=long_description,
|
|
|
|
keywords="lbry protocol media",
|
|
|
|
license='MIT',
|
2017-09-28 19:21:26 +02:00
|
|
|
packages=find_packages(base_dir),
|
2017-03-13 19:10:31 +01:00
|
|
|
install_requires=requires,
|
|
|
|
entry_points={'console_scripts': console_scripts},
|
|
|
|
package_data={
|
|
|
|
package_name: list(package_files('lbrynet/resources/ui'))
|
|
|
|
},
|
|
|
|
zip_safe=False,
|
2017-01-31 20:52:43 +01:00
|
|
|
)
|