forked from pool/python-port-for
Accepting request 967279 from home:pgajdos:python
- version update to 0.6.2 0.6.2 ---------- Misc ++++ - Added Python 3.10 to trove classifiers and to CI 0.6.1 ---------- Bugfix ++++++ - Fixed typing definition for get_port function 0.6.0 ---------- Feature +++++++ - Added `get_port` helper that can randomly select open port out of given set, or range-tuple - Added type annotations and compatibility with PEP 561 - Support only python 3.7 and up - python-mock is not required for build OBS-URL: https://build.opensuse.org/request/show/967279 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-port-for?expand=0&rev=3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-port-for
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,25 +12,25 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-port-for
|
||||
Version: 0.4
|
||||
Version: 0.6.2
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Utility that helps with local TCP ports managment
|
||||
Url: https://github.com/kmike/port-for/
|
||||
URL: https://github.com/kmike/port-for/
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/port_for/port-for-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module mock}
|
||||
Source: https://github.com/kmike/port-for/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -81,7 +81,8 @@ return a new unused port:
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec -m pytest --doctest-modules port_for/utils.py port_for/tests.py
|
||||
sed -i '/^addopts =/d' setup.cfg
|
||||
%pytest --doctest-modules src/port_for/utils.py tests/test*.py
|
||||
|
||||
%post
|
||||
%python_install_alternative port-for
|
||||
@@ -95,5 +96,4 @@ return a new unused port:
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/port-for
|
||||
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user