diff --git a/port-for-0.4.tar.gz b/port-for-0.4.tar.gz deleted file mode 100644 index ddd1ca6..0000000 --- a/port-for-0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47b5cb48f8e036497cd73b96de305cecb4070e9ecbc908724afcbd2224edccde -size 19450 diff --git a/port-for-0.6.2.tar.gz b/port-for-0.6.2.tar.gz new file mode 100644 index 0000000..0024616 --- /dev/null +++ b/port-for-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d4e73523d98f2f9f270308bbf415926c698b5439db8909384a79f152328b4d2 +size 21703 diff --git a/python-port-for.changes b/python-port-for.changes index 443ce29..f4a38c4 100644 --- a/python-port-for.changes +++ b/python-port-for.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +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 diff --git a/python-port-for.spec b/python-port-for.spec index e2958ef..34bc89e 100644 --- a/python-port-for.spec +++ b/python-port-for.spec @@ -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 diff --git a/v0.6.2.tar.gz b/v0.6.2.tar.gz new file mode 100644 index 0000000..72da404 --- /dev/null +++ b/v0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a38dce1d6354543f9ac2da6ddfef940adc8037123a56e88a4ea0781be07bf7ed +size 21223