Commit bf195695 authored by Jason R. Coombs's avatar Jason R. Coombs
parents 8a08631b 0df40810
[flake8] [flake8]
max-line-length = 88 max-line-length = 88
# jaraco/skeleton#34
max-complexity = 10
exclude = exclude =
setuptools/_vendor setuptools/_vendor
pkg_resources/_vendor pkg_resources/_vendor
extend-ignore = extend-ignore =
# Black creates whitespace before colon # Black creates whitespace before colon
E203 E203
setuptools/site-patch.py F821 setuptools/site-patch.py F821
setuptools/py*compat.py F811 setuptools/py*compat.py F811
# Let's not overcomplicate the code:
max-complexity = 10
name: Automated Tests name: tests
on: [push, pull_request] on: [push, pull_request]
......
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: stable rev: 20.8b1
hooks: hooks:
- id: black - id: black
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: v1.8.0 rev: v1.9.1
hooks: hooks:
- id: blacken-docs - id: blacken-docs
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
.. _PyPI link: https://pypi.org/project/setuptools .. _PyPI link: https://pypi.org/project/setuptools
.. image:: https://github.com/pypa/setuptools/workflows/Automated%20Tests/badge.svg .. image:: https://github.com/pypa/setuptools/workflows/tests/badge.svg
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22Automated+Tests%22 :target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22
:alt: Automated Tests :alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black :target: https://github.com/psf/black
......
...@@ -12,18 +12,16 @@ skip-string-normalization = true ...@@ -12,18 +12,16 @@ skip-string-normalization = true
[tool.setuptools_scm] [tool.setuptools_scm]
# jaraco/skeleton#22 [pytest.enabler.black]
[tool.jaraco.pytest.plugins.black]
#addopts = "--black" #addopts = "--black"
# jaraco/skeleton#22 [pytest.enabler.mypy]
[tool.jaraco.pytest.plugins.mypy]
#addopts = "--mypy" #addopts = "--mypy"
[tool.jaraco.pytest.plugins.flake8] [pytest.enabler.flake8]
addopts = "--flake8" addopts = "--flake8"
[tool.jaraco.pytest.plugins.cov] [pytest.enabler.cov]
addopts = "--cov" addopts = "--cov"
[tool.towncrier] [tool.towncrier]
......
...@@ -23,7 +23,7 @@ project_urls = ...@@ -23,7 +23,7 @@ project_urls =
Documentation = https://setuptools.readthedocs.io/ Documentation = https://setuptools.readthedocs.io/
[options] [options]
packages = find: packages = find_namespace:
py_modules = easy_install py_modules = easy_install
# disabled as it causes tests to be included #2505 # disabled as it causes tests to be included #2505
# include_package_data = true # include_package_data = true
...@@ -31,7 +31,12 @@ python_requires = >=3.6 ...@@ -31,7 +31,12 @@ python_requires = >=3.6
install_requires = install_requires =
[options.packages.find] [options.packages.find]
exclude = *.tests exclude =
build*
docs*
tests*
*.tests
tools*
[options.extras_require] [options.extras_require]
testing = testing =
...@@ -42,8 +47,7 @@ testing = ...@@ -42,8 +47,7 @@ testing =
pytest-black >= 0.3.7; python_implementation != "PyPy" pytest-black >= 0.3.7; python_implementation != "PyPy"
pytest-cov pytest-cov
pytest-mypy; python_implementation != "PyPy" pytest-mypy; python_implementation != "PyPy"
# jaraco/skeleton#22 pytest-enabler
jaraco.test >= 3.2.0
# local # local
mock mock
......
...@@ -138,6 +138,8 @@ Features include: ...@@ -138,6 +138,8 @@ Features include:
- test against multiple Python versions - test against multiple Python versions
- run on late (and updated) platform versions - run on late (and updated) platform versions
- automated releases of tagged commits - automated releases of tagged commits
- [automatic merging of PRs](https://github.com/marketplace/actions/merge-pull-requests) (requires [protecting branches with required status checks](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/enabling-required-status-checks), [not possible through API](https://github.community/t/set-all-status-checks-to-be-required-as-branch-protection-using-the-github-api/119493))
### Continuous Deployments ### Continuous Deployments
......
...@@ -54,7 +54,7 @@ commands = ...@@ -54,7 +54,7 @@ commands =
[testenv:release] [testenv:release]
skip_install = True skip_install = True
deps = deps =
pep517>=0.5 build
twine[keyring]>=1.13 twine[keyring]>=1.13
path path
jaraco.develop>=7.1 jaraco.develop>=7.1
...@@ -70,7 +70,7 @@ commands = ...@@ -70,7 +70,7 @@ commands =
python -c "import path; path.Path('dist').rmtree_p()" python -c "import path; path.Path('dist').rmtree_p()"
# unset tag_build and tag_date pypa/setuptools#2500 # unset tag_build and tag_date pypa/setuptools#2500
python setup.py egg_info -Db "" saveopts python setup.py egg_info -Db "" saveopts
python -m pep517.build . python -m build
python -m twine upload dist/* python -m twine upload dist/*
python -m jaraco.develop.create-github-release python -m jaraco.develop.create-github-release
python -m jaraco.tidelift.publish-release-notes python -m jaraco.tidelift.publish-release-notes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment