forked from pool/python-portpicker
Accepting request 704429 from home:pgajdos
Sure -- me too, however I overlooked ChangeLog.md OBS-URL: https://build.opensuse.org/request/show/704429 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-portpicker?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
a6087fcda9
commit
fe668137a8
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:01938a4ffaeedf053248b8da5f1251cce618fa50018a92259adb1f6f6067b00d
|
||||
size 15676
|
3
portpicker-1.3.1.tar.gz
Normal file
3
portpicker-1.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d2cdc776873635ed421315c4d22e63280042456bbfa07397817e687b142b9667
|
||||
size 18666
|
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 20 15:18:38 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- version update to 1.3.1
|
||||
* Fix a race condition in `pick_unused_port()` involving the free ports set.
|
||||
* Adds an optional `portserver_address` parameter to `pick_unused_port()` so
|
||||
that callers can specify their own regardless of `os.environ`.
|
||||
* `pick_unused_port()` now raises `NoFreePortFoundError` when no available port
|
||||
could be found rather than spinning in a loop trying forever.
|
||||
* Fall back to `socket.AF_INET` when `socket.AF_UNIX` support is not available
|
||||
to communicate with a portserver.
|
||||
* Introduced `add_reserved_port()` and `return_port()` APIs to allow ports to
|
||||
be recycled and allow users to bring ports of their own.
|
||||
* Changed default port range to 15000-24999 to avoid ephemeral ports.
|
||||
* Portserver bugfix.
|
||||
- convert to single spec
|
||||
- run test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 1 14:27:15 UTC 2015 - rjschwei@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-portpicker
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,28 +12,27 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define upstream_name portpicker
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-portpicker
|
||||
Version: 1.1.0
|
||||
Version: 1.3.1
|
||||
Release: 0
|
||||
Summary: A library to choose unique available network ports
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Url: https://github.com/google/python_portpicker
|
||||
Source0: %{upstream_name}-%{version}.tar.gz
|
||||
Requires: python
|
||||
BuildRequires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
URL: https://github.com/google/python_portpicker
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/portpicker/portpicker-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Portpicker provides an API to find and return an available network port for
|
||||
@@ -41,17 +40,23 @@ an application to bind to. Ideally suited for use from unittests or for test
|
||||
harnesses that launch local servers.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{upstream_name}-%{version}
|
||||
%setup -q -n portpicker-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CONTRIBUTING.md LICENSE README.md
|
||||
%{python_sitelib}/%{upstream_name}*
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python src/tests/portpicker_test.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CONTRIBUTING.md README.md
|
||||
%{python_sitelib}/*
|
||||
# import asyncio
|
||||
%python3_only %{_bindir}/portserver.py
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user