forked from lbryio/lbry-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (60 loc) · 1.86 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
import os
from lbrynet import __version__
from setuptools import setup, find_packages
# TODO: find a way to keep this in sync with requirements.txt
#
# 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.
# See https://packaging.python.org/requirements/ for more details.
requires = [
'Twisted',
'appdirs',
'base58',
'envparse',
'jsonrpc',
'jsonschema',
'lbryum>=2.7.6',
'miniupnpc',
'pycrypto',
'pyyaml',
'requests',
'requests_futures',
'seccure',
'txJSON-RPC',
'zope.interface',
]
console_scripts = [
'lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:start',
'lbrynet-cli = lbrynet.lbrynet_daemon.DaemonCLI:main'
]
def package_files(directory):
for path, _, filenames in os.walk(directory):
for filename in filenames:
yield os.path.join('..', path, filename)
package_name = "lbrynet"
base_dir = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(base_dir, 'README.md')) as f:
long_description = f.read().decode('utf-8')
setup(
name=package_name,
version=__version__,
author="LBRY Inc.",
author_email="[email protected]",
url="https://lbry.io",
description="A decentralized media library and marketplace",
long_description=long_description,
keywords="lbry protocol media",
license='MIT',
packages=find_packages(base_dir, exclude=['tests']),
install_requires=requires,
entry_points={'console_scripts': console_scripts},
package_data={
package_name: list(package_files('lbrynet/resources/ui'))
},
zip_safe=False,
)