Skip to content

Commit

Permalink
Stop depending on setuptools_scm_git_archive
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Forró <[email protected]>
  • Loading branch information
nforro committed Sep 26, 2023
1 parent cdd5313 commit 050e5b1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 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$
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Needed for setuptools-scm-git-archive
# Needed for setuptools-scm
.git_archival.txt export-subst
2 changes: 1 addition & 1 deletion epel8/python-specfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Source0: %{pypi_source specfile}
BuildArch: noarch

BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: %{py3_dist setuptools setuptools-scm setuptools-scm-git-archive}
BuildRequires: %{py3_dist setuptools setuptools-scm}
BuildRequires: %{py3_dist importlib-metadata dataclasses rpm typing-extensions}
BuildRequires: %{py3_dist flexmock pytest}
BuildRequires: git-core
Expand Down
4 changes: 4 additions & 0 deletions fedora/python-specfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Summary: %{summary}
%prep
%autosetup -p1 -n specfile-%{version}

# since we are building from PyPI source, we don't need git-archive
# support in setuptools_scm
sed -i 's/setuptools_scm[toml]>=7/setuptools_scm[toml]/' pyproject.toml


%generate_buildrequires
%pyproject_buildrequires %{?with_tests: -x testing}
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm[toml]",
"setuptools_scm_git_archive",
"setuptools_scm[toml]>=7",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit 050e5b1

Please sign in to comment.