Skip to content

Commit b3a72a1

Browse files
committed
2 parents b017516 + 77fbe1d commit b3a72a1

File tree

10 files changed

+57
-58
lines changed

10 files changed

+57
-58
lines changed

.coveragerc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[run]
22
omit =
3-
*/.tox/*
4-
tests/*
5-
prepare/*
3+
*/.tox/*
4+
tests/*
5+
prepare/*
66

77
[report]
88
show_missing = True

.flake8

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[flake8]
22
max-line-length = 88
3-
ignore =
4-
# W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
5-
W503
6-
# W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545
7-
W504
3+
4+
# jaraco/skeleton#34
5+
max-complexity = 10
6+
7+
extend-ignore =
88
# Black creates whitespace before colon
99
E203
1010
enable-extensions = U4

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Automated Tests
1+
name: tests
22

33
on: [push, pull_request]
44

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: stable
3+
rev: 20.8b1
44
hooks:
55
- id: black
66

77
- repo: https://github.com/asottile/blacken-docs
8-
rev: v1.8.0
8+
rev: v1.9.1
99
hooks:
1010
- id: blacken-docs

README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
.. _PyPI link: https://pypi.org/project/importlib_metadata
88

9-
.. image:: https://github.com/python/importlib_metadata/workflows/Automated%20Tests/badge.svg
10-
:target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22Automated+Tests%22
11-
:alt: Automated Tests
9+
.. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg
10+
:target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22
11+
:alt: tests
1212

1313
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
1414
:target: https://github.com/psf/black
@@ -18,8 +18,7 @@
1818
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
1919

2020

21-
``importlib_metadata`` is a library to access the metadata for a
22-
Python package.
21+
Library to access the metadata for a Python package.
2322

2423
As of Python 3.8, this functionality has been added to the
2524
`Python standard library

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Welcome to importlib_metadata
2-
=============================
1+
Welcome to |project| documentation!
2+
===================================
33

44
``importlib_metadata`` is a library which provides an API for accessing an
55
installed package's metadata (see :pep:`566`), such as its entry points or its top-level

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ skip-string-normalization = true
77

88
[tool.setuptools_scm]
99

10-
# jaraco/skeleton#22
11-
[tool.jaraco.pytest.plugins.black]
10+
[pytest.enabler.black]
1211
addopts = "--black"
1312

14-
# jaraco/skeleton#22
15-
[tool.jaraco.pytest.plugins.mypy]
13+
[pytest.enabler.mypy]
1614
addopts = "--mypy"
1715

18-
[tool.jaraco.pytest.plugins.flake8]
16+
[pytest.enabler.flake8]
1917
addopts = "--flake8"
2018

21-
[tool.jaraco.pytest.plugins.cov]
19+
[pytest.enabler.cov]
2220
addopts = "--cov"

setup.cfg

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
[metadata]
2-
license_file = LICENSE
2+
license_files =
3+
LICENSE
34
name = importlib_metadata
45
author = Jason R. Coombs
56
author_email = [email protected]
67
description = Read metadata from Python packages
78
long_description = file:README.rst
89
url = https://github.com/python/importlib_metadata
910
classifiers =
10-
Development Status :: 5 - Production/Stable
11-
Intended Audience :: Developers
12-
License :: OSI Approved :: Apache Software License
13-
Programming Language :: Python :: 3
14-
Programming Language :: Python :: 3 :: Only
11+
Development Status :: 5 - Production/Stable
12+
Intended Audience :: Developers
13+
License :: OSI Approved :: Apache Software License
14+
Programming Language :: Python :: 3
15+
Programming Language :: Python :: 3 :: Only
1516

1617
[options]
1718
packages = find:
1819
include_package_data = true
1920
python_requires = >=3.6
2021
install_requires =
21-
zipp>=0.5
22-
typing-extensions>=3.6.4; python_version < "3.8"
22+
zipp>=0.5
23+
typing-extensions>=3.6.4; python_version < "3.8"
2324
setup_requires = setuptools_scm[toml] >= 3.4.1
2425

2526
[options.packages.find]
2627
exclude =
27-
tests*
28-
docs
28+
tests*
29+
docs
2930

3031
[options.extras_require]
3132
testing =
32-
# upstream
33-
pytest >= 3.5, !=3.7.3
34-
pytest-checkdocs >= 1.2.3
35-
pytest-flake8
36-
pytest-black >= 0.3.7; python_implementation != "PyPy"
37-
pytest-cov
38-
pytest-mypy; python_implementation != "PyPy"
39-
# jaraco/skeleton#22
40-
jaraco.test >= 3.2.0
33+
# upstream
34+
pytest >= 3.5, !=3.7.3
35+
pytest-checkdocs >= 1.2.3
36+
pytest-flake8
37+
pytest-black >= 0.3.7; python_implementation != "PyPy"
38+
pytest-cov
39+
pytest-mypy; python_implementation != "PyPy"
40+
pytest-enabler
4141

42-
# local
43-
importlib_resources>=1.3; python_version < "3.9"
44-
packaging
45-
pep517
46-
pyfakefs
47-
flufl.flake8
42+
# local
43+
importlib_resources>=1.3; python_version < "3.9"
44+
packaging
45+
pep517
46+
pyfakefs
47+
flufl.flake8
4848

4949
docs =
50-
# upstream
51-
sphinx
52-
jaraco.packaging >= 3.2
53-
rst.linker >= 1.9
50+
# upstream
51+
sphinx
52+
jaraco.packaging >= 8.2
53+
rst.linker >= 1.9
5454

55-
# local
55+
# local
5656

5757
[options.entry_points]

skeleton.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ Features include:
138138
- test against multiple Python versions
139139
- run on late (and updated) platform versions
140140
- automated releases of tagged commits
141+
- [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))
142+
141143

142144
### Continuous Deployments
143145

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ commands =
3232
[testenv:perf]
3333
use_develop = False
3434
deps =
35-
ipython
35+
ipython
3636
commands =
37-
python -m timeit -s 'import importlib_metadata' -- 'importlib_metadata.distribution("ipython")'
37+
python -m timeit -s 'import importlib_metadata' -- 'importlib_metadata.distribution("ipython")'
3838

3939
[testenv:release]
4040
skip_install = True
4141
deps =
42-
pep517>=0.5
42+
build
4343
twine[keyring]>=1.13
4444
path
4545
jaraco.develop>=7.1
@@ -50,6 +50,6 @@ setenv =
5050
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
5151
commands =
5252
python -c "import path; path.Path('dist').rmtree_p()"
53-
python -m pep517.build .
53+
python -m build
5454
python -m twine upload dist/*
5555
python -m jaraco.develop.create-github-release

0 commit comments

Comments
 (0)