Choose unique available network ports

Edit Package python-portpicker

Portpicker provides an API to find and return an available network port for an application to bind to. Ideally suited for use from unittests or for test harnesses that launch local servers.

Refresh
Refresh
Source Files
Filename Size Changed
portpicker-1.3.1.tar.gz 0000018666 18.2 KB
python-portpicker.changes 0000001226 1.2 KB
python-portpicker.spec 0000001977 1.93 KB
Revision 2 (latest revision is 7)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 704702 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 2)
- 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
Comments 0
openSUSE Build Service is sponsored by