From 9340ecbfd353754c56ae7d6bf4ff1b94185ef1de30f92da1e177d3b6c350944d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 31 Dec 2021 12:26:30 +0000 Subject: [PATCH] - Update to 0.7.6: - Fix for with-statement when return is used in the context. - Early support type hints in the code (by Jennifer Taylor). - Use tarball from GitHub, not PyPI, because the former contains tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pscript?expand=0&rev=15 --- pscript-0.7.5.tar.gz | 3 --- pscript-0.7.6.tar.gz | 3 +++ python-pscript.changes | 9 +++++++++ python-pscript.spec | 14 ++++++++------ 4 files changed, 20 insertions(+), 9 deletions(-) delete mode 100644 pscript-0.7.5.tar.gz create mode 100644 pscript-0.7.6.tar.gz diff --git a/pscript-0.7.5.tar.gz b/pscript-0.7.5.tar.gz deleted file mode 100644 index c667c27..0000000 --- a/pscript-0.7.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9217a291477af34833bef1880191467c8dda1bb09052e5f142b46904088e980d -size 120061 diff --git a/pscript-0.7.6.tar.gz b/pscript-0.7.6.tar.gz new file mode 100644 index 0000000..67aa732 --- /dev/null +++ b/pscript-0.7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bc8b5c1319e677837df5659289f14052c84da977c445acde95bf1ada653a6c5 +size 116888 diff --git a/python-pscript.changes b/python-pscript.changes index dfaa893..28188c0 100644 --- a/python-pscript.changes +++ b/python-pscript.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Dec 31 12:18:37 UTC 2021 - Matej Cepl + +- Update to 0.7.6: + - Fix for with-statement when return is used in the context. + - Early support type hints in the code (by Jennifer Taylor). + ------------------------------------------------------------------- Thu Apr 22 04:37:11 UTC 2021 - Steve Kowalik @@ -16,6 +23,8 @@ Fri Jan 17 17:08:17 CET 2020 - Matej Cepl - Remove python-faulthandler BR (it is optional and the package is Python 2-only, in Python 3 the module is in the standard library). +- Use tarball from GitHub, not PyPI, because the former contains + tests. ------------------------------------------------------------------- Fri May 24 12:20:38 UTC 2019 - pgajdos@suse.com diff --git a/python-pscript.spec b/python-pscript.spec index 271ac31..bc0458d 100644 --- a/python-pscript.spec +++ b/python-pscript.spec @@ -17,22 +17,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define modname pscript Name: python-pscript -Version: 0.7.5 +Version: 0.7.6 Release: 0 Summary: Python to JavaScript compiler License: BSD-2-Clause URL: https://github.com/flexxui/pscript -Source: https://files.pythonhosted.org/packages/source/p/pscript/pscript-%{version}.tar.gz +Source: https://github.com/flexxui/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module invoke} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} +BuildRequires: nodejs # /SECTION -BuildArch: noarch - %python_subpackages %description @@ -40,7 +42,7 @@ PScript is a Python to JavaScript compiler, and is also the name of the subset of Python that this compiler supports. %prep -%setup -q -n pscript-%{version} +%setup -q -n %{modname}-%{version} %build %python_build @@ -51,7 +53,7 @@ of Python that this compiler supports. %check # the tests actually do not invoke themselves -#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} invoke-%%{$python_bin_suffix} test --unit +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} invoke-%{$python_bin_suffix} test --unit %files %{python_files} %doc README.md