update setup.py

This commit is contained in:
Alex Grintsvayg 2017-03-13 14:10:31 -04:00
parent 031d9c28ed
commit be4e1c99d5

View file

@ -1,21 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import os import os
import site
from lbrynet import __version__ from lbrynet import __version__
from setuptools import setup, find_packages
base_dir = os.path.abspath(os.path.dirname(__file__))
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"
# TODO: find a way to keep this in sync with requirements.txt # TODO: find a way to keep this in sync with requirements.txt
# #
@ -44,7 +31,6 @@ requires = [
'zope.interface', 'zope.interface',
] ]
console_scripts = [ console_scripts = [
'lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:start', 'lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:start',
'stop-lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:stop', 'stop-lbrynet-daemon = lbrynet.lbrynet_daemon.DaemonControl:stop',
@ -58,22 +44,28 @@ def package_files(directory):
yield os.path.join('..', path, filename) yield os.path.join('..', path, filename)
from setuptools import setup, find_packages 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'), encoding='utf-8') as f:
long_description = f.read()
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',
setup(name=package_name, packages=find_packages(base_dir, exclude=['tests']),
description=description, install_requires=requires,
version=__version__, entry_points={'console_scripts': console_scripts},
maintainer=maintainer, package_data={
maintainer_email=maintainer_email, package_name: list(package_files('lbrynet/resources/ui'))
url=url, },
author=author, zip_safe=False,
keywords=keywords,
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,
) )