Remove no longer needed workaround for reading the version from PKG-INFO file
This commit is contained in:
parent
2f10c636ab
commit
2d3c4aedb8
@ -35,14 +35,6 @@ decimal.
|
||||
%prep
|
||||
%autosetup -n %{name}-%{uversion} -p1
|
||||
|
||||
# the setup.py script tries to determine the version of the package by
|
||||
# - git describe (which does not work in github tarball)
|
||||
# - parsing PKG-INFO (which is onyl included in sdist)
|
||||
# Let's help it:
|
||||
echo 'Version: %{uversion}' > PKG-INFO
|
||||
# (If the logic and/or parser in setup.py is changed, this might not work,
|
||||
# but the exact .egg-info filename in %%files works as a regression test.)
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user