forked from pool/python-port-for
Accepting request 967345 from devel:languages:python
- Remove forgotten tarball port-for-0.6.2.tar.gz - 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/967345 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-port-for?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:47b5cb48f8e036497cd73b96de305cecb4070e9ecbc908724afcbd2224edccde
|
|
||||||
size 19450
|
|
@@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 6 14:29:40 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Remove forgotten tarball port-for-0.6.2.tar.gz
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 6 11:10:45 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 21 16:59:48 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Thu Mar 21 16:59:48 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-port-for
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,23 +12,23 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-port-for
|
Name: python-port-for
|
||||||
Version: 0.4
|
Version: 0.6.2
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
License: MIT
|
||||||
Summary: Utility that helps with local TCP ports managment
|
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
|
Group: Development/Languages/Python
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/port_for/port-for-%{version}.tar.gz
|
Source: https://github.com/kmike/port-for/archive/refs/tags/v%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -81,7 +81,8 @@ return a new unused port:
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%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
|
%post
|
||||||
%python_install_alternative port-for
|
%python_install_alternative port-for
|
||||||
@@ -95,5 +96,4 @@ return a new unused port:
|
|||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python_alternative %{_bindir}/port-for
|
%python_alternative %{_bindir}/port-for
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
v0.6.2.tar.gz
Normal file
3
v0.6.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a38dce1d6354543f9ac2da6ddfef940adc8037123a56e88a4ea0781be07bf7ed
|
||||||
|
size 21223
|
Reference in New Issue
Block a user