Skip to content

Compatibility with Python 3.12+#78

Open
wigbam wants to merge 1 commit intoglobality-corp:masterfrom
wigbam:py312
Open

Compatibility with Python 3.12+#78
wigbam wants to merge 1 commit intoglobality-corp:masterfrom
wigbam:py312

Conversation

@wigbam
Copy link

@wigbam wigbam commented Jul 25, 2024

The older pkg_resources package was deprecated for some time and finally removed in Python 3.12. The newer importlib.metadata package, built on top of the new importlib infrastructure in Python 3, performs better and is recommended for future use.

All tests passed against 3.9, 3.10, 3.11 and 3.12.

@biojerm
Copy link

biojerm commented Oct 27, 2025

Is there any chance of merging this or another solution since deprecation is potentially imminent?

The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81

@biojerm
Copy link

biojerm commented Oct 28, 2025

To anyone here encountering the same warnings I did, flake8-logging provides similar functionality to flake8-logging-format but does not raise the same warnings. The flake8-logging package runs additional logging anti-pattern checks which may or may not be desired.

openstack-mirroring pushed a commit to openstack/os-brick that referenced this pull request Feb 16, 2026
These drivers depend on os-win, which was already retired due to
retirement of WinStackers project.

os-win depends on pkg_resources which was removed from setuptools
recently.

Also remove flake8-logging-format, because it currently requires
pkg_resources[1].

[1] globality-corp/flake8-logging-format#78

Change-Id: Iff55251ce3999b49285b9862f0396ade63ab5dc9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Feb 16, 2026
* Update os-brick from branch 'master'
  to 8f088547991bdc54147a1f34333229798765fcd4
  - Merge "Remove windows support"
  - Remove windows support
    
    These drivers depend on os-win, which was already retired due to
    retirement of WinStackers project.
    
    os-win depends on pkg_resources which was removed from setuptools
    recently.
    
    Also remove flake8-logging-format, because it currently requires
    pkg_resources[1].
    
    [1] globality-corp/flake8-logging-format#78
    
    Change-Id: Iff55251ce3999b49285b9862f0396ade63ab5dc9
    Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
openstack-mirroring pushed a commit to openstack/cinder that referenced this pull request Feb 16, 2026
These drivers depend on os-win, which was already retired due to
retirement of WinStackers project.

os-win depends on pkg_resources which was removed from setuptools
recently.

Also remove flake8-logging-format, because it currently requires
pkg_resources[1].

[1] globality-corp/flake8-logging-format#78

Change-Id: I6bdf6e284e427cd6415cfe40dc1a75e9fe4a1885
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Feb 16, 2026
* Update cinder from branch 'master'
  to 143c5c12fb60ef7130ddff0fc9b9ec23bc452d49
  - Remove Windows drivers
    
    These drivers depend on os-win, which was already retired due to
    retirement of WinStackers project.
    
    os-win depends on pkg_resources which was removed from setuptools
    recently.
    
    Also remove flake8-logging-format, because it currently requires
    pkg_resources[1].
    
    [1] globality-corp/flake8-logging-format#78
    
    Change-Id: I6bdf6e284e427cd6415cfe40dc1a75e9fe4a1885
    Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants