-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (46 loc) · 1.53 KB
/
setup.py
File metadata and controls
53 lines (46 loc) · 1.53 KB
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
from setuptools import setup
from os import path
import sys
NAME = 'argo-acc-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 = ['requests']
setup(
name=NAME,
version=get_ver(),
author='GRNET',
author_email='wvkarageorgos@admin.grnet.gr',
license='ASL 2.0',
description='A simple python library for interacting with the ARGO Accounting Service',
long_description=long_description,
long_description_content_type='text/markdown',
tests_require=[
'setuptools_scm',
'httmock',
'pytest'
],
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules"
],
url='https://github.com/ARGOeu/argo-acc-library',
package_dir={'argo_acc_library': 'pymod/'},
packages=['argo_acc_library'],
install_requires=REQUIREMENTS
)