Accepting request 840506 from home:jayvdb:branches:devel:languages:python
- Use %pytest - Avoid Python 3.8 specific test cases to support Leap 15.x - Update to v202009.1044 OBS-URL: https://build.opensuse.org/request/show/840506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lib3to6?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
43da68a74d
commit
6fdea99e05
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0527f60d0a9a22c605a4df70e04ab5b4fb943a2150067d5fe4cb08fa4f591b48
|
||||
size 42359
|
||||
3
lib3to6-202009.1044.tar.gz
Normal file
3
lib3to6-202009.1044.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2f88bea589bdcc82ffa60a9b56ae8e0a65b3c9be738c248086075605fd0fa236
|
||||
size 70231
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 10 04:23:46 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Use %pytest
|
||||
- Avoid Python 3.8 specific test cases to support Leap 15.x
|
||||
- Update to v202009.1044
|
||||
* per-file opt-in/opt-out `# lib3to6: [enabled|disabled]`
|
||||
- from v202006.1041
|
||||
* Add detection of invalid imports and point to available backports
|
||||
Use `install_requires` option to whitelist installed backports
|
||||
* Checkers produce better error messages
|
||||
* Colouring of diffs when using `lib3to6` cli command
|
||||
* Checker for `yield from` syntax depending on target version
|
||||
* Checker for `@` operator depending on target version
|
||||
* Fix `--target-version` argument is ignored
|
||||
* Remove `from __future__ import X` depending on target version
|
||||
* Convert Forward Reference Annotations to strings
|
||||
* Don't apply keyword only args fixer for target version 3.0+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 06:50:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-lib3to6
|
||||
Version: 202002.32
|
||||
Version: 202009.1044
|
||||
Release: 0
|
||||
Summary: Module to compile Python 3.6+ code to Python 2.7+
|
||||
License: MIT
|
||||
@@ -32,6 +32,7 @@ Requires: python-astor
|
||||
Requires: python-click
|
||||
Requires: python-pathlib2
|
||||
Requires: python-typing
|
||||
Requires: python-wheel
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
@@ -39,7 +40,7 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module astor}
|
||||
BuildRequires: %{python_module click}
|
||||
BuildRequires: %{python_module pathlib2}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module typing}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -61,7 +62,8 @@ sed -i '1{/^#!/d}' src/lib3to6/__main__.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py pytest
|
||||
# Avoid Python 3.8 specific test cases to support Leap 15.x
|
||||
%pytest -k 'not (fixture7 or fixture17 or fixture53 or fixture54 or fixture55 or fixture56 or fixture57)'
|
||||
|
||||
%post
|
||||
%python_install_alternative lib3to6
|
||||
|
||||
Reference in New Issue
Block a user