forked from ioos/compliance-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (74 loc) · 2.84 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
import io
from setuptools import find_packages, setup
def readme():
with io.open("README.md", encoding="utf-8") as f:
return f.read()
def pip_requirements(fname="requirements.txt"):
reqs = []
with open(fname, "r") as f:
for line in f:
line = line.strip()
if not line or line.startswith("#"):
continue
reqs.append(line)
return reqs
setup(
name="compliance-checker",
description="Checks Datasets and SOS endpoints for standards compliance",
long_description=readme(),
long_description_content_type="text/markdown",
license="Apache License 2.0",
author="Dave Foster",
author_email="[email protected]",
url="https://github.com/ioos/compliance-checker",
packages=find_packages(),
install_requires=pip_requirements(),
python_requires="~=3.5",
tests_require=["pytest"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
],
include_package_data=True,
scripts=["cchecker.py"],
# Note: Do not use colons in the entry-point keys. Python 3 reserves
# portions of the key after a colon for special use.
# Note: The entry point names are not used at all. All methods in the
# compliance checker use class attributes to determine the checker's name
# and version. But, an entry point must be defined for each plugin to be
# loaded.
entry_points={
"console_scripts": ["compliance-checker = cchecker:main"],
"compliance_checker.suites": [
"cf-1.6 = compliance_checker.cf.cf:CF1_6Check",
"cf-1.7 = compliance_checker.cf.cf:CF1_7Check",
"acdd-1.1 = compliance_checker.acdd:ACDD1_1Check",
"acdd-1.3 = compliance_checker.acdd:ACDD1_3Check",
"ioos_sos = compliance_checker.ioos:IOOSBaseSOSCheck",
"ioos-0.1 = compliance_checker.ioos:IOOS0_1Check",
"ioos-1.1 = compliance_checker.ioos:IOOS1_1Check",
"ioos-1.2 = compliance_checker.ioos:IOOS1_2Check",
],
},
package_data={
"compliance_checker": [
"data/*.xml",
"tests/data/*.nc",
"tests/data/*.cdl",
"tests/data/non-comp/*.cdl",
"data/templates/*.j2",
],
},
use_scm_version={
"write_to": "compliance_checker/_version.py",
"write_to_template": '__version__ = "{version}"',
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$",
},
)