From 4f3f879fc7cfa38cf593fadb922c16479ec7a967b34207f35778e585f4ffb66c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 16 May 2022 15:46:47 +0000 Subject: [PATCH] - Update to version 2.1.1+git.1652668078.0f0697d: * switch to f-string * fix up strings and upgrade format syntax * move fixtures into the setup code for the test suite * blackify/isort/flake8 * enable linting * refactor to a src folder * remove py2 configparser shims * refactor package info to setup.cfg, run pyupgrade * fix classifiers * disable windows - remove unnecessary patch rm_nspace_pkgs.patch. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=35 --- 2.1.1.tar.gz | 3 --- _service | 15 ++++++++++++ _servicedata | 4 ++++ ...deploy-2.1.1+git.1652668078.0f0697d.tar.gz | 3 +++ python-PasteDeploy.changes | 16 +++++++++++++ python-PasteDeploy.spec | 23 +++++++++++-------- rm_nspace_pkgs.patch | 10 -------- 7 files changed, 52 insertions(+), 22 deletions(-) delete mode 100644 2.1.1.tar.gz create mode 100644 _service create mode 100644 _servicedata create mode 100644 pastedeploy-2.1.1+git.1652668078.0f0697d.tar.gz delete mode 100644 rm_nspace_pkgs.patch diff --git a/2.1.1.tar.gz b/2.1.1.tar.gz deleted file mode 100644 index c2d12f8..0000000 --- a/2.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d86b685239b39553b31cc040a6262af682f9c545ed5f4e6a5cd41ec99e7e34a -size 32339 diff --git a/_service b/_service new file mode 100644 index 0000000..a5ec5c6 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + 2.1.1+git + https://github.com/Pylons/pastedeploy.git + git + .git* + enable + mcepl@cepl.eu + + + *.tar + gz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..2b6ce7c --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/Pylons/pastedeploy.git + 0f0697dc20ab33c675d9eecb485f41ed26fa70b8 \ No newline at end of file diff --git a/pastedeploy-2.1.1+git.1652668078.0f0697d.tar.gz b/pastedeploy-2.1.1+git.1652668078.0f0697d.tar.gz new file mode 100644 index 0000000..aabc70a --- /dev/null +++ b/pastedeploy-2.1.1+git.1652668078.0f0697d.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7df8ddebbacd0a6a5f8bad1ba197714d39930e469def10bcee68eaa1b576bc3a +size 33486 diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index e790fa1..482f0fd 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon May 16 15:32:53 UTC 2022 - mcepl@cepl.eu + +- Update to version 2.1.1+git.1652668078.0f0697d: + * switch to f-string + * fix up strings and upgrade format syntax + * move fixtures into the setup code for the test suite + * blackify/isort/flake8 + * enable linting + * refactor to a src folder + * remove py2 configparser shims + * refactor package info to setup.cfg, run pyupgrade + * fix classifiers + * disable windows +- remove unnecessary patch rm_nspace_pkgs.patch. + ------------------------------------------------------------------- Thu Nov 26 09:09:10 UTC 2020 - Dirk Mueller diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index 49bafde..b77bfeb 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -1,7 +1,7 @@ # # spec file for package python-PasteDeploy # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,19 +19,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-PasteDeploy -Version: 2.1.1 +Version: 2.1.1+git.1652668078.0f0697d Release: 0 Summary: Tool to load, configure, and compose WSGI applications and servers License: MIT Group: Development/Languages/Python URL: https://github.com/Pylons/pastedeploy -Source: https://github.com/Pylons/pastedeploy/archive/%{version}.tar.gz -# PATCH-FIX-UPSTREAM rm_nspace_pkgs.patch gh#Pylons/pastedeploy#27 mcepl@suse.com -# Package uses namespace_packages, when it shouldn't. -Patch0: rm_nspace_pkgs.patch +# Source: https://github.com/Pylons/pastedeploy/archive/%%{version}.tar.gz +Source: pastedeploy-%{version}.tar.gz BuildRequires: %{python_module Paste} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Paste @@ -54,11 +54,13 @@ provides commands to serve applications based on this configuration file. %setup -q -n pastedeploy-%{version} %autopatch -p1 +sed -i -e '/^addopts/s/ --cov//' pytest.ini + %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -67,6 +69,9 @@ provides commands to serve applications based on this configuration file. %files %{python_files} %doc README.rst %license license.txt -%{python_sitelib}/* +# %%{python_sitelib}/PasteDeploy-%%{version}*-info +%{python_sitelib}/PasteDeploy-2.1.1*-info +%{python_sitelib}/PasteDeploy-2.1.1*-nspkg.pth +%{python_sitelib}/paste/deploy %changelog diff --git a/rm_nspace_pkgs.patch b/rm_nspace_pkgs.patch deleted file mode 100644 index f86f68d..0000000 --- a/rm_nspace_pkgs.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -48,7 +48,6 @@ setup( - "Issue Tracker": "https://github.com/Pylons/pastedeploy/issues", - }, - license="MIT", -- namespace_packages=["paste"], - packages=find_packages(exclude=["tests"]), - include_package_data=True, - zip_safe=False,