summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-23 10:29:20 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-23 10:29:20 -0300
commite85fbf156ba5ed3e24da6d92e8d021fe6fd9037d (patch)
tree4ba5d052fbee53703241bb5efee2a66f4d4578b3 /setup.py
parent0347bf68d394118460566c8cd5cd49c75b0825f7 (diff)
parenta2d40aefb8ef2b0892ed87b38ddef96ddaf1dcc7 (diff)
Merge remote-tracking branch 'kali/feature/improve_packaging' into develop
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py49
1 files changed, 30 insertions, 19 deletions
diff --git a/setup.py b/setup.py
index c42ad2b0..1e48931a 100644
--- a/setup.py
+++ b/setup.py
@@ -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']),
)