Skip to content

Commit

Permalink
avoid index error on whole second (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant authored Nov 19, 2024
1 parent 7e96e66 commit 290f572
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout source
Expand Down
2 changes: 1 addition & 1 deletion gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def created(self, path):
def _parse_timestamp(self, timestamp):
assert timestamp.endswith("Z")
timestamp = timestamp[:-1]
timestamp = timestamp + "0" * (6 - len(timestamp.rsplit(".", 1)[1]))
timestamp = timestamp + "0" * (6 - len(timestamp.rsplit(".", 1)[-1]))
return datetime.fromisoformat(timestamp + "+00:00")

async def _info(self, path, generation=None, **kwargs):
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
keywords=["google-cloud-storage", "gcloud", "file-system"],
packages=["gcsfs", "gcsfs.cli"],
Expand All @@ -32,6 +33,6 @@
open("README.rst").read() if os.path.exists("README.rst") else ""
),
extras_require={"gcsfuse": ["fusepy"], "crc": ["crcmod"]},
python_requires=">=3.8",
python_requires=">=3.9",
zip_safe=False,
)

0 comments on commit 290f572

Please sign in to comment.