Accepting request 977574 from devel:languages:python

- 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/request/show/977574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PasteDeploy?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2022-05-17 15:23:58 +00:00 committed by Git OBS Bridge
commit 283b36e1a4
7 changed files with 52 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d86b685239b39553b31cc040a6262af682f9c545ed5f4e6a5cd41ec99e7e34a
size 32339

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="versionprefix">2.1.1+git</param>
<param name="url">https://github.com/Pylons/pastedeploy.git</param>
<param name="scm">git</param>
<param name="exclude">.git*</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Pylons/pastedeploy.git</param>
<param name="changesrevision">0f0697dc20ab33c675d9eecb485f41ed26fa70b8</param></service></servicedata>

BIN
pastedeploy-2.1.1+git.1652668078.0f0697d.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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 <dmueller@suse.com>

View File

@ -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

View File

@ -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,