2015-08-20 11:27:15 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2016-03-14 12:30:22 -04:00
|
|
|
import os
|
2016-08-31 20:20:07 -04:00
|
|
|
from lbrynet import __version__
|
2017-03-13 14:10:31 -04:00
|
|
|
from setuptools import setup, find_packages
|
2016-12-16 11:04:47 -06:00
|
|
|
|
|
|
|
# TODO: find a way to keep this in sync with requirements.txt
|
2017-02-23 14:18:52 -06: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 15:10:52 -04:00
|
|
|
#
|
|
|
|
# See https://packaging.python.org/requirements/ and
|
|
|
|
# https://caremad.io/posts/2013/07/setup-vs-requirement/ for more details.
|
2016-08-31 20:20:07 -04:00
|
|
|
requires = [
|
2018-07-21 14:02:35 -04:00
|
|
|
'twisted[tls]',
|
2017-01-31 11:52:43 -08:00
|
|
|
'appdirs',
|
2018-05-28 18:07:23 -04:00
|
|
|
'distro',
|
2017-02-23 14:18:52 -06:00
|
|
|
'base58',
|
2017-01-31 11:52:43 -08:00
|
|
|
'envparse',
|
|
|
|
'jsonrpc',
|
2018-07-24 03:06:53 -04:00
|
|
|
'cryptography',
|
|
|
|
'lbryschema',
|
2018-07-06 18:31:35 -04:00
|
|
|
'torba',
|
2017-01-31 11:52:43 -08:00
|
|
|
'miniupnpc',
|
2018-08-22 13:12:34 -04:00
|
|
|
'txupnp==0.0.1a11',
|
2017-02-23 14:18:52 -06:00
|
|
|
'pyyaml',
|
2017-01-31 11:52:43 -08:00
|
|
|
'requests',
|
|
|
|
'txJSON-RPC',
|
|
|
|
'zope.interface',
|
2018-05-05 20:51:49 -03:00
|
|
|
'treq',
|
2018-06-09 17:39:36 -04:00
|
|
|
'docopt',
|
2018-07-06 18:31:35 -04:00
|
|
|
'colorama==0.3.7',
|
2018-07-30 17:58:17 -04:00
|
|
|
'six',
|
2016-08-31 20:20:07 -04:00
|
|
|
]
|
2016-02-27 17:49:49 -05:00
|
|
|
|
2016-08-31 20:20:07 -04:00
|
|
|
console_scripts = [
|
2017-06-25 21:04:33 -04:00
|
|
|
'lbrynet-daemon = lbrynet.daemon.DaemonControl:start',
|
2017-12-05 11:38:50 -05:00
|
|
|
'lbrynet-cli = lbrynet.daemon.DaemonCLI:main',
|
|
|
|
'lbrynet-console = lbrynet.daemon.DaemonConsole:main'
|
2016-08-31 20:20:07 -04:00
|
|
|
]
|
2016-02-27 17:49:49 -05:00
|
|
|
|
2016-11-09 09:29:39 -06: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 14:10:31 -04:00
|
|
|
base_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
# Get the long description from the README file
|
2017-08-28 14:32:55 -04:00
|
|
|
with open(os.path.join(base_dir, 'README.md'), 'rb') as f:
|
2017-03-13 16:05:54 -04:00
|
|
|
long_description = f.read().decode('utf-8')
|
2017-01-31 11:52:43 -08:00
|
|
|
|
2017-03-13 14:10:31 -04:00
|
|
|
setup(
|
2018-07-21 16:24:37 -04:00
|
|
|
name="lbry",
|
2017-03-13 14:10:31 -04:00
|
|
|
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',
|
2018-07-24 03:06:53 -04:00
|
|
|
python_requires='>=3.6',
|
2018-07-16 23:32:37 -04:00
|
|
|
packages=find_packages(exclude=('tests',)),
|
2017-03-13 14:10:31 -04:00
|
|
|
install_requires=requires,
|
|
|
|
entry_points={'console_scripts': console_scripts},
|
|
|
|
zip_safe=False,
|
2018-07-06 18:31:35 -04:00
|
|
|
extras_require={
|
|
|
|
'test': (
|
|
|
|
'mock>=2.0,<3.0',
|
|
|
|
'faker>=0.8,<1.0'
|
|
|
|
)
|
|
|
|
}
|
2017-01-31 11:52:43 -08:00
|
|
|
)
|