Repository navigation
Expand file tree
/
Copy pathsetup.cfg
More file actions
81 lines (73 loc) · 2.63 KB
/
Copy pathsetup.cfg
File metadata and controls
81 lines (73 loc) · 2.63 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
# see documentation, e.g.
# - https://packaging.python.org/tutorials/packaging-projects/#configuring-metadata
# - https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
# - https://www.python.org/dev/peps/pep-0314/
[metadata]
author = {{ cookiecutter.full_name }}
author_email = {{ cookiecutter.email }}
classifiers =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
{{ {"Apache Software License 2.0": "License :: OSI Approved :: Apache Software License",
"MIT license": "License :: OSI Approved :: MIT License",
"BSD license": "License :: OSI Approved :: BSD License",
"ISC license": "License :: OSI Approved :: ISC License (ISCL)",
"GNU General Public License v3 or later": "License :: OSI Approved :: GNU General Public License",
"Not open source": "License :: Other/Proprietary License"
}[cookiecutter.license] }}
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
description = {{ cookiecutter.package_short_description }}
keywords =
{{ cookiecutter.keyword1 }}
{{ cookiecutter.keyword2 }}
long_description = file: README.md
long_description_content_type = text/markdown
name = {{ cookiecutter.package_name }}
project_urls =
Bug Tracker = {{ cookiecutter.repository }}/issues
url = {{ cookiecutter.repository }}
version = {{ cookiecutter.version }}
[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
[options.data_files]
# This section requires setuptools>=40.6.0
# It remains empty for now
# Check if MANIFEST.in works for your purposes
[options.extras_require]
dev =
bump2version
prospector[with_pyroma]
isort
pytest
pytest-cov
sphinx
sphinx_rtd_theme
sphinx-autoapi
publishing =
twine
wheel
[options.packages.find]
include = {{ cookiecutter.package_name }}, {{ cookiecutter.package_name }}.*
[coverage:run]
branch = True
source = {{ cookiecutter.package_name }}
[isort]
lines_after_imports = 2
force_single_line = 1
no_lines_before = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_first_party = {{ cookiecutter.package_name }}
src_paths = {{ cookiecutter.package_name }},tests
line_length = 120
[tool:pytest]
testpaths = tests
# Note that visual debugger in some editors like pycharm gets confused by coverage calculation.
# As a workaround, configure the test configuration in pycharm et al with a --no-cov argument
addopts = --cov --cov-report xml --cov-report term --cov-report html