From 975188c77b00cf926c9b89e3586578fe2ff17b2f Mon Sep 17 00:00:00 2001 From: mcepl <> Date: Mar 17 2025 21:44:42 +0000 Subject: Update python-flit-core to version 3.11.0 / rev 20 via SR 1253078 https://build.opensuse.org/request/show/1253078 by user mcepl + anag+factory --- diff --git a/.files b/.files index 7b4f3e3..f3a5081 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index 49be791..4ec6ef1 100644 --- a/.rev +++ b/.rev @@ -180,4 +180,49 @@ <comment>Automatic submission by obs-autosubmit</comment> <requestid>1186039</requestid> </revision> + <revision rev="19" vrev="1"> + <srcmd5>2ab493779336b9bf90bd33c4efe76915</srcmd5> + <version>3.10.1</version> + <time>1736959311</time> + <user>anag+factory</user> + <comment>- Update to 3.10.1: + * flit publish can now use PyPI tokens stored in keyring (PR #649), either + project tokens with a ‘username’ like pypi_token:project:project_name + (use the normalised form of the name) or user tokens + (pypi_token:user:username). + * The --python option can now take the path of a virtualenv folder, as an + alternative to a Python executable (PR #667). + * Flit will work with current development versions of Pythona again + (PR #684). + * The flit command line package now requires Python 3.8 or above (PR #660). + flit_core still works with Python 3.6 or above. + * The metadata in packages now has the names of optional dependency + groups (“extras”) normalised, complying with version 2.3 of the metadata + standard (PR #676, PR #697). + * The flit command line package now depends on pip (PR #647). + * Fix potential substitution of environment variables into passwords read + from .pypirc files (PR #652). + * A warning is now shown when building packages which specify the old + flit.buildapi backend, which should be replaced by flit_core.buildapi + (PR #674). It’s a good idea to always set a maximum version for the + build requirement, to protect against changes in future major versions + of Flit. + * Avoid using the deprecated datetime.utcfromtimestamp() (PR #682). + * Flit now has a SECURITY.md file in the Github repository (PR #665). + * The tests for flit_core are no longer part of the installed package, + reducing the size of the wheels (PR #691). +- Drop patches, included upstream: + * py312-avoid-using-utcfromtimestamp.patch + * py314-avoid-using-ast-str.patch +- We no longer need to remove the tests from the install.</comment> + <requestid>1237617</requestid> + </revision> + <revision rev="20" vrev="1"> + <srcmd5>4ef08307a7b8c7dc8097d00a659ff78f</srcmd5> + <version>3.11.0</version> + <time>1742246186</time> + <user>anag+factory</user> + <comment></comment> + <requestid>1253078</requestid> + </revision> </revisionlist> diff --git a/flit_core-3.11.0.tar.gz b/flit_core-3.11.0.tar.gz new file mode 120000 index 0000000..407a74a --- /dev/null +++ b/flit_core-3.11.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreidm53xdegpj2lvcqicb6pqcprcblf5ukcztab6lqeli5cd3mej2r4 \ No newline at end of file diff --git a/flit_core-3.9.0.tar.gz b/flit_core-3.9.0.tar.gz deleted file mode 120000 index b780975..0000000 --- a/flit_core-3.9.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafkreidsvutgc5weup6pvnpssmgxnclalgcreqcxbtu2tbztwzmmw6doxi \ No newline at end of file diff --git a/py312-avoid-using-utcfromtimestamp.patch b/py312-avoid-using-utcfromtimestamp.patch deleted file mode 100644 index 45b54a2..0000000 --- a/py312-avoid-using-utcfromtimestamp.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 915fa612e227fb4bf67f8484af5c8a399f108526 Mon Sep 17 00:00:00 2001 -From: Wim Jeantine-Glenn <hey@wimglenn.com> -Date: Mon, 13 May 2024 23:48:47 -0500 -Subject: [PATCH] datetime.utcfromtimestamp is deprecated in Python 3.12, avoid - using it - -https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp ---- - flit_core/flit_core/wheel.py | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/flit_core/flit_core/wheel.py b/flit_core/flit_core/wheel.py -index b4a44b0d..dbf77372 100644 ---- a/flit_core/flit_core/wheel.py -+++ b/flit_core/flit_core/wheel.py -@@ -2,6 +2,7 @@ - from base64 import urlsafe_b64encode - import contextlib - from datetime import datetime -+from datetime import timezone - import hashlib - import io - import logging -@@ -42,7 +43,8 @@ def zip_timestamp_from_env() -> Optional[tuple]: - try: - # If SOURCE_DATE_EPOCH is set (e.g. by Debian), it's used for - # timestamps inside the zip file. -- d = datetime.utcfromtimestamp(int(os.environ['SOURCE_DATE_EPOCH'])) -+ t = int(os.environ['SOURCE_DATE_EPOCH']) -+ d = datetime.fromtimestamp(t, timezone.utc) - except (KeyError, ValueError): - # Otherwise, we'll use the mtime of files, and generated files will - # default to 2016-1-1 00:00:00 diff --git a/py314-avoid-using-ast-str.patch b/py314-avoid-using-ast-str.patch deleted file mode 100644 index 439592e..0000000 --- a/py314-avoid-using-ast-str.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 6ab62c91d0db451b5e9ab000f0dba5471550b442 Mon Sep 17 00:00:00 2001 -From: Thomas A Caswell <tcaswell@gmail.com> -Date: Tue, 28 May 2024 10:25:13 -0400 -Subject: [PATCH] MNT: fix compatibility with Python 3.14 - -The ast.Str class was deprecated in 3.8 and will be removed in 3.14 ---- - flit_core/flit_core/common.py | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) - -diff --git a/flit_core/flit_core/common.py b/flit_core/flit_core/common.py -index 6625224b..8bcda3fb 100644 ---- a/flit_core/flit_core/common.py -+++ b/flit_core/flit_core/common.py -@@ -148,6 +148,10 @@ def get_docstring_and_version_via_ast(target): - with target_path.open('rb') as f: - node = ast.parse(f.read()) - for child in node.body: -+ if sys.version_info >= (3, 8): -+ target_type = ast.Constant -+ else: -+ target_type = ast.Str - # Only use the version from the given module if it's a simple - # string assignment to __version__ - is_version_str = ( -@@ -157,10 +161,13 @@ def get_docstring_and_version_via_ast(target): - and target.id == "__version__" - for target in child.targets - ) -- and isinstance(child.value, ast.Str) -+ and isinstance(child.value, target_type) - ) - if is_version_str: -- version = child.value.s -+ if sys.version_info >= (3, 8): -+ version = child.value.value -+ else: -+ version = child.value.s - break - return ast.get_docstring(node), version - diff --git a/python-flit-core.changes b/python-flit-core.changes index 6d3bc7b..a4d65c2 100644 --- a/python-flit-core.changes +++ b/python-flit-core.changes @@ -1,4 +1,52 @@ ------------------------------------------------------------------- +Fri Mar 14 12:32:28 UTC 2025 - Markéta Machová <mmachova@suse.com> + +- Update to 3.11.0 + * Support for SPDX license expressions and multiple license files, + as detailed in PEP 639: + license = "BSD-3-Clause" + license-files = ["LICENSE"] + For now, only a single license identifier is allowed. More complex + expressions describing multiple licenses & expressions may be supported + in a future version. + * The metadata format in produced packages is now version 2.4, to support + the expanded license information. + +------------------------------------------------------------------- +Tue Jan 14 02:39:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> + +- Update to 3.10.1: + * flit publish can now use PyPI tokens stored in keyring (PR #649), either + project tokens with a ‘username’ like pypi_token:project:project_name + (use the normalised form of the name) or user tokens + (pypi_token:user:username). + * The --python option can now take the path of a virtualenv folder, as an + alternative to a Python executable (PR #667). + * Flit will work with current development versions of Pythona again + (PR #684). + * The flit command line package now requires Python 3.8 or above (PR #660). + flit_core still works with Python 3.6 or above. + * The metadata in packages now has the names of optional dependency + groups (“extras”) normalised, complying with version 2.3 of the metadata + standard (PR #676, PR #697). + * The flit command line package now depends on pip (PR #647). + * Fix potential substitution of environment variables into passwords read + from .pypirc files (PR #652). + * A warning is now shown when building packages which specify the old + flit.buildapi backend, which should be replaced by flit_core.buildapi + (PR #674). It’s a good idea to always set a maximum version for the + build requirement, to protect against changes in future major versions + of Flit. + * Avoid using the deprecated datetime.utcfromtimestamp() (PR #682). + * Flit now has a SECURITY.md file in the Github repository (PR #665). + * The tests for flit_core are no longer part of the installed package, + reducing the size of the wheels (PR #691). +- Drop patches, included upstream: + * py312-avoid-using-utcfromtimestamp.patch + * py314-avoid-using-ast-str.patch +- We no longer need to remove the tests from the install. + +------------------------------------------------------------------- Sun Jun 30 19:09:04 UTC 2024 - Dirk Müller <dmueller@suse.com> - add py312-avoid-using-utcfromtimestamp.patch, diff --git a/python-flit-core.spec b/python-flit-core.spec index 4c40212..de52797 100644 --- a/python-flit-core.spec +++ b/python-flit-core.spec @@ -1,7 +1,7 @@ # # spec file for package python-flit-core # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -52,14 +52,12 @@ ExclusiveArch: do-not-build %endif %{?sle15_python_module_pythons} Name: %{pprefix}-flit-core%{?psuffix} -Version: 3.9.0 +Version: 3.11.0 Release: 0 Summary: Distribution-building parts of Flit License: BSD-3-Clause AND MIT URL: https://github.com/pypa/flit Source0: https://files.pythonhosted.org/packages/source/f/flit_core/flit_core-%{version}.tar.gz -Patch1: https://github.com/pypa/flit/commit/915fa612e227fb4bf67f8484af5c8a399f108526.patch#/py312-avoid-using-utcfromtimestamp.patch -Patch2: https://github.com/pypa/flit/commit/6ab62c91d0db451b5e9ab000f0dba5471550b442.patch#/py314-avoid-using-ast-str.patch BuildRequires: %{python_module base >= 3.6} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -102,8 +100,6 @@ $mypython -m flit_core.wheel %{python_expand # mkdir -p %{buildroot}%{$python_sitelib} $python bootstrap_install.py dist/flit_core-%{version}-py3-none-any.whl -i %{buildroot}%{$python_sitelib} -# Don't package the tests -rm -r %{buildroot}%{$python_sitelib}/flit_core/tests } %{?python_compileall} %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -119,7 +115,7 @@ rm flit_core/*.py pyproject.toml %if "%{flavor}" != "test" %files %{python_files} %{python_sitelib}/flit_core -%{python_sitelib}/flit_core-%{version}*-info +%{python_sitelib}/flit_core-%{version}.dist-info %endif %changelog