-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
91 lines (82 loc) · 3.21 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# Copyright 2017 University of Southern California
# Distributed under the Apache License, Version 2.0. See LICENSE for more info.
#
""" Installation script for the deriva package.
"""
from setuptools import setup, find_packages
import re
import io
__version__ = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open('deriva/core/__init__.py', encoding='utf_8_sig').read()
).group(1)
def get_readme_contents():
with io.open('README.md') as readme_file:
return readme_file.read()
url = "https://github.com/informatics-isi-edu/deriva-py"
author = 'USC Information Sciences Institute, Informatics Systems Research Division'
author_email = 'isrd-support@isi.edu'
setup(
name='deriva',
description='Python APIs and CLIs (Command-Line Interfaces) for the DERIVA platform.',
long_description='For further information, visit the project [homepage](%s).' % url,
long_description_content_type='text/markdown',
url=url,
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
version=__version__,
packages=find_packages(exclude=["tests"]),
package_data={
'deriva.config': ['examples/*.json'],
'deriva.core': ['schemas/*.schema.json']
},
python_requires='>=3.8, <4',
entry_points={
'console_scripts': [
'deriva-upload-cli = deriva.transfer.upload.__main__:main',
'deriva-download-cli = deriva.transfer.download.__main__:main',
'deriva-catalog-cli = deriva.core.catalog_cli:main',
'deriva-hatrac-cli = deriva.core.hatrac_cli:main',
'deriva-acl-config = deriva.config.acl_config:main',
'deriva-annotation-config = deriva.config.annotation_config:main',
'deriva-annotation-dump = deriva.config.dump_catalog_annotations:main',
'deriva-annotation-rollback = deriva.config.rollback_annotation:main',
'deriva-annotation-validate = deriva.config.annotation_validate:main',
'deriva-sitemap-cli = deriva.seo.sitemap_cli:main',
'deriva-backup-cli = deriva.transfer.backup.__main__:main',
'deriva-restore-cli = deriva.transfer.restore.__main__:main',
'deriva-globus-auth-utils = deriva.core.utils.globus_auth_utils:main'
]
},
install_requires=[
'packaging',
'requests',
'certifi',
'pika',
'urllib3>=1.26,<3',
'portalocker>=1.2.1',
'bdbag>=1.7.3',
'globus_sdk>=3,<4',
'fair-research-login>=0.3.1',
'fair-identifiers-client>=0.5.1',
'jsonschema>=3.1'
],
license='Apache 2.0',
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
)