14
0
forked from pool/python-pyroma
Files
python-pyroma/python-pyroma.spec

93 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyroma
#
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
# Copyright (c) 2024 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/
#
Name: python-pyroma
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
Version: 4.2
Release: 0
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
Summary: Test a Python project's adherence to packaging guidelines
License: MIT
URL: https://github.com/regebro/pyroma
Source: https://files.pythonhosted.org/packages/source/p/pyroma/pyroma-%{version}.tar.gz
BuildRequires: %{python_module Pygments}
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module build >= 0.7}
BuildRequires: %{python_module docutils}
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
BuildRequires: %{python_module trove-classifiers >= 2022.6}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pygments
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
Requires: python-build >= 0.7
Requires: python-docutils
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
Requires: python-packaging
Requires: python-requests
Requires: python-setuptools >= 42
Requires: python-trove-classifiers >= 2022.6
Requires(post): update-alternatives
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Pyroma is a package that gives a rating of how well a Python project
complies with the best practices of the Python packaging ecosystem,
primarily PyPI, pip, Distribute, etc., as well as a list of issues
that could be improved.
It's written so that there are a library with methods to call from Python, as
well as a script, also called pyroma.
%prep
%setup -q -n pyroma-%{version}
%build
export LANG=en_US.UTF-8
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
%pyproject_wheel
%install
export LANG=en_US.UTF-8
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pyroma
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
# Requires network
%pytest -k 'not (test_complete or test_distribute)'
%post
%python_install_alternative pyroma
%postun
%python_uninstall_alternative pyroma
%files %{python_files}
%license LICENSE.txt
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
%doc README.rst CHANGES.txt
%python_alternative %{_bindir}/pyroma
- Update to 4.2: * Fall back to installing project's build backend in an isolated environment if a compatible version isn't installed in the current env * Fix metadata extraction failure when project ``long_description`` is included as a header rather than a payload in the ``METADTA`` file * Add a fallback to restore compatibility with Setuptools <61 * Add ``python_requires``, update classifiers, add implicit dependencies and remove unused deps in Pyroma's own packaging metadata * Moved from a custom trove classifiers list to using the trove-classifiers package * Support checking the Requires-Python metadata * Silence noisy build backend output when building metadata * Official support for Python 3.11 * Some string formatting bugs * Now follows black and flake8 rules * Check if author_email field contains author name * The deprecation test for test_suite is no longer needed, as the patched setuptools method of gathering metadata as a whole is deprecated. * `description_content_type` also needs a mapping in the metadata map. * Added support for PEP517 by using `build` to build the metadata as a preferred build method over the old patched setuptools method. * Add a deprecation for `test_suite` * Fixed __getattr__-related crash in tests with python3.7 * Added support for pre-commit * Rewrote parts of the PyPI support, to avoid using the xmlrpc API, since it's being heavily rate-limited at the moment. Only one call is using it now, which seems to work fine. * Backwards incompatible change: As a result of the above change, when looking for packages on PyPI, the package name must now be spelled exactly correct, including capitalization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=12
2024-03-25 04:06:42 +00:00
%{python_sitelib}/pyroma
%{python_sitelib}/pyroma-%{version}.dist-info
%changelog