- 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
This commit is contained in:
Matej Cepl 2021-12-31 12:26:30 +00:00 committed by Git OBS Bridge
parent d2f7a869c9
commit 9340ecbfd3
4 changed files with 20 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9217a291477af34833bef1880191467c8dda1bb09052e5f142b46904088e980d
size 120061

3
pscript-0.7.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bc8b5c1319e677837df5659289f14052c84da977c445acde95bf1ada653a6c5
size 116888

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Dec 31 12:18:37 UTC 2021 - Matej Cepl <mcepl@suse.com>
- 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 <steven.kowalik@suse.com>
@ -16,6 +23,8 @@ Fri Jan 17 17:08:17 CET 2020 - Matej Cepl <mcepl@suse.com>
- 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

View File

@ -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