-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.cfg
More file actions
152 lines (137 loc) · 4.43 KB
/
setup.cfg
File metadata and controls
152 lines (137 loc) · 4.43 KB
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
# See https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
# And this great example : https://github.com/Kinto/kinto/blob/master/setup.cfg
[metadata]
name = doit-api
description = `pydoit` for humans: an API to create `doit` tasks faster and more reliably.
# description-file = README.md
license = BSD 3-Clause
long_description = file: docs/long_description.md
long_description_content_type=text/markdown
keywords = pydoit doit task generator api object decorator easy fast human friendly autocomplete
author = Sylvain MARIE
author_email = sylvain.marie@se.com
# maintainer =
# maintainer_email =
url = https://github.com/smarie/python-doit-api
# download_url = https://github.com/smarie/python-doit-api/tarball/master >>> we do it in the setup.py to get the right version
classifiers =
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Build Tools
Topic :: Software Development :: Quality Assurance
Topic :: Software Development :: Testing
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
[options]
# one day these will be able to come from requirement files, see https://github.com/pypa/setuptools/issues/1951. But will it be better ?
setup_requires =
setuptools_scm
install_requires =
doit
# dependency_links =
tests_require =
pytest
pytest-runner
pytest-html
# test_suite = tests > no need apparently
# explicitly setting zip_safe=False to avoid `ply` being downloaded
# see https://github.com/smarie/python-getversion/pull/5
# and to make mypy happy
# see https://mypy.readthedocs.io/en/latest/installed_packages.html
zip_safe = False
# see [options.packages.find] below
packages = find:
# IMPORTANT: DO NOT set the `include_package_data` flag !! It triggers inclusion of all git-versioned files
# see https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286
# include_package_data = True
[options.packages.find]
exclude =
docs
*tests*
[options.package_data]
* = py.typed, *.pyi
# Optional dependencies that can be installed with e.g. $ pip install -e .[dev,test]
# [options.extras_require]
# -------------- Packaging -----------
# [options.entry_points]
# console_scripts =
# foocmd = foo.__main__:main
# [egg_info] >> already covered by setuptools_scm
[bdist_wheel]
# Code is written to work on both Python 2 and Python 3.
universal=1
# ------------- Others -------------
# In order to be able to execute 'python setup.py test'
# from https://docs.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner
[aliases]
test = pytest
# pytest default configuration
[tool:pytest]
testpaths = doit_api/
addopts =
--verbose
--doctest-modules
# we need the 'always' for python 2 tests to work see https://github.com/pytest-dev/pytest/issues/2917
filterwarnings =
always
; ignore::UserWarning
;[coverage:run]
;branch = True
;omit = *tests*
;source = doit_api
;command_line = -m pytest --junitxml="site/reports/pytest_reports/pytest.xml" --html="site/reports/pytest_reports/pytest.html"
;
;[coverage:report]
;fail_under = 70
;show_missing = True
;exclude_lines =
; # this line for all the python 2 not covered lines
; except ImportError:
; # we have to repeat this when exclude_lines is set
; pragma: no cover
;
;[coverage:html]
;directory = site/reports/coverage_reports
;
;[coverage:xml]
;output = site/reports/coverage_reports/coverage.xml
[flake8]
format = html
htmldir = site/reports/flake8_reports/
# Ignore black styles.
ignore = E501, E226, E302, E41, W503, E203
max-complexity = 10
max-line-length = 120
jobs = 4
count = True
statistics = True
show-source = True
# filename = doit_api does not work
exclude =
./.*
./**/.*
noxfile.py
setup.py
docs/conf.py
doit_api/_version.py
*/tests/*
./__*
./**/__*
old
build
dist
node_modules
# Imports
# import-order-style = google
# application-import-names = nox,tests
# [sphinx-docs ?]
# doc_built_dir={toxinidir}/site