Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid isoformat string at setup #3657

Closed
zwillikon opened this issue Oct 16, 2024 · 1 comment
Closed

Invalid isoformat string at setup #3657

zwillikon opened this issue Oct 16, 2024 · 1 comment
Labels
Status: Not A Bug Describes behavior that is working as expected Status: Upstream Needs work done in upstream project Type: Bug Something is not working like it should

Comments

@zwillikon
Copy link

zwillikon commented Oct 16, 2024

What went wrong?

After switching from a python setup.py build build to PEP517:

Code to Reproduce

python -m build --wheel --no-isolation
python -m installer --destdir="$pkgdir" dist/*.whl

because somebody has removed the original the build process has started to fail:

  File "/usr/lib/python3.10/site-packages/setuptools_scm/git.py", line 121, in parse_timestamp
    return datetime.fromisoformat(timestamp_text).date()
ValueError: Invalid isoformat string: '2024-10-14T15:34:52Z'

python-setuptools-scm 8.0.4

Operating System

Linux

Version

git master

Python Version

3.10

@zwillikon zwillikon added the Type: Bug Something is not working like it should label Oct 16, 2024
@dopplershift
Copy link
Member

setup.py was removed in #3625 since it was only a stub and with modern tools pyproject.toml is enough.

The issue you're encountering is coming from setuptools-scm, and has nothing to do with MetPy. See pypa-setuptools-scm#1038, which was fixed by pypa/setuptools-scm#1039. When running on Python <3.11, you'll need to have the latest setuptools-scm, 8.1.0.

Closing since there's nothing for MetPy to do here.

@dopplershift dopplershift closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@dopplershift dopplershift added Status: Not A Bug Describes behavior that is working as expected Status: Upstream Needs work done in upstream project labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Not A Bug Describes behavior that is working as expected Status: Upstream Needs work done in upstream project Type: Bug Something is not working like it should
Projects
None yet
Development

No branches or pull requests

2 participants