-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of pkg_resources from osrf_pycommon. (#66)
* Remove use of pkg_resources from osrf_pycommon. Replace it with the use of the more modern importlib* libraries. There are a couple of reasons to do this: 1. pkg_resources is quite slow to import; on my machine, just firing up the python interpreter takes ~35ms, while firing up the python interpreter and importing pkg_resources takes ~175ms. Firing up the python interpreter and importing importlib_metadata takes ~70ms. Removing 100ms per invocation of the command-line both makes it speedier for users, and will speed up our tests (which call out to the command-line quite a lot). 2. pkg_resources is somewhat deprecated and being replaced by importlib. https://importlib-metadata.readthedocs.io/en/latest/using.html describes some of it Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> * depend on importlib-metadata everywhere Signed-off-by: William Woodall <william@osrfoundation.org> * Fixes from review. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> * restrict suites to only include ones that have python3-importlib-metadata Signed-off-by: William Woodall <william@osrfoundation.org> * add note to README about release changes Signed-off-by: William Woodall <william@osrfoundation.org> Co-authored-by: William Woodall <william@osrfoundation.org>
- Loading branch information
1 parent
d5fb7c9
commit 6eaa13c
Showing
6 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[DEFAULT] | ||
Depends3: python3-setuptools | ||
Depends3: python3-setuptools, python3-importlib-metadata | ||
Conflicts3: python-osrf-pycommon | ||
Suite3: bionic cosmic disco eoan focal jammy buster bullseye | ||
X-Python3-Version: >= 3.5 | ||
Suite3: focal jammy buster bullseye | ||
X-Python3-Version: >= 3.8 | ||
No-Python2: |