-
Notifications
You must be signed in to change notification settings - Fork 892
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
New DeprecationWarnings and PytestMockWarnings whilst building with Python 3.12 #5175
Comments
dermotbradley
added
bug
Something isn't working correctly
new
An issue that still needs triage
labels
Apr 14, 2024
Thanks for the report @dermotbradley . I can confirm that on recent versions of python we see these warnings when running tests. |
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 6, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 6, 2024
Warning message: DeprecationWarning: Testing an element's truth value will always return True in future versions canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 6, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 6, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 6, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
DeprecationWarning: Testing an element's truth value will always return True in future versions canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
Deprecated message: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. Refs: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.0.0 canonicalGH-5175
2 tasks
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
DeprecationWarning: Testing an element's truth value will always return True in future versions canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ canonicalGH-5175
aciba90
added a commit
to aciba90/cloud-init
that referenced
this issue
Nov 7, 2024
…onical#5856) Deprecated message: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. Refs: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.0.0 canonicalGH-5175
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
DeprecationWarning: Testing an element's truth value will always return True in future versions GH-5175
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor GH-5175
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ GH-5175
aciba90
added a commit
that referenced
this issue
Nov 13, 2024
Deprecated message: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. Refs: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.0.0 GH-5175
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
DeprecationWarning: Testing an element's truth value will always return True in future versions canonicalGH-5175
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor canonicalGH-5175
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ canonicalGH-5175
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
…onical#5856) Deprecated message: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. Refs: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.0.0 canonicalGH-5175
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
…5856) canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
…nonical#5856) canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
DeprecationWarning: Testing an element's truth value will always return True in future versions canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
Warning: PytestCollectionWarning: cannot collect test class 'TestUpdatePackageSources' because it has a __init__ constructor canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
Deprecation warning: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. Refs: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter https://peps.python.org/pep-0706/ canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
mathmarchand
pushed a commit
to mathmarchand/cloud-init-onb1204
that referenced
this issue
Nov 21, 2024
…onical#5856) Deprecated message: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. Refs: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.0.0 canonicalGH-5175 Signed-off-by: Mathieu Marchand <mathieu.marchand@canonical.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Alpine Edge has now upgraded its Python from 3.11.8 to 3.12.3. Whilst packaging cloud-init with the new Python version some new (mainly deprecation) warnings appear.
The deprecation warnings mainly relate to
datetime.datetime.utcfromtimestamp()
anddatetime.datetime.utcnow()
.However there are also the following warnings:
and
Steps to reproduce the problem
Environment details
cloud-init logs
The text was updated successfully, but these errors were encountered: