Skip to content

Commit 93a78fc

Browse files
authored
Merge pull request #153 from liormizr/support_for_3.12
support for Python 3.12
2 parents b02f2d4 + a84e37a commit 93a78fc

10 files changed

+1487
-43
lines changed

Diff for: .github/workflows/testing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.8, 3.9, "3.10", "3.11"]
14+
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
1515
steps:
1616
- uses: actions/checkout@v2
1717

Diff for: s3path/__init__.py

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
s3path provides a Pythonic API to S3 by wrapping boto3 with pathlib interface
3+
"""
4+
import sys
5+
6+
from . import accessor
7+
8+
__version__ = '0.5.1'
9+
__all__ = (
10+
'register_configuration_parameter',
11+
'StatResult',
12+
'PureS3Path',
13+
'S3Path',
14+
'VersionedS3Path',
15+
'PureVersionedS3Path',
16+
)
17+
18+
if sys.version_info >= (3, 12):
19+
from .accessor import StatResult
20+
from .current_version import (
21+
S3Path,
22+
PureS3Path,
23+
register_configuration_parameter,
24+
VersionedS3Path,
25+
PureVersionedS3Path,
26+
)
27+
else:
28+
from .old_versions import (
29+
StatResult,
30+
S3Path,
31+
PureS3Path,
32+
register_configuration_parameter,
33+
VersionedS3Path,
34+
PureVersionedS3Path,
35+
)

0 commit comments

Comments
 (0)