Skip to content

Commit

Permalink
Remove importlib-metadata dependency (streamlit#8094)
Browse files Browse the repository at this point in the history
## Describe your changes

The `importlib-metadata` is a backport to bring some of the
`importlib.metadata` functionality to pre Python 3.7. But we don't
support Python 3.7 anymore, so we can just remove this dependency.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
  • Loading branch information
lukasmasuch authored Feb 6, 2024
1 parent ef0bb38 commit e2a8204
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lib/min-constraints-gen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ blinker==1.0.0
cachetools==4.0
click==7.0
gitpython==3.0.7
importlib-metadata==1.4
numpy==1.19.3
packaging==16.8
pandas==1.3.0
Expand Down
2 changes: 0 additions & 2 deletions lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"blinker>=1.0.0, <2",
"cachetools>=4.0, <6",
"click>=7.0, <9",
# 1.4 introduced the functionality found in python 3.8's importlib.metadata module
"importlib-metadata>=1.4, <8",
"numpy>=1.19.3, <2",
"packaging>=16.8, <24",
# Lowest version with available wheel for 3.7 + amd64 + linux
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

"""Streamlit version utilities."""
import random
from importlib.metadata import version as _version

import packaging.version
from importlib_metadata import version as _version
from typing_extensions import Final

import streamlit.logger as logger
Expand Down

0 comments on commit e2a8204

Please sign in to comment.