Commit 217469d2578272fa3272b542d15d1309bee5f814
1 parent
0a4236ff
Exists in
update_setup
Update setup.py data and remove requirements.txt
Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Showing
2 changed files
with
24 additions
and
43 deletions
Show diff stats
requirements.txt
setup.py
| 1 | -import codecs | |
| 2 | -import os | |
| 3 | -import re | |
| 1 | +""" | |
| 2 | +colab-spb plugin | |
| 3 | +=================== | |
| 4 | +A SPB plugin for Colab. | |
| 5 | +""" | |
| 6 | +from setuptools import setup, find_packages | |
| 4 | 7 | |
| 5 | -from setuptools import setup | |
| 8 | +install_requires = [ | |
| 9 | + 'colab', | |
| 10 | +] | |
| 6 | 11 | |
| 7 | -# if you are not using vagrant, just delete os.link directly, | |
| 8 | -# The hard link only saves a little disk space, so you should not care | |
| 9 | -if os.environ.get('USER', '') == 'vagrant': | |
| 10 | - del os.link | |
| 11 | - | |
| 12 | - | |
| 13 | -def read(*parts): | |
| 14 | - return codecs.open(os.path.join(os.path.dirname(__file__), *parts), | |
| 15 | - encoding='utf8').read() | |
| 16 | - | |
| 17 | - | |
| 18 | -def find_version(*file_paths): | |
| 19 | - version_file = read(*file_paths) | |
| 20 | - version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", | |
| 21 | - version_file, re.M) | |
| 22 | - if version_match: | |
| 23 | - return version_match.group(1) | |
| 24 | - raise RuntimeError("Unable to find version string.") | |
| 12 | +tests_require = ['mock'] | |
| 25 | 13 | |
| 26 | 14 | |
| 27 | 15 | setup( |
| 28 | - name='colab_spb', | |
| 29 | - url='https://github.com/colab/colab-spb', | |
| 30 | - description='Yet another Django reverse proxy application.', | |
| 31 | - version=find_version('colab_spb/__init__.py'), | |
| 32 | - long_description=read('README.rst'), | |
| 33 | - packages=['colab_spb'], | |
| 34 | - install_requires=[ | |
| 35 | - 'colab', | |
| 36 | - ], | |
| 37 | - tests_require=['mock'], | |
| 38 | - test_suite="tests.run.runtests", | |
| 16 | + name="colab-spb", | |
| 17 | + version='0.1.0', | |
| 39 | 18 | author='Macartur Sousa', |
| 40 | 19 | author_email='macartur.sc@gmail.com', |
| 41 | - license='GPL 3.0', | |
| 20 | + url='https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb', | |
| 21 | + description='A SPB plugin for Colab', | |
| 22 | + long_description=__doc__, | |
| 23 | + license='GPLv3', | |
| 24 | + zip_safe=False, | |
| 25 | + install_requires=install_requires, | |
| 26 | + test_suite="tests.runtests.run", | |
| 27 | + tests_require=tests_require, | |
| 28 | + extras_require={'test': tests_require}, | |
| 29 | + include_package_data=True, | |
| 42 | 30 | classifiers=[ |
| 43 | - 'Development Status :: 3 - Alpha', | |
| 44 | - 'Environment :: Web Environment', | |
| 45 | 31 | 'Framework :: Django', |
| 46 | 32 | 'Intended Audience :: Developers', |
| 33 | + 'Intended Audience :: System Administrators', | |
| 47 | 34 | 'Operating System :: OS Independent', |
| 48 | - 'Programming Language :: Python', | |
| 49 | - 'Programming Language :: Python :: 2', | |
| 50 | - 'Programming Language :: Python :: 2.7', | |
| 51 | - 'Topic :: Internet :: WWW/HTTP', | |
| 52 | - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | |
| 53 | - 'Topic :: Internet :: WWW/HTTP :: WSGI', | |
| 35 | + 'Topic :: Software Development' | |
| 54 | 36 | ], |
| 55 | 37 | ) | ... | ... |