forked from ARGOeu/argo-ams-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.9 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
from setuptools import setup
from os import path
import sys
NAME = 'argo-ams-library'
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()
def get_ver():
try:
with open(NAME + '.spec') as f:
for line in f:
if "Version:" in line:
return line.split()[1]
except IOError:
print("Make sure that %s is in directory" % (NAME + '.spec'))
raise SystemExit(1)
REQUIREMENTS = []
if sys.version_info[0] == 2:
REQUIREMENTS = ['requests==2.20.0', 'certifi<2020.4.5.2'],
else:
REQUIREMENTS = ['requests'],
setup(
name=NAME,
version=get_ver(),
author='SRCE, GRNET',
license='ASL 2.0',
description='A simple python library for interacting with the ARGO Messaging Service',
long_description=long_description,
long_description_content_type='text/markdown',
tests_require=[
'setuptools_scm',
'httmock',
'pytest'
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules"
],
url='https://github.com/ARGOeu/argo-ams-library',
package_dir={'argo_ams_library': 'pymod/'},
packages=['argo_ams_library'],
install_requires=REQUIREMENTS
)