Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
This comparison is big! We’re only showing the most recent 250 commits
Commits on Mar 12, 2017
Commits on Apr 28, 2017
Commits on Aug 14, 2017
Commits on Sep 13, 2017
Commits on Sep 21, 2017
Commits on Oct 17, 2017
Commits on Jan 17, 2018
… is necessary with the adoption of tox-venv, which uses Python's venv, which does not install the latest setuptools by default.
Commits on Mar 03, 2018
… Add comments to testing and docs extras to aid with merges.
Commits on Mar 27, 2018
Commits on Aug 20, 2018
…r-quality-tools that neither W503 nor W504 are worthwhile in general.
Commits on Sep 24, 2018
Commits on Dec 01, 2018
… build/install from sdist. Older installers will still install the packages from wheels. Ref tox-dev/tox#809.
Commits on Dec 11, 2018
…later to build/install from sdist. Older installers will still install the packages from wheels. Ref tox-dev/tox#809."

This reverts commit 2c91e8e.
Commits on Dec 14, 2018
use spaces, fixed indentation, format using autopep8
Commits on Dec 17, 2018
Commits on May 09, 2019
Commits on May 23, 2019
Commits on Sep 11, 2019
Commits on Oct 20, 2019
…ox to use the wrong Python version to install packages and run tests. Ref pglass/tox-pip-version#20 and tox-dev/tox-venv#40.
Commits on Nov 01, 2019
Commits on Nov 03, 2019
Commits on Dec 01, 2019
Commits on Jan 18, 2020
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Commits on Jan 23, 2020
* Require toml extra for setuptools_scm

setuptools_scm does not know to invoke itself
if it can't read pyproject.toml.  This broke
sdist installs for projects deriving from skeleton:

  $ python -m pip install zipp --no-binary zipp
  Collecting zipp
    [...]
  Successfully installed zipp-0.0.0

Note the version number defaulting to '0.0.0'.
Building locally only works because pep517,
the build tool, depends on toml which it exposes
to the build environment.

* Require setuptools_scm 3.4.1 at a minimum

A bare

  [tool.setuptools_scm]

does not work in 3.4.0.

* fixup! Require toml extra for setuptools_scm

* fixup! Require setuptools_scm 3.4.1 at a minimum
Commits on Feb 07, 2020
In order to generate a wheel in accordance with PEP 425 to restrict the
minimum required version of Python (3.6), the `python-tag` bdist_wheel
option needs to be specified so the wheel gets tagged properly.

Before:
	zipp-x.x.x-py3-none-any.whl
After:
	zipp-x.x.x-py36-none-any.whl

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Commits on Feb 09, 2020
Commits on Apr 25, 2020
Commits on Apr 27, 2020
…/tox-venv#48 (comment)) and tox-pip-version was only there to support tox-venv. venv is dead; long live virtualenv.
Commits on May 24, 2020
Commits on Aug 15, 2020
These directories were previously included in the wheel package. Now,
they are not. This had resulted in the files being unnecessarily
downloaded and installed to virtual environments when using pip.
However, these files go unused production installations. These files are
only necessary for the development of importlib_metadata itself, so they
now live at the root of the project.

This was more noticeable when pip dependencies are vendored or bundled,
as it adds unnecessary bloat to these bundles.

The directories are still included in the sdist, so packagers and
library users can run the tests locally if they choose, they just wont
be installed to the site-packages directory.
Commits on Sep 02, 2020
Commits on Sep 22, 2020
Move tests and docs directories outside of source directory

See merge request python-devs/importlib_metadata!126
Commits on Oct 18, 2020
Commits on Oct 19, 2020
Commits on Oct 23, 2020
Commits on Oct 24, 2020
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Commits on Oct 25, 2020
When searching for a matching dist-info directory, try to escape dots in
the name segment. This makes functions like distribution() able to accept
PEP 503 normalized names to locate a distribution's dist-info directory
if the distribution's name contains dots.
Commits on Nov 22, 2020
Clarify that this has been added to the stdlib.
ci: fix diffcov
Require Python 3.6
Commits on Nov 24, 2020
Fix dot handling in dist-info directory name
Adopt practices from jaraco/skeleton. Fixes #255
Commits on Dec 01, 2020
…hasn't been updated to the new normalization technique. Ref #261.
…use 'lib' to match 'lib_foo'.
Signed-off-by: Filipe Laíns <lains@riseup.net>
Commits on Dec 02, 2020
…heck for an empty self.normalized instead of relying on a degenerate result from startswith.
…re-normalized-fallback

Versionless egg info pre normalized fallback
Commits on Dec 13, 2020
importlib_metadata: define protocol for Distribution.metadata
Commits on Dec 14, 2020
Commits on Dec 17, 2020
Commits on Jan 09, 2021
* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes #28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (#37)

* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Use license_files instead of license_file in meta (#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Commits on Jan 10, 2021
As a consequence, `ext` doesn't include the leading dot anymore, so
change `suffixes` accordingly too.
Further optimize distribution() searching.
…yPA projects. Fixes #111.
Showing with 925 additions and 747 deletions.
  1. +8 −0 .coveragerc
  2. +10 −0 .flake8
  3. +27 −0 .github/workflows/automerge.yml
  4. +76 −0 .github/workflows/main.yml
  5. +0 −50 .gitlab-ci.yml
  6. +10 −0 .pre-commit-config.yaml
  7. +5 −4 .readthedocs.yml
  8. +74 −3 importlib_metadata/docs/changelog.rst → CHANGES.rst
  9. +0 −5 MANIFEST.in
  10. +30 −9 README.rst
  11. +0 −2 codecov.yml
  12. +4 −0 conftest.py
  13. +0 −24 coverage.ini
  14. +0 −21 coverplug.py
  15. 0 {importlib_metadata → }/docs/__init__.py
  16. +26 −0 docs/conf.py
  17. +8 −0 docs/history.rst
  18. +14 −14 {importlib_metadata → }/docs/index.rst
  19. +3 −8 {importlib_metadata → }/docs/using.rst
  20. +136 −88 importlib_metadata/__init__.py
  21. +18 −84 importlib_metadata/_compat.py
  22. +0 −185 importlib_metadata/docs/conf.py
  23. 0 importlib_metadata/{tests/__init__.py → py.typed}
  24. +2 −0 mypy.ini
  25. +3 −2 prepare/example/setup.py
  26. +19 −1 pyproject.toml
  27. +9 −0 pytest.ini
  28. +42 −46 setup.cfg
  29. +5 −2 setup.py
  30. +166 −0 skeleton.md
  31. 0 {importlib_metadata/tests/data → tests}/__init__.py
  32. 0 tests/data/__init__.py
  33. BIN {importlib_metadata → }/tests/data/example-21.12-py3-none-any.whl
  34. BIN {importlib_metadata → }/tests/data/example-21.12-py3.6.egg
  35. +58 −21 {importlib_metadata → }/tests/fixtures.py
  36. +4 −0 tests/py39compat.py
  37. +66 −45 {importlib_metadata → }/tests/test_api.py
  38. +17 −10 {importlib_metadata → }/tests/test_integration.py
  39. +37 −38 {importlib_metadata → }/tests/test_main.py
  40. +12 −11 {importlib_metadata → }/tests/test_zip.py
  41. +36 −74 tox.ini
@@ -0,0 +1,8 @@
[run]
omit =
*/.tox/*
tests/*
prepare/*

[report]
show_missing = True
10 .flake8
@@ -0,0 +1,10 @@
[flake8]
max-line-length = 88

# jaraco/skeleton#34
max-complexity = 10

extend-ignore =
# Black creates whitespace before colon
E203
enable-extensions = U4
@@ -0,0 +1,27 @@
name: automerge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.12.0"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -0,0 +1,76 @@
name: tests

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
python: [3.6, 3.8, 3.9]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install tox
- name: Run tests
run: tox

benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox
run: |
python -m pip install tox
- name: Run benchmarks
run: tox
env:
TOXENV: perf

diffcov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox
run: |
python -m pip install tox
- name: Evaluate coverage
run: tox
env:
TOXENV: diffcov

release:
needs: test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox
run: |
python -m pip install tox
- name: Release
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This file was deleted.

@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black

- repo: https://github.com/asottile/blacken-docs
rev: v1.9.1
hooks:
- id: blacken-docs
@@ -1,5 +1,6 @@
version: 2
python:
version: 3
extra_requirements:
- docs
pip_install: true
install:
- path: .
extra_requirements:
- docs

No commit comments for this range