2022-01-23 23:11:31 +00:00
|
|
|
#
|
2022-08-03 12:18:02 +00:00
|
|
|
# spec file
|
2022-01-23 23:11:31 +00:00
|
|
|
#
|
2023-02-17 16:59:46 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-01-23 23:11:31 +00: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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2022-08-03 12:18:02 +00:00
|
|
|
|
2023-06-11 20:06:21 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-08-03 12:18:02 +00:00
|
|
|
Name: python-pdm-pep517%{psuffix}
|
2023-02-17 16:59:46 +00:00
|
|
|
Version: 1.1.2
|
2022-01-23 23:11:31 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python Development Master
|
|
|
|
|
License: MIT
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
URL: https://github.com/pdm-project/pdm-pep517
|
2022-01-23 23:11:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pdm-pep517/pdm-pep517-%{version}.tar.gz
|
2022-08-03 12:18:02 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2022-01-23 23:11:31 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%if %{with test}
|
2022-08-03 12:18:02 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module pdm-pep517 = %{version}}
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2022-01-23 23:11:31 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-08-03 12:18:02 +00:00
|
|
|
BuildRequires: git-core
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%endif
|
2022-01-23 23:11:31 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PDM is a modern Python package manager with PEP 582 support. It
|
|
|
|
|
installs and manages packages in a similar way to npm that
|
|
|
|
|
doesn't need to create a virtualenv at all!
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n pdm-pep517-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2022-08-03 12:18:02 +00:00
|
|
|
%if !%{with test}
|
2022-01-23 23:11:31 +00:00
|
|
|
%pyproject_wheel
|
2022-08-03 12:18:02 +00:00
|
|
|
%endif
|
2022-01-23 23:11:31 +00:00
|
|
|
|
|
|
|
|
%install
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%if !%{with test}
|
2022-01-23 23:11:31 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%endif
|
2022-01-23 23:11:31 +00:00
|
|
|
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%if %{with test}
|
2022-01-23 23:11:31 +00:00
|
|
|
%check
|
2022-08-03 12:18:02 +00:00
|
|
|
# must be set to the same value as it is set by the python_flavored_alternatives macro used below in pytest
|
|
|
|
|
export XDG_CONFIG_HOME=$PWD/build/xdgflavorconfig
|
|
|
|
|
%{python_expand # the config home is inside the shuffled build dir
|
|
|
|
|
mkdir -p $XDG_CONFIG_HOME/git
|
|
|
|
|
touch $XDG_CONFIG_HOME/git/config
|
|
|
|
|
git config --global user.name abuild
|
|
|
|
|
git config --global user.email abuild@obs
|
|
|
|
|
}
|
|
|
|
|
%pytest
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%endif
|
2022-01-23 23:11:31 +00:00
|
|
|
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%if !%{with test}
|
2022-01-23 23:11:31 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
Accepting request 992373 from home:Simmphonie:branches:devel:languages:python
- Update to 1.0.2
* Ensure the license is a file. Also add LICENSES/* to the default
search patterns, as specified by REUSE spec. #105
* Throw a better error message when a malformed requirement
is being parsed. #106
- Release v1.0.1 (2022-07-03)
* Fix a compatibility issue that run_setuptools defaults to True
for old build configuration.
- Release v1.0.0 (2022-06-25)
* No significant changes.
- Release v1.0.0a1 (2022-06-22)
* Emit UserWarning for deprecated settings.
- Release v1.0.0a0 (2022-06-22)
* Allow writing dynamic version from scm source to a file. #94
* The dynamic version table fields are renamed: {from = ...} to
{source = "file", path = ...} and {use_scm = true} to {source = "scm"}. #95
* Support custom build script, a script containing a function named build
that takes (src, dst) as the arguments. When run-setuptools is true, the
build function will be called in a generated setup.py file, with the setup
parameters as the only argument. #98
* Removals and Deprecations
+ includes, excludes, source-includes, package-dir, is-purelib, editable-backend
are moved to [tool.pdm.build] table. build field is renamed to setup-script
under [tool.pdm.build] table. #96
OBS-URL: https://build.opensuse.org/request/show/992373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm-pep517?expand=0&rev=5
2022-08-02 17:27:58 +00:00
|
|
|
%dir %{python_sitelib}/pdm
|
|
|
|
|
%{python_sitelib}/pdm/pep517
|
|
|
|
|
%{python_sitelib}/pdm_pep517-%{version}.dist-info
|
|
|
|
|
%endif
|
2022-01-23 23:11:31 +00:00
|
|
|
|
|
|
|
|
%changelog
|