Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-hatchling revision c4d9bc5d96be12e7bda6c525b6b3f839

This commit is contained in:
Adrian Schröter 2024-07-12 12:19:24 +02:00
commit 30e8050b1b
4 changed files with 347 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
hatchling-1.13.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,236 @@
-------------------------------------------------------------------
Thu Feb 9 17:13:34 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
- update to 1.13.0:
* Update the set of known trove classifiers to version 2023.2.8
-------------------------------------------------------------------
Sun Jan 8 17:46:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.12.2:
* Add macos-max-compat option to the wheel target that is enabled by default to
support the latest version 22.0 of the packaging library
-------------------------------------------------------------------
Mon Jan 2 10:31:58 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.12.1:
* Fixed:
+ Fix minor regression in the PEP 517/660 function signatures
that was discovered by Fedora
- additional changes from version 1.12.0:
* Added:
+ Improve readability of exceptions
+ Add extra_metadata build data to the wheel target
+ Retroactively support License-Expression core metadata
starting at version 2.1
+ Add more type hints
+ Update the set of known trove classifiers to version
2022.12.22
+ Update SPDX license information to version 3.19
+ Store Hatchling's metadata in pyproject.toml
* Fixed:
+ Acknowledge the ARCHFLAGS environment variable on macOS for
the wheel target when build hooks set the infer_tag build
data to true
+ Fix dependency checking when encountering broken
distributions
+ Remove unnecessary encoding declaration in the default
template for the version build hook
- remove skip_python2: python >= 3.7 is already required
- drop python_module macro definition: provided by
python-rpm-macros
-------------------------------------------------------------------
Thu Oct 20 19:55:11 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.11.1:
* Fixed: Fix default file selection behavior of the wheel target
when there is a single top-level module
-------------------------------------------------------------------
Sun Oct 9 19:49:17 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.11.0:
* Added:
+ Add env version source to retrieve the version from an
environment variable
+ Add validate-bump option to the standard version scheme
* Fixed:
+ Use proper CSV formatting for the RECORD metadata file of the
wheel target to avoid warnings during installation by pip if,
for example, file names contain commas
+ Fix installations with pip for build hooks that modify
runtime dependencies
+ Decreasing verbosity now has no affect on output that should
always be displayed
-------------------------------------------------------------------
Fri Sep 23 19:56:00 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.10.0:
* Added:
+ Add the following to the list of directories that cannot be
traversed: __pypackages__, .hg, .hatch, .tox, .nox
+ Add deprecated option to allow ambiguous features
* Fixed:
+ Improve tracking of dynamic metadata
+ Fix core metadata for entries in
project.optional-dependencies that use direct references
-------------------------------------------------------------------
Tue Sep 13 20:05:14 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.9.0:
* Changed:
+ File pattern matching now more closely resembles Git's
behavior
* Added:
+ Implement a minimal version of
prepare_metadata_for_build_wheel and
prepare_metadata_for_build_editable for non-frontend tools
that only need to inspect a project's metadata
+ Add metadata command to view PEP 621 project metadata
+ Improve error messages for SPDX license errors
+ Retroactively support License-File for core metadata starting
at version 2.1
+ Bump the minimum supported version of pathspec to 0.10.1
* Fixed:
+ Allow the valid non-SPDX license values
LicenseRef-Public-Domain and LicenseRef-Proprietary
+ Show the help text of the CLI when no subcommand is selected
- requires python-base to set the minimum python version, -devel is
not needed
- requires pathspec >= 0.10.1
-------------------------------------------------------------------
Thu Aug 25 18:52:11 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.8.1:
* Fixed:
+ Fix default file inclusion for wheel build targets when both
the project name and package directory name are not
normalized
-------------------------------------------------------------------
Thu Aug 18 15:44:17 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.8.0:
* Added:
+ Add get_known_classifiers method to metadata hooks
* Fixed:
+ Fix check for updating static versions with the version
command when metadata hooks are in use
-------------------------------------------------------------------
Sat Aug 13 19:23:18 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.7.1:
* Fixed:
+ Fix the value the relative_path attribute of included files,
that some build plugins may use, when selecting explicit
paths
-------------------------------------------------------------------
Sat Aug 13 14:17:00 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.7.0:
* Added:
+ Add require-runtime-features option for builders and build
hooks
+ Check for unknown trove classifiers
+ Update SPDX license information to version 3.18
* Fixed:
+ Add better error message for wheel target dev mode
installations that define path rewrites with the sources
option
+ Note the allow-direct-references option in the relevant error
messages
-------------------------------------------------------------------
Sat Jul 30 20:38:56 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.6.0:
* Changed:
+ When no build targets are specified on the command line, now
default to sdist and wheel targets rather than what happens
to be defined in config
+ The code version source now only supports files with known
extensions
+ Global build hooks now run before target-specific build hooks
to better match expected behavior
* Added:
+ The code version source now supports loading extension
modules
+ Add search-paths option for the code version source
* Fixed:
+ Fix removing sources using an empty string value in the
mapping
+ The strict-naming option now also applies to the metadata
directory of wheel targets
-------------------------------------------------------------------
Fri Jul 15 12:19:55 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.5.0:
* Added:
+ Support the final draft of PEP 639
+ Add strict-naming option for sdist and wheel targets
* Fixed: Project names are now stored in sdist and wheel target
core metadata exactly as defined in pyproject.toml without
normalization to allow control of how PyPI displays them
- require python 3.7 as minimum version to match upstream
requirement
-------------------------------------------------------------------
Tue Jul 5 18:00:11 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.4.1:
* Fixed:
+ Fix forced inclusion of important files like licenses for
sdist targets when using the explicit selection options
+ Don't sort project URL metadata so that the rendered order
on PyPI can be controlled
-------------------------------------------------------------------
Mon Jul 4 16:13:37 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.4.0:
* Changed: The packages option uses the new only-include option
to provide targeted inclusion, since that is desired most of
the time
* Added:
+ Support PEP 561 type hinting
+ Add version build hook
+ Add only-include option
+ The editable version of wheel targets now respects the
force-include option by default
+ The force-include option now supports path rewriting with the
sources option
+ The wheel target shared-data and extra-metadata options now
respect file selection options
+ The wheel target now auto-detects single module layouts
+ Improve performance by never entering directories that are
guaranteed to be undesirable like __pycache__ rather than
excluding individual files within
+ Update SPDX license information to version 3.17
* Fixed:
+ Don't write empty entry points file for wheel targets if
there are no entry points defined
+ Allow metadata hooks to set the version in all cases
+ Prevent duplicate file entries from inclusion when using the
force-include option
-------------------------------------------------------------------
Sun Jun 12 13:54:32 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.3.1:
* Fixed: Better populate global variables for the code version
source
- add a comment explaining why the tests are skipped in obs
because they need internet access
-------------------------------------------------------------------
Thu May 26 16:38:22 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- creation of the package with version 1.3.0

View File

@ -0,0 +1,85 @@
#
# spec file for package saltbundlepy-hatchling
#
# Copyright (c) 2023 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/
#
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
%define pythons saltbundlepy
Name: saltbundlepy-hatchling
Version: 1.13.0
Release: 0
Summary: Build backend used by Hatch
License: MIT
URL: https://hatch.pypa.io/latest/
Source0: https://files.pythonhosted.org/packages/source/h/hatchling/hatchling-%{version}.tar.gz
BuildRequires: %{saltbundlepy_module base >= 3.7}
BuildRequires: %{saltbundlepy_module editables >= 0.3}
BuildRequires: %{saltbundlepy_module packaging >= 21.3}
BuildRequires: %{saltbundlepy_module pathspec >= 0.10.1}
BuildRequires: %{saltbundlepy_module pip}
BuildRequires: %{saltbundlepy_module pluggy >= 1.0.0}
BuildRequires: %{saltbundlepy_module tomli >= 1.2.2}
BuildRequires: fdupes
BuildRequires: saltbundlepy-rpm-macros
Requires: saltbundlepy-editables >= 0.3
Requires: saltbundlepy-packaging >= 21.3
Requires: saltbundlepy-pathspec >= 0.10.1
Requires: saltbundlepy-pluggy >= 1.0.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
Requires: saltbundlepy-tomli >= 1.2.2
%python_subpackages
%description
This is the extensible, standards compliant build backend used by Hatch.
%prep
%autosetup -n hatchling-%{version} -p1
%build
%pyproject_wheel
%install
%pyproject_install
%{python_expand \
find %{buildroot}%{$python_sitelib} -name '*.pyc' -delete
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{$python_sitelib}
}
%python_clone -a %{buildroot}%{_bindir}/hatchling
%check
# The tests provided in the tarball relies on internet access to run
# (git clone, pip install ...), so they cannot work on obs
# see tests/downstream/integrate.py for details
%post
%python_install_alternative hatchling
%postun
%python_uninstall_alternative hatchling
%files %{python_files}
%doc README.md
%license LICENSE.txt
%{python_sitelib}/hatchling
%{python_sitelib}/hatchling-%{version}.dist-info
%python_alternative %{_bindir}/hatchling
%changelog