15
0
forked from pool/python-calmjs

Accepting request 930992 from devel:languages:python

- 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/request/show/930992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs?expand=0&rev=4
This commit is contained in:
2021-11-12 14:59:19 +00:00
committed by Git OBS Bridge
4 changed files with 25 additions and 13 deletions

View File

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

3
3.4.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Nov 11 22:29:55 UTC 2021 - Matej Cepl <mcepl@suse.com>
- 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).
-------------------------------------------------------------------
Fri Jan 22 14:00:18 UTC 2021 - Markéta Machová <mmachova@suse.com>

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