From bae7d1738d95b9c0c1f06ae59977cc534823c835 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 03 2020 12:42:23 +0000 Subject: Release 1.9.0 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure-dist-git.spec b/pagure-dist-git.spec index 76baad6..6e29d0a 100644 --- a/pagure-dist-git.spec +++ b/pagure-dist-git.spec @@ -1,24 +1,15 @@ %{?python_enable_dependency_generator} -%if 0%{?rhel} && 0%{?rhel} < 8 -# Since the Python 3 stack in EPEL is missing too many dependencies, -# we're sticking with Python 2 there for now. -# And Pagure in Fedora 28 and lower is built for Python 2... -%global __python %{__python2} -%global python_pkgversion 2 -%global python_version %{python2_version} -%else -# Default to Python 3 when F29+ +# Default to python3 on rhel8+ %global __python %{__python3} %global python_pkgversion %{python3_pkgversion} %global python_version %{python3_version} -%endif # For now, to keep behavior consistent (and matching pagure package) %global _python_bytecompile_extra 1 Name: pagure-dist-git -Version: 1.7.0 +Version: 1.9.0 Release: 1%{?dist} Summary: Pagure Git auth backend for Dist-Git setups @@ -30,11 +21,8 @@ BuildArch: noarch BuildRequires: python%{python_pkgversion}-devel BuildRequires: python%{python_pkgversion}-setuptools -%if 0%{?rhel} && 0%{?rhel} < 8 Requires: pagure >= 5.2 -%else -Recommends: python%{python_pkgversion}-pdc-client -%endif +Requires: python%{python_pkgversion}-requests # This is actually an extension to Pagure itself and can't be built this way # So we're changing it all up.. @@ -85,6 +73,21 @@ nosetests-%{python_version} -v %changelog +* Mon Aug 03 2020 Pierre-Yves Chibon - 1.9.0-1 +- Update to 1.9.0 +- Encode the project name before querying PDC for it (needed in py3) +- Change the logger name to be "pagure_auth" +- Actually use the logger to log things +- Port the project to pytest (Michal Konečný) +- Add a new API endpoint for orphaning a project (Michal Konečný) + +* Wed Jun 10 2020 Pierre-Yves Chibon - 1.8.0-1 +- Update to 1.8.0 +- Drop dependency on python-pdc-client +- Add dependency on python-requests +- Clean up the spec file a little bit now that this package is no longer going + to be built for python2/rhel7 + * Mon May 11 2020 Pierre-Yves Chibon - 1.7.0-1 - Update to 1.7.0 - Fix returning the active status of a package diff --git a/requirements-testing.txt b/requirements-testing.txt index 865880d..90f0778 100644 --- a/requirements-testing.txt +++ b/requirements-testing.txt @@ -1,4 +1,4 @@ flake8 flake8-import-order -pdc_client +mock pytest diff --git a/setup.py b/setup.py index 6986cf2..2fe0d7c 100644 --- a/setup.py +++ b/setup.py @@ -9,13 +9,15 @@ install_requires = [ "pagure>=5.2", ] tests_require = [ - "nose", + "flake8", + "flake8-import-order", "mock", + "pytest", ] setup( name="pagure-dist-git", - version="1.7.0", + version="1.9.0", description="Pagure Git auth backend for Dist-Git setups", long_description=long_description, author="Pierre-Yves Chibon",