Skip to content

Commit

Permalink
ci: Update reqs
Browse files Browse the repository at this point in the history
 * typing: `os.PathLike[str]` is now recognized in Python 3.8
  • Loading branch information
Synss committed Nov 11, 2023
1 parent 4dd75d3 commit 3c8eb41
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 30 deletions.
4 changes: 2 additions & 2 deletions requirements/build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#
build==1.0.3
click==8.1.7
cython==3.0.2
cython==3.0.5
delocate==0.10.4 ; sys_platform == "darwin"
importlib-metadata==6.8.0
packaging==23.2
pip-tools==7.3.0
pyproject-hooks==1.0.0
tomli==2.0.1
typing-extensions==4.8.0
wheel==0.41.2
wheel==0.41.3
zipp==3.17.0

# The following packages are considered to be unsafe in a requirements file:
Expand Down
7 changes: 5 additions & 2 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
# pip-compile --config=pyproject.toml --no-annotate requirements/docs.in
#
alabaster==0.7.13
babel==2.13.0
babel==2.13.1
certifi==2023.7.22
charset-normalizer==3.3.0
charset-normalizer==3.3.2
docutils==0.18.1
idna==3.4
imagesize==1.4.1
importlib-metadata==6.8.0
jinja2==3.1.2
markupsafe==2.1.3
packaging==23.2
pygments==2.16.1
pytz==2023.3.post1
requests==2.31.0
snowballstemmer==2.2.0
sphinx==7.1.2
Expand All @@ -27,3 +29,4 @@ sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
urllib3==2.0.7
zipp==3.17.0
24 changes: 12 additions & 12 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@
#
# pip-compile --config=pyproject.toml --no-annotate requirements/tests.in
#
astroid==3.0.0
bleach==6.0.0
astroid==3.0.1
bleach==6.1.0
cfgv==3.4.0
coverage[toml]==7.3.2
cython==3.0.2
cython==3.0.5
dill==0.3.7
distlib==0.3.7
docutils==0.20.1
exceptiongroup==1.1.3
filelock==3.12.4
identify==2.5.30
filelock==3.13.1
identify==2.5.31
iniconfig==2.0.0
isort==5.12.0
mccabe==0.7.0
nodeenv==1.8.0
packaging==23.2
platformdirs==3.11.0
pluggy==1.3.0
pre-commit==3.4.0
pre-commit==3.5.0
pygments==2.16.1
pylint==3.0.0
pylint==3.0.2
pylint-per-file-ignores==1.3.2
pytest==7.4.2
pytest==7.4.3
pytest-cov==4.1.0
pytest-repeat==0.9.2
pytest-timeout==2.1.0
pytest-repeat==0.9.3
pytest-timeout==2.2.0
pyyaml==6.0.1
readme-renderer==41.0
six==1.16.0
tomli==2.0.1
tomlkit==0.12.1
tomlkit==0.12.2
typing-extensions==4.8.0
virtualenv==20.24.5
virtualenv==20.24.6
webencodings==0.5.1

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion requirements/typing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile --config=pyproject.toml --no-annotate requirements/typing.in
#
mypy==1.5.1
mypy==1.7.0
mypy-extensions==1.0.0
tomli==2.0.1
typing-extensions==4.8.0
8 changes: 1 addition & 7 deletions src/mbedtls/_tlsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import enum
import os
import sys
from dataclasses import dataclass, field
from typing import (
Callable,
Expand All @@ -20,14 +19,9 @@
Union,
)

if sys.version_info < (3, 9):
_PathLike = os.PathLike
else:
_PathLike = os.PathLike[str]

__all__ = ["NextProtocol", "TLSVersion", "DTLSVersion"]

_Path = Union[_PathLike, str]
_Path = Union[os.PathLike[str], str]


@enum.unique
Expand Down
7 changes: 1 addition & 6 deletions src/mbedtls/pk.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ if sys.version_info < (3, 8):
else:
from typing import Final, Literal

if sys.version_info < (3, 9):
_PathLike = os.PathLike
else:
_PathLike = os.PathLike[str]

_Path = Union[_PathLike, str]
_Path = Union[os.PathLike[str], str]
CIPHER_NAME: Final[Sequence[bytes]] = ...
_DER = bytes
_PEM = str
Expand Down

0 comments on commit 3c8eb41

Please sign in to comment.