Commit 7ba24ecf authored by Michal Čihař's avatar Michal Čihař

Include requirements in setup

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ba244e23
...@@ -25,6 +25,9 @@ from setuptools import setup ...@@ -25,6 +25,9 @@ from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read() README = readme.read()
with open('requirements.txt') as requirements:
REQUIRES = requirements.read().splitlines()
# allow setup.py to be run from any path # allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
...@@ -90,6 +93,15 @@ setup( ...@@ -90,6 +93,15 @@ setup(
download_url='https://github.com/nijel/weblate', download_url='https://github.com/nijel/weblate',
author='Michal Čihař', author='Michal Čihař',
author_email='michal@cihar.com', author_email='michal@cihar.com',
install_requires=REQUIRES,
extras_require={
'Mercurial': ['Mercurial>=2.8'],
'Unicode': [
'https://github.com/SmileyChris/pyuca/archive/master.zip'
],
'Avatars': ['pyLibravatar', 'pydns'],
'Android': ['babel'],
},
classifiers=[ classifiers=[
'Environment :: Web Environment', 'Environment :: Web Environment',
'Framework :: Django', 'Framework :: Django',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment