-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathpyproject.toml
164 lines (148 loc) · 4.3 KB
/
pyproject.toml
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pyshacl"
version = "0.14.3"
# Don't forget to change the version number in __init__.py along with this one
description = "Python SHACL Validator"
license = "Apache-2.0"
authors = [
"Ashley Sommer <Ashley.Sommer@csiro.au>"
]
readme = "README.md"
repository = "https://github.com/RDFLib/pySHACL"
homepage = "https://github.com/RDFLib/pySHACL"
keywords = ["Linked Data", "Semantic Web", "RDF", "Python", "SHACL", "Shapes", "Schema", "Validate"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent"
]
packages = [
{ include = "pyshacl" },
{ include = "examples", format = "sdist" },
{ include = "benchmarks", format = "sdist" },
{ include = "test", format = "sdist" }
]
include = [
{ path = "pyshacl/assets/*.ttl", format = "sdist" },
{ path = "hooks/*", format = "sdist" },
{ path = "MANIFEST.in", format = "sdist" },
{ path = "pyproject.toml", format = "sdist" },
{ path = "poetry.lock", format = "sdist" },
{ path = "Makefile", format = "sdist" },
"*.md",
"*.txt",
"pyshacl/assets/*.pickle",
"pyshacl/*.spec"
]
[tool.poetry.dependencies]
python = "^3.6" # Compatible python versions must be declared here
rdflib = "^5.0.0"
rdflib-jsonld = "^0.5.0"
owlrl = "^5.2.1"
pyduktape2 = {version="^0.4.1", python=">=3.6", optional=true}
flake8 = {version="^3.8.0", python=">=3.6", optional=true}
isort = {version="^5.7.0", python=">=3.6", optional=true}
black = {version=">=20.8b1,<=21", python=">=3.6", optional=true}
[tool.poetry.dev-dependencies]
coverage = "^4.5"
pytest = "^5.0"
pytest-cov = "^2.8.1"
flake8 = {version="^3.8.0", python=">=3.6", optional=true}
isort = {version="^5.7.0", python=">=3.6", optional=true}
black = {version=">=20.8b1,<=21", python=">=3.6", optional=true}
mypy = {version="^0.800", python=">=3.6", optional=true}
[tool.poetry.extras]
js = ["pyduktape2"]
dev-lint = ["isort", "black", "flake8"]
dev-type-checking = ["mypy"]
[tool.poetry.scripts]
pyshacl = "pyshacl.cli:main"
[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
[tool.black]
line-length = "119"
skip-string-normalization = true
target-version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| htmlcov
| benchmarks
| examples
| pyshacl.egg-info
| buck-out
| build
| dist
| venv
)/
)
'''
[tool.isort]
atomic = true
default_section = "THIRDPARTY"
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
known_first_party = "pyshacl"
known_third_party = ["pytest"]
line_length = 119
lines_after_imports = 2
lines_between_types = 1
multi_line_output = 3
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
skipsdist = true
envlist = py36, py37, py38, py39, lint, type-checking
[testenv]
deps =
poetry>=1.1.0
py36: coveralls
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH TRAVIS_BUILD_DIR
skip_install = true
allowlist_externals = python3, ls, pwd, env
commands_pre =
poetry install -vv -n --no-root --extras "js"
commands =
- poetry show
poetry run pytest --cov=pyshacl test/
- poetry run coverage combine --append
poetry run coverage report -m
poetry run coverage html -i
py36: - coveralls
[testenv:lint]
commands_pre =
poetry install -vv -n --no-root --extras "dev-lint"
commands =
- poetry show
poetry run flake8 pyshacl
poetry run isort --check-only pyshacl
poetry run black --check --verbose --config ./pyproject.toml pyshacl
[testenv:type-checking]
commands_pre =
poetry install -vv -n --no-root --extras "dev-type-checking"
poetry run pip3 install "mypy>=0.800"
commands =
- poetry show
poetry run python3 -m mypy --ignore-missing-imports pyshacl
"""