public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-eth-abi] f45: Update to 6.0.0
@ 2026-08-24 18:04 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-24 18:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-eth-abi
            Branch : f45
            Commit : db89b6b98a70299bd1b33647337435374f30f651
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-23T02:26:46-03:00
            Stats  : +54/-6 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-eth-abi/c/db89b6b98a70299bd1b33647337435374f30f651?branch=f45

            Log:
            Update to 6.0.0

Resolves: rhbz#2521551

---
diff --git a/python-eth-abi-0001-Do-not-package-docs-directory.patch b/python-eth-abi-0001-Do-not-package-docs-directory.patch
new file mode 100644
index 0000000..507a1ae
--- /dev/null
+++ b/python-eth-abi-0001-Do-not-package-docs-directory.patch
@@ -0,0 +1,25 @@
+From: Filipe Rosset <rosset.filipe@gmail.com>
+Date: Sun, 23 Aug 2026 02:22:00 -0300
+Subject: [PATCH] Do not package docs directory
+
+Exclude docs and docs.* from packages.find in pyproject.toml to avoid
+installing docs into site-packages.
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index cc52eef..c49bb69 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -80,7 +80,7 @@ dev = [
+ include-package-data = true
+ 
+ [tool.setuptools.packages.find]
+-exclude = ["scripts", "scripts.*", "tests", "tests.*"]
++exclude = ["docs", "docs.*", "scripts", "scripts.*", "tests", "tests.*"]
+ 
+ [tool.setuptools.package-data]
+ eth_abi = ["py.typed"]
+-- 
+2.48.1

diff --git a/python-eth-abi-0002-Support-Hypothesis-with-PEP-515-underscores.patch b/python-eth-abi-0002-Support-Hypothesis-with-PEP-515-underscores.patch
new file mode 100644
index 0000000..6aabcca
--- /dev/null
+++ b/python-eth-abi-0002-Support-Hypothesis-with-PEP-515-underscores.patch
@@ -0,0 +1,23 @@
+From: Filipe Rosset <rosset.filipe@gmail.com>
+Date: Sun, 23 Aug 2026 02:23:00 -0300
+Subject: [PATCH] Support Hypothesis with PEP 515 underscores
+
+Hypothesis 6.108.7 and later formats large integer representations with
+underscores (PEP 515). Normalize underscores when comparing string
+representations of strategies.
+---
+ tests/core/test_tools.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/core/test_tools.py b/tests/core/test_tools.py
+index e1eec1d..b0f51ba 100644
+--- a/tests/core/test_tools.py
++++ b/tests/core/test_tools.py
+@@ -116,4 +116,4 @@ def test_get_abi_strategy_returns_no_strategy_for_invalid_type_strs(malformed_ty
+ def test_get_abi_strategy_returns_certain_strategies_for_known_type_strings(
+     type_str, strategy_repr
+ ):
+-    assert repr(get_abi_strategy(type_str)) == strategy_repr
++    assert repr(get_abi_strategy(type_str)).replace("_", "") == strategy_repr.replace("_", "")
+-- 
+2.48.1

diff --git a/python-eth-abi.spec b/python-eth-abi.spec
index c30b2c9..4474970 100644
--- a/python-eth-abi.spec
+++ b/python-eth-abi.spec
@@ -1,14 +1,16 @@
 %global pypi_name eth_abi
 
 Name:          python-eth-abi
-Version:       5.2.0
+Version:       6.0.0
 Release:       %autorelease
 BuildArch:     noarch
 Summary:       Python utilities for working with Ethereum ABI definitions
 License:       MIT
-URL:           https://github.com/ethereum/eth-abi
+URL:           https://github.com/ApeWorX/eth-abi
 VCS:           git:%{url}.git
 Source0:       %{pypi_source %pypi_name}
+Patch:         python-eth-abi-0001-Do-not-package-docs-directory.patch
+Patch:         python-eth-abi-0002-Support-Hypothesis-with-PEP-515-underscores.patch
 BuildRequires: python3-hypothesis
 BuildRequires: python3-pytest
 BuildSystem:   pyproject
@@ -25,9 +27,7 @@ Summary: %{summary}
 %{summary}.
 
 %check -a
-# FIXME test_get_abi_strategy_returns_certain_strategies_for_known_type_strings
-# fails because of PEP 515 enforcement in Hypothesis 6.108.7 or later.
-PYTHONPATH=$(pwd) %pytest -k 'not test_install_local_wheel and not test_get_abi_strategy_returns_certain_strategies_for_known_type_strings'
+PYTHONPATH=. %pytest
 
 %files -n python3-eth-abi -f %{pyproject_files}
 %doc README.md

diff --git a/sources b/sources
index d608450..848bcfc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (eth_abi-5.2.0.tar.gz) = 4b63eac50a24398c81db87a021894c5fdb87e5bb96e739b795f0cd1b13053b5f637846089d6667cda48865e010f14af8ee85cf736008acc6d112da56433a92da
+SHA512 (eth_abi-6.0.0.tar.gz) = 39aad33943e0fe4944eef43834ed663693b1c4567fec9ead3ac44c474a07cfd1a0422f1089de6c26e9c538203666798ef9432d576562ecc071b836d5c5187ff0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-24 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-24 18:04 [rpms/python-eth-abi] f45: Update to 6.0.0 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox