-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
executable file
·61 lines (50 loc) · 2.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
import io
import os
import re
import sys
from setuptools import setup, find_packages
HERE = os.path.dirname(__file__)
with io.open(os.path.join(HERE, 'repositorytools', '__init__.py'), 'rb') as fd:
found = re.search(br'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE)
version = found and found.group(1)
if not version:
raise RuntimeError('Cannot find version information')
# README.rst file may contains unicode characters, so we use utf8 to read it
with io.open(os.path.join(HERE, 'README.rst'), mode="r", encoding="utf8") as fd:
long_description = fd.read()
install_requires = ['requests>=2.1', 'six', 'requests-toolbelt']
if sys.version_info < (2, 7):
install_requires.append("argparse < 2")
setup(
name='repositorytools',
version=str(version),
description='Tools for working with artifact repositories',
long_description=long_description,
author='Michel Samia and package management team',
author_email='[email protected]',
url='https://github.com/packagemgmt/repositorytools',
license='Apache 2.0',
platforms='any',
install_requires=install_requires,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
'Environment :: Console',
],
packages=find_packages(),
download_url='https://github.com/stardust85/repositorytools/tarball/{version}'.format(version=version),
# --- install scripts in virtualenv
entry_points={'console_scripts':
['artifact = repositorytools.cli.commands.artifact:artifact_cli',
'repo = repositorytools.cli.commands.repo:repo_cli']}
)