commit 16db31e669d8de3c26010a51518877403276679bc1dcec5310d4d758a6328b73 Author: Adrian Schröter Date: Fri May 3 21:22:41 2024 +0200 Sync from SUSE:SLFO:Main python-lazy-object-proxy revision fb405eb0f197aa34e81f24c6a4e57c12 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/lazy-object-proxy-1.9.0.tar.gz b/lazy-object-proxy-1.9.0.tar.gz new file mode 100644 index 0000000..e5f9865 --- /dev/null +++ b/lazy-object-proxy-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:659fb5809fa4629b8a1ac5106f669cfc7bef26fbb389dda53b3e010d1ac4ebae +size 42830 diff --git a/python-lazy-object-proxy.changes b/python-lazy-object-proxy.changes new file mode 100644 index 0000000..9b4643b --- /dev/null +++ b/python-lazy-object-proxy.changes @@ -0,0 +1,161 @@ +------------------------------------------------------------------- +Fri May 5 13:42:30 UTC 2023 - Dirk Müller + +- update to 1.9.0: + * Added support for matrix multiplication operator (``@``). + * Should have all the wheels now (including the manylinux + ones). + * Bumped minimum version requirements for setuptools and + setuptools-scm. + * Switched the default pure python fallback implementation to + the "simple" one (when you ``from lazy_object_proxy import + Proxy`` and the C extension is not available). + Previously the "slots" implementation was used but as it + turns out it is slower on Python 3. + +------------------------------------------------------------------- +Fri Apr 21 12:27:50 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:26 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Fri Dec 2 18:25:54 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v1.8.0 + Cleaned up use of cPickle. Contributed by Sandro Tosi in #62. + Cleaned up more dead Python 2 code. + Added Python 3.11 wheels. + Dropped support for Python 3.6. + +------------------------------------------------------------------- +Thu Aug 18 19:27:17 UTC 2022 - Ben Greiner + +- Clean specfile, remove code coverage check and travis-fold + +------------------------------------------------------------------- +Sat Mar 26 20:03:03 UTC 2022 - Dirk Müller + +- update to 1.7.1: + * Removed most of the Python 2 support code and fixed ``python_requires`` to + require at least Python 3.6. + * Note that 1.7.0 has been yanked because it could not install on Python 2.7. + * Switched CI to GitHub Actions, this has a couple consequences: + * Fixed ``__index__`` to fallback to ``int`` if the wrapped object doesn't + have an ``__index__`` method. This prevents situations where code using a + proxy would otherwise likely just call ``int`` had the object not have an + ``__index__`` method. + +------------------------------------------------------------------- +Wed Oct 13 09:02:38 UTC 2021 - Ben Greiner + +- Unpin setuptools_scm<6.0 limit + +------------------------------------------------------------------- +Sat Jul 31 15:58:37 UTC 2021 - Dirk Müller + +- update to 1.6.0: + * Added support for async special methods (``__aiter__``, ``__anext__``, + ``__await__``, ``__aenter__``, ``__aexit__``). + These are used in the ``async for``, ``await` and ``async with`` statements. + + Note that ``__await__`` returns a wrapper that tries to emulate the crazy + stuff going on in the ceval loop, so there will be a small performance overhead. + * Added the ``__resolved__`` property. You can use it to check if the factory has + been called. + +------------------------------------------------------------------- +Fri Feb 26 08:46:31 UTC 2021 - Markéta Machová + +- Drop broken %ifpython3 macro + +------------------------------------------------------------------- +Sun Dec 20 09:34:39 UTC 2020 - Dirk Müller + +- update to 1.5.2: + * Added Python 3.9 wheels. + * Removed Python 2.7 Windows wheels + +------------------------------------------------------------------- +Thu Sep 17 11:39:27 UTC 2020 - Dirk Mueller + +- udpate to 1.5.1: + * Added ARM64 wheels (manylinux2014). + * Added support for ``__fspath__``. + * Dropped support for Python 3.4. + +------------------------------------------------------------------- +Wed Apr 15 11:16:17 UTC 2020 - Marketa Calabkova + +- Update to 1.4.3 + * Added binary wheels for Python 3.8. + * Fixed license metadata. + +------------------------------------------------------------------- +Wed Sep 11 13:02:47 UTC 2019 - Tomáš Chvátal + +- Update to 1.4.2: + * Included a pyproject.toml to allow users install the sdist with old + python/setuptools, as the setuptools-scm dep will be fetched by pip + instead of setuptools. Fixes #30. + +------------------------------------------------------------------- +Thu Jun 20 12:53:22 UTC 2019 - Marketa Calabkova + +- update to 1.4.1 + * Fixed __mod__ for the slots backend. + * Dropped support for Python 2.6 and 3.3. + * Fixed wheels being built with -coverage cflags. No more issues + about bogus cext.gcda files. + * Removed useless C file from wheels. + * Changed setup.py to use setuptools-scm. +- launch tests using multibuild + +------------------------------------------------------------------- +Mon Jul 30 15:55:47 UTC 2018 - sean.marlow@suse.com + +- Update to v1.3.1 + + Fix broken release (sdist had a broken MANIFEST.in). +- Update to v1.3.0 + + Speed up arithmetic operations involving cext.Proxy subclasses. + +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Don't provide python2-lazy_object_proxy, singlespec packages + should use correct name. + +------------------------------------------------------------------- +Mon Feb 27 14:04:16 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- renamed to lazy-object-proxy for PyPI consistency +- updated download url + +------------------------------------------------------------------- +Mon Jul 4 16:36:47 UTC 2016 - arun@gmx.de + +- update to version 1.2.2: + * Added `manylinux `_ + wheels. + * Minor cleanup in readme. + +------------------------------------------------------------------- +Sun May 15 09:47:00 UTC 2016 - tchvatal@suse.com + +- Move from python2 to work with python3-astrid + +------------------------------------------------------------------- +Tue Feb 23 09:56:47 UTC 2016 - bwiedemann@suse.com + +- fix license string + +------------------------------------------------------------------- +Wed Feb 10 14:56:16 UTC 2016 - michael@stroeder.com + +- initial packaging of upstream release 1.2.1 + diff --git a/python-lazy-object-proxy.spec b/python-lazy-object-proxy.spec new file mode 100644 index 0000000..083f25a --- /dev/null +++ b/python-lazy-object-proxy.spec @@ -0,0 +1,84 @@ +# +# spec file +# +# 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/ +# + + +%{?!python_module:%define python_module() python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%global skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-lazy-object-proxy%{psuffix} +Version: 1.9.0 +Release: 0 +Summary: Rebuild a new abstract syntax tree from Python's ast +License: BSD-2-Clause +Group: Development/Libraries/Python +URL: https://github.com/ionelmc/python-lazy-object-proxy +Source: https://files.pythonhosted.org/packages/source/l/lazy-object-proxy/lazy-object-proxy-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools >= 45} +BuildRequires: %{python_module setuptools_scm >= 6.2} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Obsoletes: python-lazy_object_proxy < %{version}-%{release} +Provides: python-lazy_object_proxy = %{version}-%{release} +%if %{with test} +BuildRequires: %{python_module lazy-object-proxy = %{version}} +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest} +%endif +%python_subpackages + +%description +A fast and thorough lazy object proxy that rebuilds a new abstract syntax tree +from Python's ast + +%prep +%setup -q -n lazy-object-proxy-%{version} + +%build +%if !%{with test} +export CFLAGS="%{optflags} -fno-strict-aliasing" +%python_build +%endif + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} +%endif + +%if %{with test} +%check +%pytest tests +%endif + +%if !%{with test} +%files %{python_files} +%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst docs +%license LICENSE +%{python_sitearch}/lazy_object_proxy +%{python_sitearch}/lazy_object_proxy-%{version}*-info +%endif + +%changelog