2015-04-24 16:31:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-packaging
|
|
|
|
#
|
2020-02-05 15:22:27 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-04-24 16:31:25 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-28 09:57:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-06-25 11:01:38 +02:00
|
|
|
#
|
2015-04-24 16:31:25 +02:00
|
|
|
|
|
|
|
|
2017-02-24 15:34:24 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-08-14 11:33:53 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
2018-12-28 09:57:58 +01:00
|
|
|
%bcond_with test
|
2019-08-14 11:33:53 +02:00
|
|
|
%endif
|
2019-08-15 10:35:16 +02:00
|
|
|
Name: python-packaging%{psuffix}
|
2020-03-11 15:50:30 +01:00
|
|
|
Version: 20.3
|
2015-04-24 16:31:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Core utilities for Python packages
|
2015-06-25 11:01:38 +02:00
|
|
|
License: Apache-2.0
|
2015-04-24 16:31:25 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-12-28 09:57:58 +01:00
|
|
|
URL: https://github.com/pypa/packaging
|
2016-06-06 13:27:53 +02:00
|
|
|
Source: https://pypi.io/packages/source/p/packaging/packaging-%{version}.tar.gz
|
2017-02-23 14:18:40 +01:00
|
|
|
BuildRequires: %{python_module six}
|
2018-12-28 09:57:58 +01:00
|
|
|
BuildRequires: fdupes
|
2017-02-23 14:18:40 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-28 09:57:58 +01:00
|
|
|
Requires: python-pyparsing >= 2.0.2
|
|
|
|
Requires: python-six
|
|
|
|
BuildArch: noarch
|
2017-02-23 14:18:40 +01:00
|
|
|
# do not add setuptools dependency, this is now a dependency
|
|
|
|
# of setuptools. Ensure that all dependencies also don't depend
|
|
|
|
# on setuptools
|
|
|
|
# (at the moment, six and pyparsing are ok)
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module pretend}
|
Accepting request 682967 from home:jayvdb:coala:python3-bears
- Fix check that egg-info is a directory to work with %check enabled,
and better explain how it works
- Remove unnecessary build dependency on base
- Re-add test dependency on pyparsing with minimum version defined upstream,
and replace inline comment with GitHub issue URL
- Add LICENSE.APACHE LICENSE.BSD to %license
- Update to v19.0
* Fix string representation of PEP 508 direct URL requirements with markers.
* Better handling of file URLs
This allows for using ``file:///absolute/path``, which was previously
prevented due to the missing ``netloc``
This allows for all file URLs that ``urlunparse`` turns back into the
original URL to be valid
- from v18.0
* Improve error messages when invalid requirements are given
- Drop pyparsing dependency as its not needed and creates circular
dependency on older distributions
- Reduce amount of duplicities
- Update to version 17.1
* Fix utils.canonicalize_version when supplying non PEP 440 versions.
- Update to version 17.0
* Drop support for python 2.6, 3.2, and 3.3.
* Define minimal pyparsing version to 2.0.2 (#91).
* Add epoch, release, pre, dev, and post attributes to Version and LegacyVersion (#34).
* Add Version().is_devrelease and LegacyVersion().is_devrelease to make it easy to determine if a release is a development release.
* Add utils.canonicalize_version to canonicalize version strings or Version instances (#121).
- fix pyparsing requirement
- update for single-spec
- drop setuptools dependency, as this is itself now a dependency
of setuptools
- run tests conditionally, to minimize dependency tree
- ensure egg-info is a directory (distutils would install it as file)
- update to 16.8:
* Fix markers that utilize ``in`` so that they render correctly.
* Fix an erroneous test on Python RC releases.
- update to 16.7:
* Add support for the deprecated ``python_implementation`` marker which was
an undocumented setuptools marker in addition to the newer markers.
* Add support for the deprecated, PEP 345 environment markers in addition to
the newer markers.
- update to 16.5:
* Fix a regression in parsing requirements with whitespaces between the comma
separators.
* Fix a regression in parsing requirements like ``foo (==4)``.
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
matching legacy requirements.
* Add a function that implements the name canonicalization from PEP 503.
* Implement requirement specifiers from PEP 508.
* Relicense so that packaging is available under *either* the Apache License,
Version 2.0 or a 2 Clause BSD license.
* Support installation of packaging when only distutils is available.
* Fix ``==`` comparison when there is a prefix and a local version in play.
(:issue:`41`).
* Implement environment markers from PEP 508.
- Adjust Requires according to requires.txt
- update to 15.3:
* Normalize post-release spellings for rev/r prefixes. :issue:`35`
- update to 15.2:
* Fix an error where the arbitary specifier (``===``) was not correctly
allowing pre-releases when it was being used.
* Expose the specifier and version parts through properties on the
``Specifier`` classes.
* Allow iterating over the ``SpecifierSet`` to get access to all of the
``Specifier`` instances.
* Allow testing if a version is contained within a specifier via the ``in``
operator.
- Initial packaging
OBS-URL: https://build.opensuse.org/request/show/682967
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=23
2019-03-09 08:47:44 +01:00
|
|
|
BuildRequires: %{python_module pyparsing >= 2.0.2}
|
2017-02-23 14:18:40 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2015-04-24 16:31:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Core utilities for Python packages
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n packaging-%{version}
|
Accepting request 682967 from home:jayvdb:coala:python3-bears
- Fix check that egg-info is a directory to work with %check enabled,
and better explain how it works
- Remove unnecessary build dependency on base
- Re-add test dependency on pyparsing with minimum version defined upstream,
and replace inline comment with GitHub issue URL
- Add LICENSE.APACHE LICENSE.BSD to %license
- Update to v19.0
* Fix string representation of PEP 508 direct URL requirements with markers.
* Better handling of file URLs
This allows for using ``file:///absolute/path``, which was previously
prevented due to the missing ``netloc``
This allows for all file URLs that ``urlunparse`` turns back into the
original URL to be valid
- from v18.0
* Improve error messages when invalid requirements are given
- Drop pyparsing dependency as its not needed and creates circular
dependency on older distributions
- Reduce amount of duplicities
- Update to version 17.1
* Fix utils.canonicalize_version when supplying non PEP 440 versions.
- Update to version 17.0
* Drop support for python 2.6, 3.2, and 3.3.
* Define minimal pyparsing version to 2.0.2 (#91).
* Add epoch, release, pre, dev, and post attributes to Version and LegacyVersion (#34).
* Add Version().is_devrelease and LegacyVersion().is_devrelease to make it easy to determine if a release is a development release.
* Add utils.canonicalize_version to canonicalize version strings or Version instances (#121).
- fix pyparsing requirement
- update for single-spec
- drop setuptools dependency, as this is itself now a dependency
of setuptools
- run tests conditionally, to minimize dependency tree
- ensure egg-info is a directory (distutils would install it as file)
- update to 16.8:
* Fix markers that utilize ``in`` so that they render correctly.
* Fix an erroneous test on Python RC releases.
- update to 16.7:
* Add support for the deprecated ``python_implementation`` marker which was
an undocumented setuptools marker in addition to the newer markers.
* Add support for the deprecated, PEP 345 environment markers in addition to
the newer markers.
- update to 16.5:
* Fix a regression in parsing requirements with whitespaces between the comma
separators.
* Fix a regression in parsing requirements like ``foo (==4)``.
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
matching legacy requirements.
* Add a function that implements the name canonicalization from PEP 503.
* Implement requirement specifiers from PEP 508.
* Relicense so that packaging is available under *either* the Apache License,
Version 2.0 or a 2 Clause BSD license.
* Support installation of packaging when only distutils is available.
* Fix ``==`` comparison when there is a prefix and a local version in play.
(:issue:`41`).
* Implement environment markers from PEP 508.
- Adjust Requires according to requires.txt
- update to 15.3:
* Normalize post-release spellings for rev/r prefixes. :issue:`35`
- update to 15.2:
* Fix an error where the arbitary specifier (``===``) was not correctly
allowing pre-releases when it was being used.
* Expose the specifier and version parts through properties on the
``Specifier`` classes.
* Allow iterating over the ``SpecifierSet`` to get access to all of the
``Specifier`` instances.
* Allow testing if a version is contained within a specifier via the ``in``
operator.
- Initial packaging
OBS-URL: https://build.opensuse.org/request/show/682967
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=23
2019-03-09 08:47:44 +01:00
|
|
|
# sdist must provide a packaging.egg-info, used below in install phase
|
|
|
|
test -d packaging.egg-info
|
2015-04-24 16:31:25 +02:00
|
|
|
|
|
|
|
%build
|
2017-02-23 14:18:40 +01:00
|
|
|
%python_build
|
2015-04-24 16:31:25 +02:00
|
|
|
|
2019-08-14 11:33:53 +02:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
2019-08-15 10:35:16 +02:00
|
|
|
%pytest
|
2019-08-14 11:33:53 +02:00
|
|
|
%endif # %%{with_test}
|
|
|
|
|
|
|
|
%if !%{with test}
|
2015-04-24 16:31:25 +02:00
|
|
|
%install
|
2017-02-23 14:18:40 +01:00
|
|
|
%python_install
|
Accepting request 682967 from home:jayvdb:coala:python3-bears
- Fix check that egg-info is a directory to work with %check enabled,
and better explain how it works
- Remove unnecessary build dependency on base
- Re-add test dependency on pyparsing with minimum version defined upstream,
and replace inline comment with GitHub issue URL
- Add LICENSE.APACHE LICENSE.BSD to %license
- Update to v19.0
* Fix string representation of PEP 508 direct URL requirements with markers.
* Better handling of file URLs
This allows for using ``file:///absolute/path``, which was previously
prevented due to the missing ``netloc``
This allows for all file URLs that ``urlunparse`` turns back into the
original URL to be valid
- from v18.0
* Improve error messages when invalid requirements are given
- Drop pyparsing dependency as its not needed and creates circular
dependency on older distributions
- Reduce amount of duplicities
- Update to version 17.1
* Fix utils.canonicalize_version when supplying non PEP 440 versions.
- Update to version 17.0
* Drop support for python 2.6, 3.2, and 3.3.
* Define minimal pyparsing version to 2.0.2 (#91).
* Add epoch, release, pre, dev, and post attributes to Version and LegacyVersion (#34).
* Add Version().is_devrelease and LegacyVersion().is_devrelease to make it easy to determine if a release is a development release.
* Add utils.canonicalize_version to canonicalize version strings or Version instances (#121).
- fix pyparsing requirement
- update for single-spec
- drop setuptools dependency, as this is itself now a dependency
of setuptools
- run tests conditionally, to minimize dependency tree
- ensure egg-info is a directory (distutils would install it as file)
- update to 16.8:
* Fix markers that utilize ``in`` so that they render correctly.
* Fix an erroneous test on Python RC releases.
- update to 16.7:
* Add support for the deprecated ``python_implementation`` marker which was
an undocumented setuptools marker in addition to the newer markers.
* Add support for the deprecated, PEP 345 environment markers in addition to
the newer markers.
- update to 16.5:
* Fix a regression in parsing requirements with whitespaces between the comma
separators.
* Fix a regression in parsing requirements like ``foo (==4)``.
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
matching legacy requirements.
* Add a function that implements the name canonicalization from PEP 503.
* Implement requirement specifiers from PEP 508.
* Relicense so that packaging is available under *either* the Apache License,
Version 2.0 or a 2 Clause BSD license.
* Support installation of packaging when only distutils is available.
* Fix ``==`` comparison when there is a prefix and a local version in play.
(:issue:`41`).
* Implement environment markers from PEP 508.
- Adjust Requires according to requires.txt
- update to 15.3:
* Normalize post-release spellings for rev/r prefixes. :issue:`35`
- update to 15.2:
* Fix an error where the arbitary specifier (``===``) was not correctly
allowing pre-releases when it was being used.
* Expose the specifier and version parts through properties on the
``Specifier`` classes.
* Allow iterating over the ``SpecifierSet`` to get access to all of the
``Specifier`` instances.
* Allow testing if a version is contained within a specifier via the ``in``
operator.
- Initial packaging
OBS-URL: https://build.opensuse.org/request/show/682967
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=23
2019-03-09 08:47:44 +01:00
|
|
|
# Replace distutils generated egg-info, which varies in metadata version and
|
|
|
|
# structure (single file vs directory) based on distutils, with the egg-info
|
|
|
|
# which is provided in the sdist and uses same metadata version as setuptools.
|
|
|
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/*.egg-info
|
2017-02-23 14:18:40 +01:00
|
|
|
cp -r packaging.egg-info %{buildroot}%{$python_sitelib}/packaging-%{version}-py%{$python_version}.egg-info
|
|
|
|
}
|
2018-12-28 09:57:58 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-04-24 16:31:25 +02:00
|
|
|
|
2017-02-23 14:18:40 +01:00
|
|
|
%files %{python_files}
|
Accepting request 682967 from home:jayvdb:coala:python3-bears
- Fix check that egg-info is a directory to work with %check enabled,
and better explain how it works
- Remove unnecessary build dependency on base
- Re-add test dependency on pyparsing with minimum version defined upstream,
and replace inline comment with GitHub issue URL
- Add LICENSE.APACHE LICENSE.BSD to %license
- Update to v19.0
* Fix string representation of PEP 508 direct URL requirements with markers.
* Better handling of file URLs
This allows for using ``file:///absolute/path``, which was previously
prevented due to the missing ``netloc``
This allows for all file URLs that ``urlunparse`` turns back into the
original URL to be valid
- from v18.0
* Improve error messages when invalid requirements are given
- Drop pyparsing dependency as its not needed and creates circular
dependency on older distributions
- Reduce amount of duplicities
- Update to version 17.1
* Fix utils.canonicalize_version when supplying non PEP 440 versions.
- Update to version 17.0
* Drop support for python 2.6, 3.2, and 3.3.
* Define minimal pyparsing version to 2.0.2 (#91).
* Add epoch, release, pre, dev, and post attributes to Version and LegacyVersion (#34).
* Add Version().is_devrelease and LegacyVersion().is_devrelease to make it easy to determine if a release is a development release.
* Add utils.canonicalize_version to canonicalize version strings or Version instances (#121).
- fix pyparsing requirement
- update for single-spec
- drop setuptools dependency, as this is itself now a dependency
of setuptools
- run tests conditionally, to minimize dependency tree
- ensure egg-info is a directory (distutils would install it as file)
- update to 16.8:
* Fix markers that utilize ``in`` so that they render correctly.
* Fix an erroneous test on Python RC releases.
- update to 16.7:
* Add support for the deprecated ``python_implementation`` marker which was
an undocumented setuptools marker in addition to the newer markers.
* Add support for the deprecated, PEP 345 environment markers in addition to
the newer markers.
- update to 16.5:
* Fix a regression in parsing requirements with whitespaces between the comma
separators.
* Fix a regression in parsing requirements like ``foo (==4)``.
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
matching legacy requirements.
* Add a function that implements the name canonicalization from PEP 503.
* Implement requirement specifiers from PEP 508.
* Relicense so that packaging is available under *either* the Apache License,
Version 2.0 or a 2 Clause BSD license.
* Support installation of packaging when only distutils is available.
* Fix ``==`` comparison when there is a prefix and a local version in play.
(:issue:`41`).
* Implement environment markers from PEP 508.
- Adjust Requires according to requires.txt
- update to 15.3:
* Normalize post-release spellings for rev/r prefixes. :issue:`35`
- update to 15.2:
* Fix an error where the arbitary specifier (``===``) was not correctly
allowing pre-releases when it was being used.
* Expose the specifier and version parts through properties on the
``Specifier`` classes.
* Allow iterating over the ``SpecifierSet`` to get access to all of the
``Specifier`` instances.
* Allow testing if a version is contained within a specifier via the ``in``
operator.
- Initial packaging
OBS-URL: https://build.opensuse.org/request/show/682967
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=23
2019-03-09 08:47:44 +01:00
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
2018-12-28 09:57:58 +01:00
|
|
|
%doc CHANGELOG.rst README.rst
|
2017-02-23 14:18:40 +01:00
|
|
|
%{python_sitelib}/packaging
|
|
|
|
%{python_sitelib}/packaging-%{version}-py*.egg-info/
|
2015-04-24 16:31:25 +02:00
|
|
|
|
2019-08-14 11:33:53 +02:00
|
|
|
%endif # !%%{with_test}
|
|
|
|
|
2015-04-24 16:31:25 +02:00
|
|
|
%changelog
|