Skip to content

Commit b2d4a54

Browse files
committed
the setup.cfg optimization
1 parent 76e47c5 commit b2d4a54

File tree

2 files changed

+198
-23
lines changed

2 files changed

+198
-23
lines changed

setup.cfg

Lines changed: 167 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,173 @@
1+
# A setup.cfg module.
12
#
2-
# 1. https://setuptools.readthedocs.io/en/latest/
3-
# 2. https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
3+
# https://github.com/Alinvor/Python-DeMo/
44
#
5+
# see:
56
#
6-
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels
7+
# 1. https://setuptools.readthedocs.io/en/latest/
8+
# 2. https://setuptools.pypa.io/en/latest/userguide/declarative_config.html/
9+
# 3. https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#metadata
10+
# 4. https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#options
11+
# 5. https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#compatibility-with-other-tools
12+
# 6. https://packaging.python.org/guides/distributing-packages-using-setuptools/
13+
# 7. https://pypi.org/classifiers/
14+
# 8. https://github.com/pycqa/flake8/
15+
# 9. https://flake8.pycqa.org/en/latest/
16+
# 10. https://github.com/python/mypy
17+
# 11. https://mypy.readthedocs.io/en/stable/
18+
# 12. https://mypy.readthedocs.io/en/latest/python2.html
719
#
20+
[metadata]
21+
name = com.dvsnier.config
22+
version = 0.0.2.dev3
23+
description = this is dvsnier config.
24+
long_description = file: ./doc/description/config/README.md
25+
long_description_content_type = text/markdown
26+
author = dvsnier
27+
author_email = dovsnier@qq.com
28+
classifiers =
29+
# How mature is this project? Common values are
30+
# 3 - Alpha
31+
# 4 - Beta
32+
# 5 - Production/Stable
33+
# Development Status :: 1 - Planning
34+
# Development Status :: 2 - Pre-Alpha
35+
Development Status :: 3 - Alpha
36+
# Development Status :: 4 - Beta
37+
# Development Status :: 5 - Production/Stable
38+
# Development Status :: 6 - Mature
39+
# Development Status :: 7 - Inactive
40+
# Indicate who your project is intended for
41+
Intended Audience :: Developers
42+
# Pick your license as you wish
43+
License :: OSI Approved :: MIT License
44+
License :: Free For Educational Use
45+
License :: Free for non-commercial use
46+
License :: Freely Distributable
47+
License :: Freeware
48+
Natural Language :: Chinese (Simplified)
49+
Natural Language :: English
50+
Operating System :: OS Independent
51+
# Specify the Python versions you support here. In particular, ensure
52+
# that you indicate you support Python 3. These classifiers are *not*
53+
# checked by 'pip install'. See instead 'python_requires' below.
54+
Programming Language :: Cython
55+
Programming Language :: Python
56+
Programming Language :: Python :: 2
57+
# Programming Language :: Python :: 2 :: Only
58+
Programming Language :: Python :: 2.7
59+
Programming Language :: Python :: 3
60+
# Programming Language :: Python :: 3 :: Only
61+
Programming Language :: Python :: 3.5
62+
Programming Language :: Python :: 3.6
63+
Programming Language :: Python :: 3.7
64+
Programming Language :: Python :: 3.8
65+
Programming Language :: Python :: 3.9
66+
Topic :: Software Development
67+
# Topic :: Software Development :: Build Tools
68+
# Topic :: Software Development :: Code Generators
69+
# Topic :: Software Development :: Compilers
70+
# Topic :: Software Development :: Debuggers
71+
# Topic :: Software Development :: Documentation
72+
Topic :: Software Development :: Libraries
73+
Topic :: Software Development :: Libraries :: Python Modules
74+
Topic :: Utilities
75+
keywords =
76+
config
77+
development
78+
license = MIT
79+
license_file = LICENSE.txt
80+
project_urls =
81+
Bug_Tracker = https://github.com/Alinvor/Python-DeMo/issues/
82+
Documentation = https://packaging.python.org/tutorials/distributing-packages/
83+
Funding = https://donate.pypi.org/
84+
Homepage = https://github.com/Alinvor/Python-DeMo/
85+
Wiki = https://github.com/Alinvor/Python-DeMo/wiki/
86+
Source = https://github.com/Alinvor/Python-DeMo/
87+
88+
89+
[options]
90+
include_package_data = True
91+
install_requires =
92+
packaging>=19.0
93+
pep517>=0.9.1
94+
toml>=0.10.0
95+
importlib-metadata>=0.22;python_version < "3.8"
96+
typing>=3.5.3.0;python_version < "3"
97+
virtualenv>=20.0.35;python_version < "3"
98+
packages = find:
99+
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
100+
package_dir =
101+
=src
102+
zip_safe = False
103+
104+
[options.data_files]
105+
106+
[options.entry_points]
107+
# console_scripts =
108+
# dvs-cfg = package.module:function
109+
110+
[options.extras_require]
111+
docs =
112+
# furo>=2020.11.19b18
113+
# sphinx~=3.0
114+
# sphinx-argparse-cli>=1.5
115+
# sphinx-autodoc-typehints>=1.10
116+
test =
117+
# filelock>=3
118+
# pytest>=4
119+
# pytest-cov>=2
120+
# pytest-mock>=2
121+
# pytest-rerunfailures>=8.0
122+
# pytest-xdist>=1.34
123+
# setuptools>=42.0.0
124+
# wheel>=0.36.0
125+
# pathlib2>=2.0.0;python_version < "3"
126+
typing =
127+
mypy==0.800
128+
typing-extensions>=3.7.4.3
129+
virtualenv =
130+
virtualenv>=20.0.35
131+
132+
[options.package_data]
133+
build =
134+
py.typed
135+
136+
[options.packages.find]
137+
where = src
138+
139+
8140
[bdist_wheel]
9141
universal = 1
142+
143+
144+
[flake8]
145+
max-line-length = 140
146+
max-complexity = 10
147+
extend-ignore = E203
148+
149+
150+
[mypy]
151+
ignore_missing_imports = True
152+
strict = True
153+
154+
155+
[coverage:run]
156+
omit =
157+
setup.py
158+
*bin/pyproject-build
159+
*bin\pyproject-build.exe
160+
161+
[coverage:report]
162+
exclude_lines =
163+
\#\s*pragma: no cover
164+
^\s*raise NotImplementedError\b
165+
166+
[coverage:paths]
167+
source =
168+
src
169+
*/site-packages
170+
*\site-packages
171+
172+
[coverage:html]
173+
show_contexts = true

tox.ini

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,43 @@
22
# in multiple virtualenvs. This configuration file will run the
33
# test suite on all supported python versions. To use it, "pip install tox"
44
# and then run "tox" from this directory.
5-
# For information see https://tox.readthedocs.io/en/latest/examples.html
6-
5+
# For information see lists:
6+
#
7+
# 1. https://tox.readthedocs.io/
8+
# 2. https://tox.readthedocs.io/en/latest/examples.html
9+
#
710
[tox]
8-
envlist = py27, py38
9-
10-
minversion = 3.23.1
11-
11+
; envlist = py27, py39
12+
envlist = py27
1213
# Activate isolated build environment. tox will use a virtual environment
1314
# to build a source distribution from the source tree. For build tools and
1415
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
1516
isolated_build = true
17+
minversion = 3.23.1
18+
requires =
19+
virtualenv>=20.0.35
20+
skip_missing_interpreters = true
21+
1622

1723
# install testing framework
1824
# ... or install anything else you might need here
1925
[testenv]
20-
passenv =
21-
PYTHONPATH
22-
platform = linux: linux
23-
macos: darwin
24-
windows: win32
25-
; alwayscopy = True
26+
# alwayscopy = True
2627
allowlist_externals =
2728
/bin/bash
28-
; changedir =
29-
; tests
29+
# changedir =
30+
# tests
31+
description =
32+
run test suite with {basepython}
33+
path: via PYTHONPATH
34+
sdist: via source distribution
35+
wheel: via wheel
36+
commands =
37+
# windows: python --version
38+
# macos,linux: python --version
39+
discover -s ./tests -t .
40+
# unit2 discover []
41+
# python -m unittest discover
3042
#
3143
# https://tox.readthedocs.io/en/latest/config.html#conf-deps
3244
# https://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments
@@ -44,9 +56,8 @@ deps =
4456
tox-travis
4557
build
4658
twine
47-
commands =
48-
; windows: python --version
49-
; macos,linux: python --version
50-
discover -s ./tests -t .
51-
; unit2 discover []
52-
; python -m unittest discover
59+
passenv =
60+
PYTHONPATH
61+
platform = linux: linux
62+
macos: darwin
63+
windows: win32

0 commit comments

Comments
 (0)