forked from pool/python-lz4
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| cb1d0a8d36 | |||
| fbf6ebc346 | 
							
								
								
									
										
											BIN
										
									
								
								lz4-4.3.3.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lz4-4.3.3.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										3
									
								
								lz4-4.4.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								lz4-4.4.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | version https://git-lfs.github.com/spec/v1 | ||||||
|  | oid sha256:070fd0627ec4393011251a094e08ed9fdcc78cb4e7ab28f507638eee4e39abda | ||||||
|  | size 171884 | ||||||
							
								
								
									
										26
									
								
								py314.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								py314.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | |||||||
|  | From 53819a9e78615bf61dd6d8f2c92274af0c397c2e Mon Sep 17 00:00:00 2001 | ||||||
|  | From: Karolina Surma <ksurma@redhat.com> | ||||||
|  | Date: Thu, 29 May 2025 12:06:30 +0200 | ||||||
|  | Subject: [PATCH] Correct the import of _compression for Python 3.14 | ||||||
|  |  | ||||||
|  | This is backwards compatible with all supported versions of Python. | ||||||
|  | --- | ||||||
|  |  lz4/frame/__init__.py | 4 ++-- | ||||||
|  |  1 file changed, 2 insertions(+), 2 deletions(-) | ||||||
|  |  | ||||||
|  | diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py | ||||||
|  | index 00f3e64..60bf7dc 100644 | ||||||
|  | --- a/lz4/frame/__init__.py | ||||||
|  | +++ b/lz4/frame/__init__.py | ||||||
|  | @@ -25,9 +25,9 @@ | ||||||
|  |  __doc__ = _doc | ||||||
|  |   | ||||||
|  |  try: | ||||||
|  | -    import _compression   # Python 3.6 and later | ||||||
|  | +    import compression._common._streams as _compression  # Python 3.14 | ||||||
|  |  except ImportError: | ||||||
|  | -    from . import _compression | ||||||
|  | +    import _compression   # Python 3.6 - 3.13 | ||||||
|  |   | ||||||
|  |   | ||||||
|  |  BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT | ||||||
| @@ -1,3 +1,12 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Sep  9 14:55:40 UTC 2025 - Markéta Machová <mmachova@suse.com> | ||||||
|  |  | ||||||
|  | - Update to 4.4.4 | ||||||
|  |   * Various doc fixes | ||||||
|  |   * Update CI to newest actions and Python 3.13 | ||||||
|  |   * Revert artifact renaming | ||||||
|  | - Add py314.patch to fix tests with Python 3.14 | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Sat Jan 13 20:41:52 UTC 2024 - Dirk Müller <dmueller@suse.com> | Sat Jan 13 20:41:52 UTC 2024 - Dirk Müller <dmueller@suse.com> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| # | # | ||||||
| # spec file for package python-lz4 | # spec file for package python-lz4 | ||||||
| # | # | ||||||
| # Copyright (c) 2024 SUSE LLC | # Copyright (c) 2025 SUSE LLC and contributors | ||||||
| # | # | ||||||
| # All modifications and additions to the file contributed by third parties | # All modifications and additions to the file contributed by third parties | ||||||
| # remain the property of their copyright owners, unless otherwise agreed | # remain the property of their copyright owners, unless otherwise agreed | ||||||
| @@ -18,13 +18,15 @@ | |||||||
|  |  | ||||||
| %{?sle15_python_module_pythons} | %{?sle15_python_module_pythons} | ||||||
| Name:           python-lz4 | Name:           python-lz4 | ||||||
| Version:        4.3.3 | Version:        4.4.4 | ||||||
| Release:        0 | Release:        0 | ||||||
| Summary:        LZ4 Bindings for Python | Summary:        LZ4 Bindings for Python | ||||||
| License:        BSD-3-Clause | License:        BSD-3-Clause | ||||||
| Group:          Development/Languages/Python | Group:          Development/Languages/Python | ||||||
| URL:            https://github.com/python-lz4/python-lz4 | URL:            https://github.com/python-lz4/python-lz4 | ||||||
| Source:         https://files.pythonhosted.org/packages/source/l/lz4/lz4-%{version}.tar.gz | Source:         https://files.pythonhosted.org/packages/source/l/lz4/lz4-%{version}.tar.gz | ||||||
|  | # PATCH-FIX-UPSTREAM https://github.com/python-lz4/python-lz4/pull/303 Correct the import of _compression for Python 3.14 | ||||||
|  | Patch0:         py314.patch | ||||||
| BuildRequires:  %{python_module devel >= 3.7} | BuildRequires:  %{python_module devel >= 3.7} | ||||||
| BuildRequires:  %{python_module pip} | BuildRequires:  %{python_module pip} | ||||||
| BuildRequires:  %{python_module pkgconfig} | BuildRequires:  %{python_module pkgconfig} | ||||||
| @@ -42,7 +44,7 @@ BuildRequires:  python-rpm-macros | |||||||
| This package provides python bindings for the lz4 compression library. | This package provides python bindings for the lz4 compression library. | ||||||
|  |  | ||||||
| %prep | %prep | ||||||
| %setup -q -n lz4-%{version} | %autosetup -p1 -n lz4-%{version} | ||||||
|  |  | ||||||
| %build | %build | ||||||
| # not neccessary, but ensure we use system lib | # not neccessary, but ensure we use system lib | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user