-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
57 lines (48 loc) · 1.45 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
from setuptools import setup, find_packages
import os
import sys
PYTHON3 = sys.version_info > (3, )
HERE = os.path.abspath(os.path.dirname(__file__))
def readme():
with open(os.path.join(HERE, 'README.md')) as f:
return f.read()
def get_version():
with open(os.path.join(HERE, 'nexus_upload/__init__.py'), 'r') as f:
content = ''.join(f.readlines())
env = {}
if PYTHON3:
exec(content, env, env)
else:
compiled = compile(content, 'get_version', 'single')
eval(compiled, env, env)
return env['__version__']
setup(
name='nexus_upload',
version=get_version(),
description='Upload packages to Nexus server',
long_description=readme(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Networking',
],
keywords='nexus package upload',
url='https://github.com/gebing/nexus_upload',
license='Apache License 2.0',
author='gebing',
author_email='[email protected]',
packages=find_packages(),
scripts=['nexus-upload'],
include_package_data=True,
platforms = "any",
install_requires=[
"requests",
"paramiko",
],
)