14
0
Files
python-PasteDeploy/python-PasteDeploy.spec
Dirk Mueller b3f0ef6ba9 - update to 3.1.0:
* Support Python 3.11 and 3.12.
  * Remove deprecated usage of inspect.getargspec that is no
    longer supported in Python 3.12.
  * Fix python_requires package metadata to support Python 3.7+.
  * Drop support for Python 2, as well as 3.4, 3.5, and 3.6.
  * Fix a broken compatibility shim that would cause the
    ConfigParser to fail on Python 3.12 when ConfigParser.readfp
    is removed.
  * Drop setuptools dependency and start using importlib.metadata
    instead.
  * Refactor repository into a src folder layout.
  * Added setuptools as an explicit dependency. This has always
    been required but now that more environments are becoming
    capable of operating without it being installed, we now need
    to ensure it's available.
  * pytest-runner removed, use tox to run tests.
  * Python 3 deprecation warning cleanups
  * Moved code to GitHub under the Pylons Project.
  * Moved documentation under the Pylons Project, hosted by Read
    the Docs at https://docs.pylonsproject.org/projects/pastedepl
    oy/en/latest/
  * Fixed Python 3 issue in paste.deploy.util.fix_type_error()
  * Fixed use of the wrong variable when determining the context
    protocol
  * Fixed invalid import of paste.deploy.Config to
    paste.deploy.config.Config
  * Fixed multi proxy IPs bug in X-Forwarded-For header in
    PrefixMiddleware
  * Fixed TypeError when trying to raise LookupError on Python 3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=42
2025-07-05 10:35:24 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package python-PasteDeploy
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-PasteDeploy
Version: 3.1.0
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://files.pythonhosted.org/packages/source/p/PasteDeploy/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
Requires: python-setuptools
Provides: python-pastedeploy = %{version}
Obsoletes: python-pastedeploy < %{version}
BuildArch: noarch
%python_subpackages
%description
This tool provides code to load WSGI applications and servers from URIs; these
URIs can refer to Python Eggs for INI-style configuration files. Paste Script
provides commands to serve applications based on this configuration file.
%prep
%autosetup -p1 -n PasteDeploy-%{version}
sed -i -e '/^addopts/s/ --cov//' pytest.ini
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license license.txt
%{python_sitelib}/[pP]aste[dD]eploy-%{version}.dist-info
%{python_sitelib}/PasteDeploy-%{version}*-nspkg.pth
%{python_sitelib}/paste/deploy
%changelog