15
0
forked from pool/python-calmjs

- Update to 3.4.2:

- This is a maintenance release for Python 3.10; no substantial
    changes were been made.
  - Provided a check for disabling integration tests using the
    CALMJS_SKIP_INTEGRATION environment variable, when set to a non-
    empty string, the integration tests found in test_dist will be
    skipped. [ #60 ]
- Fix running of tests (gh#calmjs/calmjs#61).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs?expand=0&rev=9
This commit is contained in:
2021-11-11 22:57:20 +00:00
committed by Git OBS Bridge
parent b12f8b550c
commit 642d04be1b
4 changed files with 25 additions and 13 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-calmjs
Version: 3.4.1
Version: 3.4.2
Release: 0
Summary: A Python framework for working with the Node.js ecosystem
License: GPL-2.0-or-later
@@ -32,10 +32,9 @@ BuildRequires: python-rpm-macros
Requires: python-calmjs.parse >= 1.0.0
Requires: python-calmjs.types
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: nodejs-common
# /SECTION
%python_subpackages
@@ -59,16 +58,17 @@ export LANG=en_US.UTF-8
export LANG=en_US.UTF-8
%python_install
%python_clone -a %{buildroot}%{_bindir}/calmjs
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/testing
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# %%python_expand rm -r %%{buildroot}%%{$python_sitelib}/calmjs/testing
# %%python_expand rm -r %%{buildroot}%%{$python_sitelib}/calmjs/tests
%{python_expand touch %{buildroot}%{$python_sitelib}/calmjs/__init__.py
%fdupes %{buildroot}%{$python_sitelib}
}
%check
export LANG=en_US.UTF-8
pushd src
PYTHONPATH=.
%pytest -k 'not (test_setup_egg_info or test_build_calmjs_artifact)'
popd
# gh#calmjs/calmjs#61
%python_expand rm -v %{buildroot}%{$python_sitelib}/calmjs/tests/test_argparse.py
%pyunittest discover -v -s %{buildroot}%{$python_sitelib}/calmjs/
%post
%python_install_alternative calmjs