-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace the use of pkg_resources (from setuptools, which is no longer included in virtual environments as of 3.12) with importlib.metadata and importlib_resources. * Add Python 3.12 to the test matrix.
- Loading branch information
Maari Tamm
committed
Mar 15, 2024
1 parent
d424267
commit 1536230
Showing
5 changed files
with
17 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ jobs: | |
- 3.9 | ||
- "3.10" | ||
- 3.11 | ||
- 3.12 | ||
|
||
steps: | ||
- name: Check out code | ||
|
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,8 +1,8 @@ | ||
import pkg_resources | ||
from importlib import metadata | ||
# __version__ attribute as suggested by (deferred) PEP 396: | ||
# https://www.python.org/dev/peps/pep-0396/ | ||
# | ||
# Single-source package definition as suggested (among several | ||
# options) by: | ||
# https://packaging.python.org/guides/single-sourcing-package-version/ | ||
__version__ = pkg_resources.get_distribution('tutor-contrib-s3').version | ||
__version__ = metadata.version('tutor-contrib-s3') |
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