Commit bf195695 authored by Jason R. Coombs's avatar Jason R. Coombs
parents 8a08631b 0df40810
[flake8]
max-line-length = 88
# jaraco/skeleton#34
max-complexity = 10
exclude =
setuptools/_vendor
pkg_resources/_vendor
extend-ignore =
# Black creates whitespace before colon
E203
setuptools/site-patch.py F821
setuptools/py*compat.py F811
# Let's not overcomplicate the code:
max-complexity = 10
name: Automated Tests
name: tests
on: [push, pull_request]
......
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.8.0
rev: v1.9.1
hooks:
- id: blacken-docs
......@@ -6,9 +6,9 @@
.. _PyPI link: https://pypi.org/project/setuptools
.. image:: https://github.com/pypa/setuptools/workflows/Automated%20Tests/badge.svg
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22Automated+Tests%22
:alt: Automated Tests
.. image:: https://github.com/pypa/setuptools/workflows/tests/badge.svg
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22
:alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
......
......@@ -12,18 +12,16 @@ skip-string-normalization = true
[tool.setuptools_scm]
# jaraco/skeleton#22
[tool.jaraco.pytest.plugins.black]
[pytest.enabler.black]
#addopts = "--black"
# jaraco/skeleton#22
[tool.jaraco.pytest.plugins.mypy]
[pytest.enabler.mypy]
#addopts = "--mypy"
[tool.jaraco.pytest.plugins.flake8]
[pytest.enabler.flake8]
addopts = "--flake8"
[tool.jaraco.pytest.plugins.cov]
[pytest.enabler.cov]
addopts = "--cov"
[tool.towncrier]
......
......@@ -23,7 +23,7 @@ project_urls =
Documentation = https://setuptools.readthedocs.io/
[options]
packages = find:
packages = find_namespace:
py_modules = easy_install
# disabled as it causes tests to be included #2505
# include_package_data = true
......@@ -31,7 +31,12 @@ python_requires = >=3.6
install_requires =
[options.packages.find]
exclude = *.tests
exclude =
build*
docs*
tests*
*.tests
tools*
[options.extras_require]
testing =
......@@ -42,8 +47,7 @@ testing =
pytest-black >= 0.3.7; python_implementation != "PyPy"
pytest-cov
pytest-mypy; python_implementation != "PyPy"
# jaraco/skeleton#22
jaraco.test >= 3.2.0
pytest-enabler
# local
mock
......
......@@ -138,6 +138,8 @@ Features include:
- test against multiple Python versions
- run on late (and updated) platform versions
- 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
......
......@@ -54,7 +54,7 @@ commands =
[testenv:release]
skip_install = True
deps =
pep517>=0.5
build
twine[keyring]>=1.13
path
jaraco.develop>=7.1
......@@ -70,7 +70,7 @@ commands =
python -c "import path; path.Path('dist').rmtree_p()"
# unset tag_build and tag_date pypa/setuptools#2500
python setup.py egg_info -Db "" saveopts
python -m pep517.build .
python -m build
python -m twine upload dist/*
python -m jaraco.develop.create-github-release
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