Skip to content

Commit

Permalink
start vendoring versioneer again, non-vendored led to issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Oct 27, 2023
1 parent 18a3821 commit 4722903
Show file tree
Hide file tree
Showing 7 changed files with 2,287 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ The same is true for the following lines in `./pyprep/__init__.py`:
from ._version import get_versions

__version__ = get_versions()["version"]
del get_versions
```

To update the `versioneer` software, follow the instructions on their documentation page.
Expand Down
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ repos:
rev: "23.10.1"
hooks:
- id: black
exclude: pyprep/_version.py
exclude: |
(?x)^(
pyprep/_version.py|
versioneer.py
)$
- repo: https://github.com/pycqa/flake8
rev: "6.1.0"
hooks:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include LICENSE
include requirements-dev.txt
include pyprep/_version.py
include CITATION.cff
include versioneer.py

graft docs
graft examples
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ extend-exclude = '''
# in the root of the project.
(
matprep_artifacts
versioneer.py
pyprep/_version.py
)
'''

[build-system]
requires = ["setuptools", "versioneer[toml]"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ skip_glob =
examples/*
matprep_artifacts/*
pyprep/_version.py
versioneer.py

[coverage:run]
omit =
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import sys

import versioneer
from setuptools import setup

import versioneer

# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata in setup.cfg
# 38.3.0 contains most setup.cfg bugfixes
Expand Down
Loading

0 comments on commit 4722903

Please sign in to comment.