forked from pool/python-invocations
Accepting request 940361 from home:bnavigator:python-rpm-macros
- Update to 2.3.0
* [Bug]: The packaging.release.upload task wasn’t properly
exposed externally, even though another task’s docstring
referenced it. Fixed.
* [Bug]: Ensure that the venv used for
packaging.release.test_install has its pip upgraded to match
the invoking interpreter’s version of same; this avoids common
pitfalls where the “inner” pip is a bundled-with-venv,
much-older version incapable of modern package installations.
* [Support]: Overhaul testing and release procedures to use
CircleCI & modern Invocations.
* 2.2.0 2021-09-03
* [Feature]: Added the invocations.environment module with
top-level functions such as in_ci.
* [Feature]: packaging.release.push, in dry-run mode, now
dry-runs its git push subcommand – meaning the subcommand
itself is what is “dry-ran”, instead of truly executing git
push --dry-run – when a CI environment is detected.
* This prevents spurious errors when the git remote (eg Github)
bails out on read-only authentication credentials, which is
common within CI systems.
* It’s also just not very useful to dry-run a real git push
within CI, since almost certainly the commands to generate git
objects to get pushed will themselves not have truly run!
* [Bug]: packaging.release.status (and its use elsewhere, eg
prepare) didn’t adequately reload the local project’s version
module during its second/final recheck; this causes that check
to fail when said version was edited as part of a prepare run.
It now force-reloads said version module.
- Release 2.1.0
OBS-URL: https://build.opensuse.org/request/show/940361
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=20
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-invocations
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,37 +19,42 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-invocations
|
||||
Version: 1.4.0
|
||||
Version: 2.3.0
|
||||
Release: 0
|
||||
Summary: Reusable Invoke tasks
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/pyinvoke/invocations
|
||||
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz
|
||||
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz#/invocations-%{version}.tar.gz
|
||||
Patch0: invocations-no-bundled.patch
|
||||
Patch1: invocations-py3.patch
|
||||
BuildRequires: %{python_module blessings >= 1.6}
|
||||
BuildRequires: %{python_module invoke >= 1.0}
|
||||
BuildRequires: %{python_module invoke >= 1.6}
|
||||
BuildRequires: %{python_module lexicon}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-relaxed}
|
||||
# gh#bitprophet/pytest-relaxed#12
|
||||
BuildRequires: %{python_module pytest < 6.1}
|
||||
BuildRequires: %{python_module releases >= 1.2}
|
||||
BuildRequires: %{python_module semantic_version >= 2.4}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tabulate >= 0.7.5}
|
||||
BuildRequires: %{python_module tqdm >= 4.8.1}
|
||||
BuildRequires: %{python_module twine >= 1.15}
|
||||
BuildRequires: %{python_module wheel >= 0.24.0}
|
||||
# SECTION gh#bitprophet/pytest-relaxed#12, no pytest5 on python310
|
||||
BuildRequires: %{python_module mock if (%python-base without python310-base)}
|
||||
BuildRequires: %{python_module pytest < 6.1 if (%python-base without python310-base)}
|
||||
BuildRequires: %{python_module pytest-relaxed if (%python-base without python310-base)}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-blessings >= 1.6
|
||||
Requires: python-invoke >= 1.0
|
||||
Requires: python-invoke >= 1.6
|
||||
Requires: python-lexicon
|
||||
Requires: python-releases >= 1.2
|
||||
Requires: python-semantic_version >= 2.4
|
||||
Requires: python-six
|
||||
Requires: python-tabulate >= 0.7.5
|
||||
Requires: python-tqdm >= 4.8.1
|
||||
Requires: python-twine >= 1.15
|
||||
Requires: python-wheel >= 0.24.0
|
||||
BuildArch: noarch
|
||||
%if %{with python2}
|
||||
BuildRequires: python-enum34
|
||||
@@ -87,6 +92,7 @@ the Invoke project's communication channels for updates. Thanks!
|
||||
# packaging: not applicable to openSUSE
|
||||
# cannot use --ignore because of pytest-relaxed plugin
|
||||
rm -r tests/autodoc/ tests/packaging/
|
||||
alias pytest-3.10='echo "Not testing: no pytest<6 on python 3.10"'
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user