forked from cernopendata/cernopendata-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
95 lines (86 loc) · 2.71 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
92
93
94
95
# -*- coding: utf-8 -*-
#
# This file is part of cernopendata-client.
#
# Copyright (C) 2019, 2020, 2021, 2022, 2023, 2024 CERN.
#
# cernopendata-client is free software; you can redistribute it and/or modify
# it under the terms of the GPLv3 license; see LICENSE file for more details.
"""cernopendata-client."""
import os
import re
from setuptools import setup
readme = open("README.md").read()
history = open("CHANGELOG.md").read()
extras_require = {
"docs": [
"myst-parser",
"jinja2<3.1.0",
"Sphinx>=1.4.4",
"sphinx-rtd-theme>=0.1.9",
"sphinx-click>=2.5.0",
],
"pycurl": ["pycurl>=7"],
"tests": [
"black>=19.10b0",
"check-manifest>=0.25",
"coverage>=4.0",
"mock>=3.0",
"pydocstyle>=1.0.0",
"pytest-cov>=1.8.0",
"pytest>=2.8.0",
"pytest-mock>=3.0",
],
"xrootd": [
"xrootd>=4.12.2",
],
}
extras_require["all"] = []
for key, reqs in extras_require.items():
if ":" == key[0]:
continue
extras_require["all"].extend(reqs)
install_requires = ["click>=7", "requests>=2"]
# Get the version string. Cannot be done with import!
with open(os.path.join("cernopendata_client", "version.py"), "rt") as f:
version = re.search('__version__\s*=\s*"(?P<version>.*)"\n', f.read()).group(
"version"
)
setup(
name="cernopendata-client",
version=version,
description=__doc__,
long_description=readme + "\n\n" + history,
long_description_content_type="text/markdown",
author="CERN Open Data",
author_email="[email protected]",
packages=[
"cernopendata_client",
],
extras_require=extras_require,
python_requires=">=3.8",
install_requires=install_requires,
entry_points={
"console_scripts": [
"cernopendata-client = cernopendata_client.cli:cernopendata_client"
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Archiving",
],
)