From d9b1efcdf2e1ef36eae0e0d7832b31b2803132e7c3e4abbb041e40226362fcf5 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 21 Feb 2023 18:24:39 +0000 Subject: [PATCH] - Use release from pypi, the last release it not tagged in github, but add a new source with the github repo to get the tests that are not in the pypi release. (gh#hauntsaninja/pyp#33) - Update to 1.1.0: * Fix AST construction on Python 3.11 * Constructed ASTs now have a more convincing end_lineno * Test coverage for fallback unparsing, other test improvements * Now packaged by flit - [v1.0.0] * Configuration now allows the use of magic variables, effectively allowing you to define your own magic variables. See README.md for details * Explicit printing in used config functions will now disable automatic printing * Config definitions can now use things defined from wildcard imports. Automatic imports now work in config as well * Removed s as a magic variable. If you miss it, you can redefine it in your config using s = x * Implement correct scoping semantics for comprehensions, including with assignment expressions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyp?expand=0&rev=3 --- pyp-0.3.4.tar.gz | 3 --- pyp-tests.tar.gz | 3 +++ pypyp-1.1.0.tar.gz | 3 +++ python-pyp.changes | 24 ++++++++++++++++++++++++ python-pyp.spec | 28 +++++++++++++++++----------- 5 files changed, 47 insertions(+), 14 deletions(-) delete mode 100644 pyp-0.3.4.tar.gz create mode 100644 pyp-tests.tar.gz create mode 100644 pypyp-1.1.0.tar.gz diff --git a/pyp-0.3.4.tar.gz b/pyp-0.3.4.tar.gz deleted file mode 100644 index e89604f..0000000 --- a/pyp-0.3.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a3275b7e27039ef56a9dec70c32e1e45a6b298024eb8a553d46aa2e98af13c4b -size 23598 diff --git a/pyp-tests.tar.gz b/pyp-tests.tar.gz new file mode 100644 index 0000000..414e3c9 --- /dev/null +++ b/pyp-tests.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ce25ccf514012e516ec165263714a9d09bff513fce627cccfa5b92da3f8b897 +size 25855 diff --git a/pypyp-1.1.0.tar.gz b/pypyp-1.1.0.tar.gz new file mode 100644 index 0000000..8b7b5d4 --- /dev/null +++ b/pypyp-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0f05b0b8ebd0fa0704af7e5830eed67a75629211e1e882746432d8ae6860140 +size 18637 diff --git a/python-pyp.changes b/python-pyp.changes index 26bd9d9..d35af99 100644 --- a/python-pyp.changes +++ b/python-pyp.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Feb 21 16:35:23 UTC 2023 - Daniel Garcia + +- Use release from pypi, the last release it not tagged in github, but + add a new source with the github repo to get the tests that are not + in the pypi release. (gh#hauntsaninja/pyp#33) +- Update to 1.1.0: + * Fix AST construction on Python 3.11 + * Constructed ASTs now have a more convincing end_lineno + * Test coverage for fallback unparsing, other test improvements + * Now packaged by flit +- [v1.0.0] + * Configuration now allows the use of magic variables, effectively + allowing you to define your own magic variables. See README.md for + details + * Explicit printing in used config functions will now disable + automatic printing + * Config definitions can now use things defined from wildcard + imports. Automatic imports now work in config as well + * Removed s as a magic variable. If you miss it, you can redefine it + in your config using s = x + * Implement correct scoping semantics for comprehensions, including + with assignment expressions + ------------------------------------------------------------------- Thu Sep 9 08:38:33 UTC 2021 - Hans-Peter Jansen diff --git a/python-pyp.spec b/python-pyp.spec index 120eb7c..7cd8d04 100644 --- a/python-pyp.spec +++ b/python-pyp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyp # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2020-2021 LISA GmbH, Bingen, Germany # # All modifications and additions to the file contributed by third parties @@ -17,29 +17,31 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pyp -Version: 0.3.4 +Version: 1.1.0 Release: 0 Summary: Python at the shell License: MIT Group: Development/Libraries/Python URL: https://github.com/hauntsaninja/pyp -Source0: https://github.com/hauntsaninja/pyp/archive/v%{version}.tar.gz#/pyp-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pypyp/pypyp-%{version}.tar.gz +Source1: https://github.com/hauntsaninja/pyp/archive/d79c1e7bc9bb8af99ff6ac1257fafb370a78ad4d.tar.gz#/pyp-tests.tar.gz BuildRequires: %{python_module astunparse} BuildRequires: %{python_module base} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # testing requirements BuildRequires: bc -BuildRequires: jq BuildRequires: %{python_module pytest} +BuildRequires: jq Requires: python-astunparse BuildArch: noarch Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -48,14 +50,16 @@ Easily run Python at the shell! Magical, but never mysterious. See README.md or https://github.com/hauntsaninja/pyp for examples. %prep -%setup -q -n pyp-%{version} +%autosetup -p1 -n pypyp-%{version} sed -i '/^#!\//, 1d' pyp.py +mkdir pyp-tests +tar xz -C pyp-tests -f %{SOURCE1} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pyp %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -74,7 +78,9 @@ PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -vv #k ' %files %{python_files} %license LICENSE %doc *.md -%{python_sitelib}/ +%{python_sitelib}/pyp.py +%{python_sitelib}/pypyp-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__ %python_alternative %{_bindir}/pyp %changelog