From 217469d2578272fa3272b542d15d1309bee5f814 Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Thu, 3 Sep 2015 15:31:57 -0300 Subject: [PATCH] Update setup.py data and remove requirements.txt --- requirements.txt | 1 - setup.py | 66 ++++++++++++++++++++++++------------------------------------------ 2 files changed, 24 insertions(+), 43 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 163f2f7..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -colab \ No newline at end of file diff --git a/setup.py b/setup.py index a61c2f9..8b15c4e 100644 --- a/setup.py +++ b/setup.py @@ -1,55 +1,37 @@ -import codecs -import os -import re +""" +colab-spb plugin +=================== +A SPB plugin for Colab. +""" +from setuptools import setup, find_packages -from setuptools import setup +install_requires = [ + 'colab', +] -# if you are not using vagrant, just delete os.link directly, -# The hard link only saves a little disk space, so you should not care -if os.environ.get('USER', '') == 'vagrant': - del os.link - - -def read(*parts): - return codecs.open(os.path.join(os.path.dirname(__file__), *parts), - encoding='utf8').read() - - -def find_version(*file_paths): - version_file = read(*file_paths) - version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", - version_file, re.M) - if version_match: - return version_match.group(1) - raise RuntimeError("Unable to find version string.") +tests_require = ['mock'] setup( - name='colab_spb', - url='https://github.com/colab/colab-spb', - description='Yet another Django reverse proxy application.', - version=find_version('colab_spb/__init__.py'), - long_description=read('README.rst'), - packages=['colab_spb'], - install_requires=[ - 'colab', - ], - tests_require=['mock'], - test_suite="tests.run.runtests", + name="colab-spb", + version='0.1.0', author='Macartur Sousa', author_email='macartur.sc@gmail.com', - license='GPL 3.0', + url='https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb', + description='A SPB plugin for Colab', + long_description=__doc__, + license='GPLv3', + zip_safe=False, + install_requires=install_requires, + test_suite="tests.runtests.run", + tests_require=tests_require, + extras_require={'test': tests_require}, + include_package_data=True, classifiers=[ - 'Development Status :: 3 - Alpha', - 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Topic :: Internet :: WWW/HTTP', - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', - 'Topic :: Internet :: WWW/HTTP :: WSGI', + 'Topic :: Software Development' ], ) -- libgit2 0.21.2