forked from nazrulworld/fhir.resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
130 lines (117 loc) · 4.4 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import platform
from setuptools import find_namespace_packages, setup
PY_VERSION_TUPLE = platform.python_version_tuple()
PY_VERSION_10_OR_LATER = PY_VERSION_TUPLE[0] == "3" and int(PY_VERSION_TUPLE[1]) >= 10
PY_VERSION_11_OR_LATER = PY_VERSION_10_OR_LATER and int(PY_VERSION_TUPLE[1]) >= 11
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
requirements = ["pydantic[email]>=1.7.2,<2.0.0"]
setup_requirements = ["pytest-runner"]
orjson_requirements = ["orjson>=3.4.3"]
yaml_requirements = ["PyYAML>=5.4.1"]
xml_requirements = ["lxml"]
test_requirements = [
"coverage",
"pytest>5.4.0;python_version>='3.6'",
"pytest-cov>=2.10.0;python_version>='3.6'",
"flake8" + (PY_VERSION_10_OR_LATER and "==6.0" or "==5.0.4;python_version<'3.10'"),
"flake8-isort"
+ (PY_VERSION_10_OR_LATER and ">=6.0.0" or "==4.2.0;python_version<'3.10'"),
"flake8-bugbear"
+ (PY_VERSION_10_OR_LATER and ">=22.12.6" or "==20.1.4;python_version<'3.10'"),
"requests==2.23.0;python_version<'3.10'",
"isort" + (PY_VERSION_10_OR_LATER and ">=5.11.4" or "==4.3.21"),
"black",
"mypy" + (PY_VERSION_11_OR_LATER and ">=0.991" or "==0.812"),
"setuptools==65.6.3;python_version>='3.7'",
]
if PY_VERSION_10_OR_LATER:
test_requirements.append("importlib-metadata>=5.2.0")
if PY_VERSION_11_OR_LATER:
test_requirements.append("typed-ast>=1.5.4")
development_requirements = [
"Jinja2==2.11.1",
"MarkupSafe==1.1.1",
"colorlog==2.10.0",
"certifi",
"fhirspec",
"zest-releaser[recommended]",
]
setup(
author="Md Nazrul Islam",
author_email="[email protected]",
# Get more from https://pypi.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Typing :: Typed",
],
description="FHIR Resources as Model Class",
install_requires=requirements,
license="BSD license",
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="fhir, resources, python, hl7, health IT, healthcare",
name="fhir.resources",
packages=find_namespace_packages(
include=["fhir*"],
exclude=[
"ez_setup",
"tests",
"fhir-parser*",
"fhir.resources.tests",
"fhir.resources.STU3.tests",
"fhir.resources.DSTU2.tests",
],
),
package_data={"fhir.resources": ["py.typed"]},
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
extras_require={
"orjson": orjson_requirements,
"yaml": yaml_requirements,
"xml": xml_requirements,
"test": (
test_requirements
+ setup_requirements
+ orjson_requirements
+ yaml_requirements
+ xml_requirements
),
"dev": (test_requirements + development_requirements),
"all": (orjson_requirements + yaml_requirements + xml_requirements),
},
url="https://github.com/nazrulworld/fhir.resources",
version="7.0.3.dev0",
zip_safe=False,
python_requires=">=3.6",
project_urls={
"CI: Travis": "https://travis-ci.org/github/nazrulworld/fhir.resources",
"Coverage: codecov": "https://codecov.io/gh/nazrulworld/fhir.resources",
"GitHub: issues": "https://github.com/nazrulworld/fhir.resources/issues",
"GitHub: repo": "https://github.com/nazrulworld/fhir.resources",
},
)