diff options
author | Kali Kaneko <kali@futeisha.org> | 2013-08-23 12:17:20 +0200 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2013-08-23 12:43:53 +0200 |
commit | a2d40aefb8ef2b0892ed87b38ddef96ddaf1dcc7 (patch) | |
tree | 4ba5d052fbee53703241bb5efee2a66f4d4578b3 /setup.py | |
parent | 0347bf68d394118460566c8cd5cd49c75b0825f7 (diff) |
Some packaging improvements
* versioneer all the things
* add parse_requirements
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 49 |
1 files changed, 30 insertions, 19 deletions
@@ -14,31 +14,40 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +""" +setup file for leap.keymanager +""" +from setuptools import setup +from setuptools import find_packages +import versioneer +versioneer.versionfile_source = 'src/leap/keymanager/_version.py' +versioneer.versionfile_build = 'leap/keymanager/_version.py' +versioneer.tag_prefix = '' # tags are like 1.2.0 +versioneer.parentdir_prefix = 'leap.keymanager-' -from setuptools import ( - setup, - find_packages -) - - -install_requirements = [ - 'leap.common', - 'simplejson', - 'requests', - 'python-gnupg', -] - +from pkg import utils -tests_requirements = [ - 'mock', - 'leap.soledad.client', +trove_classifiers = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Topic :: Communications :: Email', + 'Topic :: Internet', + 'Topic :: Security :: Cryptography', + 'Topic :: Software Development :: Libraries', ] +# XXX add ref to docs setup( name='leap.keymanager', - version='0.3.0', + version=versioneer.get_version(), + cmdclass=versioneer.get_cmdclass(), url='https://leap.se/', license='GPLv3+', description='LEAP\'s Key Manager', @@ -49,10 +58,12 @@ setup( "point-to-point encryption between parties communicating through " "LEAP infrastructure." ), + classifiers=trove_classifiers, namespace_packages=["leap"], packages=find_packages('src', exclude=['leap.keymanager.tests']), package_dir={'': 'src'}, test_suite='leap.keymanager.tests', - install_requires=install_requirements, - tests_require=tests_requirements, + install_requires=utils.parse_requirements(), + tests_require=utils.parse_requirements( + reqfiles=['pkg/requirements-testing.pip']), ) |