- Require Python 3.8 or later.
Require Python 3.7 or later.
Removed legacy aliases wait_for_occupied_port
and wait_for_free_port
.
Packaging refresh.
#14: Fix host/port order.
Refresh package. Require Python 3.6 or later.
Package refresh.
#10: Fix race condition in occupied
and free
.
- #6:
find_available_local_port
now relies on socket.getaddrinfo
to find a suitable address family.
Package refresh.
Merge with skeleton, including embedded license file.
Fix README rendering.
- #5: Restored use of
portend.client_host
during assert_free
check on Windows, fixing check when the bind address is*ADDR_ANY
.
Use tempora.timing.Timer from tempora 1.8, replacing boilerplate code in occupied and free functions.
- #1: Removed
portend._getaddrinfo
and its usage in Checker.assert_free
.
Dropped support for Python 2.6.
Remove dependency on jaraco.compat
and instead just
copy and reference the total_seconds
compatibility
function for Python 2.6.
- #2: Use tempora, replacing deprecated jaraco.timing.
Expose the port check functionality as portend.Checker
class.
Correct failures on Python 2.6 where
datetime.datetime.total_seconds
and argparse are unavailable.
Add support for Python 2.6 (to support CherryPy).
Automatically deploy tagged versions via Travis-CI.
Moved hosting to Github.
Added find_available_local_port
for identifying a local port
available for binding.
Only require pytest-runner
when pytest is invoked.
Renamed functions:
- wait_for_occupied_port: occupied
- wait_for_free_port: free
The original names are kept as aliases for now.
Added execution support for the portend module. Invoke with
python -m portend
.
Initial release based on utilities in CherryPy 3.5.