15
0

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

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