Uh oh!
There was an error while loading. Please reload this page.
forked from Materials-Consortia/optimade-python-tools
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·136 lines (127 loc) · 3.49 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·136 lines (127 loc) · 3.49 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
importre
frompathlibimportPath
fromsetuptoolsimportfind_packages, setup
module_dir=Path(__file__).resolve().parent
withopen(module_dir.joinpath("optimade/__init__.py")) asversion_file:
forlineinversion_file:
match=re.match(r'__version__ = "(.*)"', line)
ifmatchisnotNone:
VERSION=match.group(1)
break
else:
raiseRuntimeError(
f"Could not determine package version from {version_file.name} !"
)
# Dependencies
# Server minded
elastic_deps= ["elasticsearch-dsl~=7.4,<8.0", "elasticsearch~=7.17"]
mongo_deps= ["pymongo>=3.12.1,<5", "mongomock~=4.1"]
server_deps= ["uvicorn~=0.19", "fastapi~=0.86,<0.99", "pyyaml~=6.0"] +mongo_deps
# Client minded
aiida_deps= ["aiida-core~=2.1"]
http_client_deps= [
"httpx~=0.23",
"rich~=13.0",
"click~=8.1",
]
ase_deps= ["ase~=3.22"]
cif_deps= ["numpy>=1.20"]
pdb_deps=cif_deps
pymatgen_deps= ["pymatgen>=2022"]
jarvis_deps= ["jarvis-tools>=2023.1.8"]
client_deps=cif_deps
# General
docs_deps= [
"mike~=1.1",
"mkdocs~=1.4",
"mkdocs-awesome-pages-plugin~=2.8",
"mkdocs-material~=9.0",
"mkdocstrings[python-legacy]~=0.20",
]
testing_deps= [
"build~=0.9.0",
"jsondiff~=2.0",
"pytest~=7.2",
"pytest-cov~=4.0",
] +server_deps
dev_deps= (
[
"black~=23.1",
"flake8~=6.0",
"isort~=5.12",
"mypy~=1.0",
"pylint~=2.15",
"pre-commit~=3.0",
"invoke~=2.0",
"types-all==1.0.0",
"ruff~=0.0",
]
+docs_deps
+testing_deps
+client_deps
+http_client_deps
)
all_deps= (
dev_deps
+elastic_deps
+aiida_deps
+ase_deps
+pymatgen_deps
+jarvis_deps
+http_client_deps
)
setup(
name="optimade",
version=VERSION,
url="https://github.com/Materials-Consortia/optimade-python-tools",
license="MIT",
author="OPTIMADE Development Team",
author_email="dev@optimade.org",
description="Tools for implementing and consuming OPTIMADE APIs.",
long_description=open(module_dir.joinpath("README.md")).read(),
long_description_content_type="text/markdown",
keywords="optimade jsonapi materials",
include_package_data=True,
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Database :: Front-Ends",
],
python_requires=">=3.9",
install_requires=[
"lark~=1.1",
"pydantic~=1.10,>=1.10.2,!=1.10.7",
"email_validator~=1.2",
"requests~=2.28",
],
extras_require={
"all": all_deps,
"dev": dev_deps,
"http_client": http_client_deps,
"docs": docs_deps,
"testing": testing_deps,
"server": server_deps,
"client": client_deps,
"elastic": elastic_deps,
"mongo": mongo_deps,
"aiida": aiida_deps,
"ase": ase_deps,
"cif": cif_deps,
"pdb": pdb_deps,
"pymatgen": pymatgen_deps,
"jarvis": jarvis_deps,
},
entry_points={
"console_scripts": [
"optimade-validator=optimade.validator:validate",
"optimade-get=optimade.client.cli:get",
]
},
)