#2 Fix RHBZ#2259648 (fix setuptools 69.0.3 compatibility)
Closed 3 months ago by music. Opened 3 months ago by music.
rpms/ music/python-flask-compress setuptools-fix  into  rawhide

@@ -1,37 +0,0 @@ 

- diff -rupN flask-compress-1.13/pyproject.toml flask-compress-1.13-new/pyproject.toml

- --- flask-compress-1.13/pyproject.toml	2022-10-08 21:46:06.377698118 +0200

- +++ flask-compress-1.13-new/pyproject.toml	2022-10-08 21:45:54.066698841 +0200

- @@ -1,7 +1,8 @@

- +[project]

- +name = "flask_compress"

- +description = "Compress responses of your Flask application. "

- +version = "{version}"

- +

-  [build-system]

-  requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]

-  build-backend = "setuptools.build_meta"

- -

- -[tool.setuptools_scm]

- -write_to = "flask_compress/_version.py"

- -write_to_template = "__version__ = \"{version}\"\n"

- diff -rupN flask-compress-1.13/setup.py flask-compress-1.13-new/setup.py

- --- flask-compress-1.13/setup.py	2022-10-08 21:46:06.379698117 +0200

- +++ flask-compress-1.13-new/setup.py	2022-10-08 21:46:26.703696922 +0200

- @@ -5,7 +5,7 @@ with open('README.md') as fl:

-  

-  setup(

-      name='Flask-Compress',

- -    use_scm_version=True,

- +    version='{version}',

-      url='https://github.com/colour-science/flask-compress',

-      license='MIT',

-      author='Thomas Mansencal',

- @@ -22,7 +22,7 @@ setup(

-          'brotli'

-      ],

-      setup_requires=[

- -        'setuptools_scm',

- +        'setuptools',

-      ],

-      classifiers=[

-          'Environment :: Web Environment',

file modified
+7 -9
@@ -10,15 +10,12 @@ 

  

  Name:           python-%{pypi_name}

  Version:        1.13

- Release:        7%{?dist}

+ Release:        8%{?dist}

  Summary:        Compress responses in your Flask app with gzip or brotli

  

  License:        MIT

  URL:            https://github.com/colour-science/flask-compress

  Source0:        %{pypi_source flask-compress}

- # Don't use setuptools_scm to attempt to detect version, as tarball is not a git checkout

- # Instead, manually write version to pyprojet.toml, see below

- Patch0:         0001-Use-setuptools.patch

  

  BuildArch:      noarch

  
@@ -43,15 +40,12 @@ 

  %autosetup -p1 -n flask-compress-%{version}

  rm -rf %{pypi_name}.egg-info

  

- # Manually write version to pyproject.toml

- sed -i 's|{version}|%{version}|' pyproject.toml

- sed -i 's|{version}|%{version}|' setup.py

- 

- 

  %generate_buildrequires

+ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'

  %pyproject_buildrequires -r

  

  %build

+ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'

  %pyproject_wheel

  

  %install
@@ -68,6 +62,10 @@ 

  %doc README.md

  

  %changelog

+ * Tue Jan 23 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13-8

+ - Stop patching the build system

+ - Fix RHBZ#2259648 (fix setuptools 69.0.3 compatibility)

+ 

  * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-7

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

  

Use the SETUPTOOLS_SCM_PRETEND_VERSION environment variable rather than patching pyproject.toml and setup.py (in a way that it turns out is incompatible with setuptools 69.0.3).

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/b77d73ec840d4777ad69e3b3fa19249b

Pull-Request has been closed by music

3 months ago