Resolve an internal source of potential flakiness on the bind/close port
checks when used in active environments by calling .shutdown() before
.close().
1.6.0b1
Add -h and --help text to the command line tool.
The command line interface now defaults to associating the returned port
with its parent process PID (usually the calling script) when no argument
was given as that makes more sense.
When portpicker is used as a command line tool from a script, if a port is
chosen without a portserver it can now be kept bound to a socket by a
child process for a user specified timeout. When successful, this helps
minimize race conditions as subsequent portpicker CLI invocations within
the timeout window cannot choose the same port.
Some pylint based refactorings to portpicker and portpicker_test.
Drop 3.6 from our CI test matrix and metadata. It probably still works
there, but expect our unittests to include 3.7-ism's in the future. We'll
attempt to avoid modern constructs in portpicker.py itself but zero
guarantees. Using an old Python? Use an old portpicker.
Commits
0b1a8ec Call shutdown() before close() to resolve potential flakiness. (#34)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps portpicker from 1.5.2 to 1.6.0.
Changelog
Sourced from portpicker's changelog.
Commits
0b1a8ec
Callshutdown()
beforeclose()
to resolve potential flakiness. (#34)59a1020
Add 3.12 testing to github CI (#33)2cf11dc
Use os._exit in the child instead of sys.exit.edcd884
Adds an optional timeout that a port will remain bound to after the CLI exits...0926742
Avoid the need for an internal patch.884182b
lint cleanups; drop 3.6 from CI and metadata. (#32)e7a5816
Add 3.11 to CI, remove Travis. (#30)6bae8e2
Remove link to Travis CI, delete travis config.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show