Skip to content

Commit

Permalink
Use setuptools-scm v7+ for building the dists
Browse files Browse the repository at this point in the history
Since version 7, setuptools-scm has native support for git archive, so the setuptools-scm-git-archive project is obsolete and this patch removes it from the build dependencies.
Close #515
  • Loading branch information
serhii73 committed Jun 8, 2023
1 parent 349f7b2 commit 36ab389
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true)$
ref-names: $Format:%D$
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ requires = [
"setuptools>=34.4",

# Plugins
"setuptools_scm[toml]>=3.5",
"setuptools_scm_git_archive>=1.1",
"setuptools-scm >= 7.0.0",
]
build-backend = "setuptools.build_meta"

Expand Down
3 changes: 1 addition & 2 deletions requirements/dist-build-constraints.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
setuptools >= 34.4

# Plugins
setuptools_scm[toml] >= 3.5
setuptools_scm_git_archive >= 1.1
setuptools-scm[toml] >= 7.0.0

# Dynamic (coming from setuptools' PEP 517 build backend)
wheel
16 changes: 7 additions & 9 deletions requirements/dist-build-constraints.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --output-file=requirements/dist-build-constraints.txt --strip-extras requirements/dist-build-constraints.in
#
packaging==21.3
packaging==23.1
# via setuptools-scm
pyparsing==3.0.6
# via packaging
setuptools-scm==6.3.2
setuptools-scm==7.1.0
# via -r requirements/dist-build-constraints.in
setuptools-scm-git-archive==1.1
# via -r requirements/dist-build-constraints.in
tomli==2.0.0
tomli==2.0.1
# via setuptools-scm
typing-extensions==4.6.3
# via setuptools-scm
wheel==0.37.1
# via -r requirements/dist-build-constraints.in
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ include_package_data = True

# These are required during `setup.py` run:
setup_requires =
setuptools_scm>=1.15.0
setuptools_scm_git_archive>=1.0
setuptools_scm >= 7.0.0

# These are required in actual runtime:
install_requires =
Expand Down

0 comments on commit 36ab389

Please sign in to comment.