Skip to content

Commit 55e64a4

Browse files
authored
Merge pull request #258 from python/feature/skeleton
Adopt practices from jaraco/skeleton. Fixes #255
2 parents c3421fb + 8721a05 commit 55e64a4

30 files changed

+481
-535
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[run]
2+
omit =
3+
*/.tox/*
4+
tests/*
5+
prepare/*
6+
7+
[report]
8+
show_missing = True

.flake8

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[flake8]
2+
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
8+
# Black creates whitespace before colon
9+
E203
10+
enable-extensions = U4

.github/workflows/main.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
python: [3.6, 3.7, 3.8, 3.9]
9+
python: [3.6, 3.8, 3.9]
1010
platform: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
@@ -20,40 +20,6 @@ jobs:
2020
python -m pip install tox
2121
- name: Run tests
2222
run: tox
23-
env:
24-
TOXENV: python
25-
26-
qa:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v2
30-
- name: Setup Python
31-
uses: actions/setup-python@v2
32-
with:
33-
python-version: 3.9
34-
- name: Install tox
35-
run: |
36-
python -m pip install tox
37-
- name: Run checks
38-
run: tox
39-
env:
40-
TOXENV: qa
41-
42-
coverage:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- name: Setup Python
47-
uses: actions/setup-python@v2
48-
with:
49-
python-version: 3.9
50-
- name: Install tox
51-
run: |
52-
python -m pip install tox
53-
- name: Evaluate coverage
54-
run: tox
55-
env:
56-
TOXENV: cov
5723

5824
benchmark:
5925
runs-on: ubuntu-latest
@@ -89,22 +55,6 @@ jobs:
8955
env:
9056
TOXENV: diffcov
9157

92-
docs:
93-
runs-on: ubuntu-latest
94-
steps:
95-
- uses: actions/checkout@v2
96-
- name: Setup Python
97-
uses: actions/setup-python@v2
98-
with:
99-
python-version: 3.9
100-
- name: Install tox
101-
run: |
102-
python -m pip install tox
103-
- name: Build docs
104-
run: tox
105-
env:
106-
TOXENV: docs
107-
10858
release:
10959
needs: test
11060
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
7+
- repo: https://github.com/asottile/blacken-docs
8+
rev: v1.8.0
9+
hooks:
10+
- id: blacken-docs

.readthedocs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
version: 2
12
python:
2-
version: 3
3-
extra_requirements:
4-
- docs
5-
pip_install: true
3+
install:
4+
- path: .
5+
extra_requirements:
6+
- docs

docs/changelog.rst renamed to CHANGES.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
=========================
2-
importlib_metadata NEWS
3-
=========================
4-
51
v3.1.0
62
======
73

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.rst

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
=========================
2-
``importlib_metadata``
3-
=========================
1+
.. image:: https://img.shields.io/pypi/v/importlib_metadata.svg
2+
:target: `PyPI link`_
3+
4+
.. image:: https://img.shields.io/pypi/pyversions/importlib_metadata.svg
5+
:target: `PyPI link`_
6+
7+
.. _PyPI link: https://pypi.org/project/importlib_metadata
8+
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
12+
13+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
14+
:target: https://github.com/psf/black
15+
:alt: Code style: Black
16+
17+
.. image:: https://readthedocs.org/projects/importlib-metadata/badge/?version=latest
18+
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
19+
420

521
``importlib_metadata`` is a library to access the metadata for a
622
Python package.

codecov.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
collect_ignore = [
2+
# this module fails mypy tests because 'setup.py' matches './setup.py'
3+
'prepare/example/setup.py',
4+
]

coverage.ini

Lines changed: 0 additions & 23 deletions
This file was deleted.

coverplug.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)