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
DeprecationWarning: datetime.utcfromtimestamp() is deprecated #1284
Comments
I'm still seeing this warning. Are there plans to cut a release with it (and save me the trouble of suppressing the warning)? |
FYI: Python 3.12 will be released one month from now. If python-dateutil hasn't made a release by then, people who are running it in "warnings as errors" mode will start to experience crashes. |
@mariocj89 @pganssle @graingert Could a stable release be tagged and uploaded to PyPI as soon as possible? Python 3.12 releases in a week, and there is a whole chain of dependencies causing errors because of the deprecated utcfromtimestamp(). |
@EwoutH sorry I don't have permissions to cut a release |
@pganssle is indeed the only person able to upload to pypi.org. |
Bump, Python 3.12 is now out |
So none of the other members of the dateutil project can create releases on GitHub? That should be all that's necessary for PyPI uploads, right? |
With a self-built version of Python 3.12 that includes python/cpython#103857:
Python 3.12.0a7+ (heads/main-dirty:c527eb1c2a, May 15 2023, 10:39:28) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import dateutil.tz /private/tmp/dateutil/src/dateutil/tz/tz.py:37: DeprecationWarning: datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.now(datetime.UTC). EPOCH = datetime.datetime.utcfromtimestamp(0) >>>
That warning again:
This is from:
dateutil/src/dateutil/tz/tz.py
Line 37 in b04edc0
The text was updated successfully, but these errors were encountered: