#1 Update pydeps to 1.10.24
Merged 2 years ago by gui1ty. Opened 2 years ago by gui1ty.
rpms/ gui1ty/pydeps rawhide  into  rawhide

file modified
+1
@@ -7,3 +7,4 @@ 

  /pydeps-1.10.5.tar.gz

  /pydeps-1.10.12.tar.gz

  /pydeps-1.10.18.tar.gz

+ /pydeps-1.10.24.tar.gz

file added
+72
@@ -0,0 +1,72 @@ 

+ * Sun Oct 30 2022 Sandro <devel@penguinpee.nl> - 1.10.24-1

+ - Update to 1.10.24

+ 

+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.18-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

+ 

+ * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.10.18-2

+ - Rebuilt for Python 3.11

+ 

+ * Sat May 07 2022 Antonio Trande <sagitter@fedoraproject.org> - 1.10.18-1

+ - Release 1.10.18

+ 

+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.12-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

+ 

+ * Sat Oct 09 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.12-1

+ - Release 1.10.12

+ 

+ * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-4

+ - Remove patch

+ - Remove all Requires packages

+ 

+ * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-3

+ - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666) /3

+ 

+ * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-2

+ - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666) /2

+ 

+ * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-1

+ - Release 1.10.5

+ - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666)

+ 

+ * Fri Sep 24 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.3-1

+ - Release 1.10.3

+ 

+ * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.13-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

+ 

+ * Sun Jul 11 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.9.13-1

+ - Release 1.9.13

+ - Disable tests (upstream bug #95)

+ 

+ * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.10-2

+ - Rebuilt for Python 3.10

+ 

+ * Wed Apr 07 2021 Luis Bazan <lbazan@fedoraproject.org> - 1.9.10-1

+ - New upstream version

+ 

+ * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.8-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

+ 

+ * Thu Oct 01 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.9.9-1

+ - Update to new release

+ 

+ * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-4

+ - Second attempt - Rebuilt for

+   https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

+ 

+ * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

+ 

+ * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.3-2

+ - Rebuilt for Python 3.9

+ 

+ * Wed May 13 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.9.3-1

+ - New upstream version

+ 

+ * Thu Apr 23 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.9.0-1

+ - New upstream version

+ 

+ * Wed Apr 22 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.8.8-1

+ - Initial package

file modified
+21 -89
@@ -6,122 +6,54 @@ 

  

  %bcond_without check

  

+ %global forgeurl https://github.com/thebjorn/pydeps

+ 

  Name:		%{pypi_name}

- Version:	1.10.18

- Release:	3%{?dist}

+ Version:	1.10.24

+ Release:	%autorelease

  Summary:	Display module dependencies

  License:	BSD

- URL:		https://github.com/thebjorn/pydeps

- # Use the github source to build

- Source0:	%{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

+ %forgemeta

+ URL:		%forgeurl

+ Source0:	%forgesource

  BuildArch:	noarch

  

  %{?python_enable_dependency_generator}

  

  BuildRequires:	python3-devel

- BuildRequires:	python3dist(setuptools)

- BuildRequires:	python3dist(stdlib-list)

- BuildRequires:	python3dist(pytest)

+ %if %{with check}

+ BuildRequires:	python3-pytest

  BuildRequires:	python3dist(pyyaml)

- BuildRequires:	python3dist(tox)

- BuildRequires:	/usr/bin/dot

+ BuildRequires:	graphviz

+ %endif

  

  %description

  %{desc}

  

  %prep

  %autosetup -n %{pypi_name}-%{version} -N

- # Remove bundled egg-info

- rm -rf %{pypi_name}.egg-info

+ 

+ %generate_buildrequires

+ %pyproject_buildrequires

  

  %build

- %py3_build

+ %pyproject_wheel

  

  %install

- %py3_install

+ %pyproject_install

+ %pyproject_save_files %{pypi_name}

  

  %if %{with check}

  %check

  # Exclude failing tests:

  # https://github.com/thebjorn/pydeps/issues/71

- # https://github.com/thebjorn/pydeps/issues/118

- pytest-%{python3_version} -k "not test_file and not test_file_pylib and not test_file_pyliball and not test_relative_imports_same_name_with_std and not test_relative_imports_same_name_with_std_future and not test_pydeps_colors and not test_find_package_names"

+ %pytest -k "not (test_file or test_relative_imports_same_name_with_std \

+ or test_pydeps_colors or test_find_package_names)"

  %endif

  

- %files -n %{pypi_name}

- %license LICENSE

+ %files -n %{pypi_name} -f %{pyproject_files}

  %doc README.rst

  %{_bindir}/pydeps

- %{python3_sitelib}/%{pypi_name}/

- %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

  

  %changelog

- * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.18-3

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

- 

- * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.10.18-2

- - Rebuilt for Python 3.11

- 

- * Sat May 07 2022 Antonio Trande <sagitter@fedoraproject.org> - 1.10.18-1

- - Release 1.10.18

- 

- * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.12-2

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

- 

- * Sat Oct 09 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.12-1

- - Release 1.10.12

- 

- * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-4

- - Remove patch

- - Remove all Requires packages

- 

- * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-3

- - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666) /3

- 

- * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-2

- - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666) /2

- 

- * Thu Sep 30 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.5-1

- - Release 1.10.5

- - Drop enum34 dependency if use Python >= 3.4.0 (rhbz#2008666)

- 

- * Fri Sep 24 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.10.3-1

- - Release 1.10.3

- 

- * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.13-2

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

- 

- * Sun Jul 11 2021 Antonio Trande <sagitter@fedoraproject.org> - 1.9.13-1

- - Release 1.9.13

- - Disable tests (upstream bug #95)

- 

- * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.10-2

- - Rebuilt for Python 3.10

- 

- * Wed Apr 07 2021 Luis Bazan <lbazan@fedoraproject.org> - 1.9.10-1

- - New upstream version

- 

- * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.8-2

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

- 

- * Thu Oct 01 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.9.9-1

- - Update to new release

- 

- * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-4

- - Second attempt - Rebuilt for

-   https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

- 

- * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-3

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

- 

- * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.3-2

- - Rebuilt for Python 3.9

- 

- * Wed May 13 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.9.3-1

- - New upstream version

- 

- * Thu Apr 23 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.9.0-1

- - New upstream version

- 

- * Wed Apr 22 2020 Luis Bazan <lbazan@fedoraproject.org> - 1.8.8-1

- - Initial package

+ %autochangelog

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pydeps-1.10.18.tar.gz) = 25e70ea7c86b7c24c23782d202ea718be3d45291127eee52702a6e6c54c9c8fce2153cbb8936deaf43e874661710eaf0ea2c3199d779946d584c3c461cb3010e

+ SHA512 (pydeps-1.10.24.tar.gz) = 98a41ae9934cf1916fd3163c80dd9c60e5b80af631cad4f342adcb5bbf9add95ebb88e9c9ab6bb943ea1435c071548381a7e852b7de8a9c630b5c3db7bee5390

This is the easy way. SImply update the package with a few minor changes to the spec file.

The preferred, but harder way is to rename this package to python-pydeps and refactor the spec file, making use of up to date macros. This requires re-submission for review according to Package Rename Policy.

I have a test build in Copr that would fit the bill and I'd be willing to get a re-review.

Merge this only if renaming is not an option for whatever reason.

I think one can use the %{pytest} macro here. It's meant to include some extra bits:

$ rpm -E %pytest
\
  CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
  PATH="/home/asinha/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.x86_64/usr/bin:$PATH"\
  PYTHONPATH="${PYTHONPATH:-/home/asinha/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.x86_64/usr/lib64/python3.11/site-packages:/home/asinha/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.x86_64/usr/lib/python3.11/site-packages}"\
  PYTHONDONTWRITEBYTECODE=1\
  \
  /usr/bin/pytest

LGTM :100:

Other things that can be done too:

rebased onto 0cfa61f

2 years ago

I also overhauled the spec file using %pyproject macros and %autochangelog.

rebased onto 477e440

2 years ago

Pull-Request has been merged by gui1ty

2 years ago