Skip to content

Commit

Permalink
use backports.tarfile from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoyle committed Jul 24, 2024
1 parent 0b6004c commit 505a3c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2,856 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ dependencies = [
"semantic_version>=2.10.0",
# Technically not a zkg dependency, but typically expected by users to be present.
"btest>=1.1",
# Needed for python versions before 3.12, 3.11.4, 3.10.2, 3.9.17, or 3.8.17
# remove when the minimum supported python version is sufficient
"backports.tarfile>=1.2.0",
]

[project.optional-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ GitPython>=3.1.43
semantic_version>=2.10.0
# Technically not a zkg dependency, but typically expected by users to be present.
btest>=1.1
# Needed for python versions before 3.12, 3.11.4, 3.10.2, 3.9.17, or 3.8.17
# remove when the minimum supported python version is sufficient
backports.tarfile>=1.2.0
# Requirements for development (e.g. building docs)
Sphinx>=7.2.6
sphinx_rtd_theme>=2.0.0
4 changes: 2 additions & 2 deletions zeekpkg/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
_tarfile_info = "native"
else:
# use our local copy of the python3.12 tarfile package
from . import tarfile_fallback as tarfile
from backports import tarfile

_tarfile_info = "fallback"
_tarfile_info = "backports"


def make_dir(path):
Expand Down
Loading

0 comments on commit 505a3c7

Please sign in to comment.