forked from pool/python-typing_extensions
Accepting request 1036977 from home:bnavigator:branches:devel:languages:python
- Back to multibuild: remove python-testsuite from buildcycle, because of setuptools_scm closing it at the other end. OBS-URL: https://build.opensuse.org/request/show/1036977 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=39
This commit is contained in:
parent
c7441c9c7d
commit
6553b449b3
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 20 19:40:35 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Back to multibuild: remove python-testsuite from buildcycle,
|
||||||
|
because of setuptools_scm closing it at the other end.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 24 18:14:28 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Mon Oct 24 18:14:28 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-typing_extensions
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -16,7 +16,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: python-typing_extensions
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: python-typing_extensions%{psuffix}
|
||||||
Version: 4.4.0
|
Version: 4.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Backported and Experimental Type Hints for Python 3.7+
|
Summary: Backported and Experimental Type Hints for Python 3.7+
|
||||||
@ -28,11 +37,13 @@ Source1: https://raw.githubusercontent.com/python/typing_extensions/%{ver
|
|||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module flit-core >= 3.4 with %python-flit-core < 4}
|
BuildRequires: %{python_module flit-core >= 3.4 with %python-flit-core < 4}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module testsuite}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Provides: python-typing-extensions = %{version}-%{release}
|
Provides: python-typing-extensions = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module testsuite}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,28 +75,31 @@ after that version reaches end of life.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n typing_extensions-%{version}
|
%setup -q -n typing_extensions-%{version}
|
||||||
# This should not be necessary in the next release
|
# This should not be necessary in the next release
|
||||||
if [ -f src/_typed_dict_test_helper.py ]; then
|
[ ! -f src/_typed_dict_test_helper.py ] && cp %{SOURCE1} src/ || exit 1
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
cp %{SOURCE1} src/
|
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
pushd src
|
pushd src
|
||||||
%pyunittest -v test_typing_extensions
|
%pyunittest -v test_typing_extensions
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%{python_sitelib}/typing_extensions.py*
|
%{python_sitelib}/typing_extensions.py*
|
||||||
%pycache_only %{python_sitelib}/__pycache__/typing_extensions*
|
%pycache_only %{python_sitelib}/__pycache__/typing_extensions*
|
||||||
%{python_sitelib}/typing_extensions-%{version}*-info
|
%{python_sitelib}/typing_extensions-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user