diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 18:04:05 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 18:04:05 -0500 |
| commit | bf1956953fb953cf5cdb013753908b5bfe6a9d2b (patch) | |
| tree | 722c84839269ec156fc8199ac10f8df4106d1cc4 | |
| parent | 8a08631be2d647e20b9f79e75f85d0651305557c (diff) | |
| parent | 0df40810ec54590c888ae0e4073d73f731c91f4a (diff) | |
| download | python-setuptools-git-bf1956953fb953cf5cdb013753908b5bfe6a9d2b.tar.gz | |
Merge https://github.com/jaraco/skeleton
| -rw-r--r-- | .flake8 | 8 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 2 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 4 | ||||
| -rw-r--r-- | README.rst | 6 | ||||
| -rw-r--r-- | pyproject.toml | 10 | ||||
| -rw-r--r-- | setup.cfg | 12 | ||||
| -rw-r--r-- | skeleton.md | 2 | ||||
| -rw-r--r-- | tox.ini | 4 |
8 files changed, 27 insertions, 21 deletions
@@ -1,13 +1,15 @@ [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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31b94144..f544814c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Automated Tests +name: tests on: [push, pull_request] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6639c78c..c15ab0c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ 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 diff --git a/pyproject.toml b/pyproject.toml index 658514d3..0bc2a46f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/skeleton.md b/skeleton.md index dd8ec014..0938f892 100644 --- a/skeleton.md +++ b/skeleton.md @@ -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 |
