-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
134 lines (119 loc) · 3.5 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
[build-system]
requires = ["setuptools>=64.0.0", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "fauxdoc"
description = "Python package for generating fake (faux) record or document (doc) data conforming to bespoke requirements."
readme = "README.md"
authors = [{ name = "Jason Thomale", email = "jason.thomale@unt.edu"}]
keywords = ["data", "fake", "mock", "faux", "Solr", "databases", "models",
"fixtures", "faker", "testing", "benchmarking", "records",
"documents"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Software Development",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Mocking"
]
dynamic = ["version"]
requires-python = ">=3.7"
dependencies = [
# Note: we only use typing_extensions for `Protocol` support, added
# to Python in 3.8. So this dependency is only needed for 3.7.
'typing_extensions >= 3.6.5; python_version == "3.7"',
# For Python >=3.8 we use importlib.metadata to get the installed
# package version so we can use pyproject.toml as the single source
# of truth for the version number. This was new in 3.8, so for 3.7
# we have to use importlib_metadata.
'importlib_metadata >= 2.0.0; python_version == "3.7"'
]
[project.urls]
Homepage = "https://github.com/unt-libraries/fauxdoc"
Repository = "https://github.com/unt-libraries/fauxdoc"
Changelog = "https://github.com/unt-libraries/fauxdoc/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
'pytest >= 6.2.4; python_version >= "3.10"',
'pytest >= 3.8.0; python_version < "3.10"'
]
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = flake8,pylint_critical,mypy_strict,py{37,38,39,310,311}-{oldest,latest}
isolated_build = True
[testenv]
extras =
dev
commands =
pytest
[testenv:py37-oldest]
deps =
pytest==3.8.0
typing_extensions==3.6.5
importlib_metadata==2.0.0
[testenv:py{38,39}-oldest]
deps =
pytest==3.8.0
[testenv:py{310,311}-oldest]
deps =
pytest==6.2.4
[testenv:flake8]
basepython=python3.10
skip_install = True
deps =
flake8
commands =
flake8 src/fauxdoc tests --exclude=__pycache__
[testenv:pylint_critical]
basepython=python3.10
deps =
pylint
commands =
pylint fauxdoc tests --errors-only --ignore=__pycache__
[testenv:pylint_all]
basepython=python3.10
deps =
pylint
commands =
pylint fauxdoc tests --ignore=__pycache__ --good-names=_,i,mn,mx,em
[testenv:mypy_strict]
basepython=python3.10
deps =
mypy
commands =
mypy src/fauxdoc --strict
[testenv:build_package]
basepython = python3.10
skip_install = true
deps =
build
twine
allowlist_externals =
bash
commands =
bash -c 'rm -rf dist'
python -m build
bash -c 'python -m twine check dist/*.whl'
bash -c 'python -m twine check dist/*.gz'
[testenv:py{37,38,39,310,311}-test_built_package]
skip_install = true
deps =
pytest
allowlist_externals =
bash
commands =
bash -c 'python -m pip install {posargs:dist/*.whl}'
pytest
"""