-
Notifications
You must be signed in to change notification settings - Fork 109
/
setup.py
132 lines (120 loc) · 4.41 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
131
132
#!/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_9_OR_EARLIER = PY_VERSION_TUPLE[0] == "3" and int(PY_VERSION_TUPLE[1]) <= 9
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 = ["fhir-core>=0.1.3"]
if PY_VERSION_9_OR_EARLIER:
requirements.append("eval-type-backport")
setup_requirements = ["pytest-runner"]
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",
"types-PyYAML",
"types-simplejson",
"types-requests",
"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="email2nazrul@gmail.com",
# Get more from https://pypi.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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 :: 3.13",
"Programming Language :: Python :: 3.14",
"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={
"yaml": yaml_requirements,
"xml": xml_requirements,
"test": (
test_requirements
+ setup_requirements
+ yaml_requirements
+ xml_requirements
),
"dev": (test_requirements + development_requirements),
"all": (yaml_requirements + xml_requirements),
},
url="https://github.com/nazrulworld/fhir.resources",
version="8.0.0b5.dev0",
zip_safe=False,
python_requires=">=3.8",
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",
},
)