8000 Deprecate `py-mount` Attribute by JeffersGlass · Pull Request #1330 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Deprecate py-mount Attribute #1330

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

Merged
merged 5 commits into from
Mar 29, 2023

Conversation

JeffersGlass
Copy link
Contributor

As described in #1220, the py-mount attribute isn't a feature we really advertise, nor make use of anywhere else in the codebase. It was meant to mount HTML elements directly as pyscript Elements, but that's nor really a part of the API we're suggesting at this point.

Also added a section of the deprecation docs for tracking what's currently being deprecated so that we actually remember to remove deprecated things in a future release. 😅

Fixes #1220

@JeffersGlass JeffersGlass added tag:deprecation Related to deprecating and removing features. status: ready PR that is ready for review labels Mar 29, 2023
Copy link
Contributor
@antocuni antocuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for deprecating py-mount, thanks for doing it 🤩

Also added a section of the deprecation docs for tracking what's currently being deprecated so that we actually remember to remove deprecated things in a future release.

yes, ideally I would like a better approach for deprecations, .e.g. something that automatically warns us in case some old deprecations are still in the code. It could be something as simple as a special comment and a test which greps all the source code, looking for the ones which are "too old".
Maybe we should add it to our release procedure and kill all deprecations as soon as we do a release (this should work since we have the policy of waiting only 1 release for deprecations).

Speaking of which, we also need to kill this code:

def _install_deprecated_globals_2022_12_1(ns):
"""
Install into the given namespace all the globals which have been
deprecated since the 2022.12.1 release. Eventually they should be killed.
"""

@JeffersGlass
Copy link
Contributor Author

yes, ideally I would like a better approach for deprecations, .e.g. something that automatically warns us in case some old deprecations are still in the code. It could be something as simple as a special comment and a test which greps all the source code, looking for the ones which are "too old". Maybe we should add it to our release procedure and kill all deprecations as soon as we do a release (this should work since we have the policy of waiting only 1 release for deprecations).

+1 to both having a test for it in some way, and in making it a part of our process to killing deprecations immediately after releases.

@JeffersGlass JeffersGlass merged commit d7ab177 into pyscript:main Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready PR that is ready for review tag:deprecation Related to deprecating and removing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate py-mount
2 participants
0