Skip to content

remove pyscriptjs and synclink #1787

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 2 commits into from
Oct 4, 2023
Merged

remove pyscriptjs and synclink #1787

merged 2 commits into from
Oct 4, 2023

Conversation

madhur-tandon
Copy link
Member

@madhur-tandon madhur-tandon commented Oct 4, 2023

Description

Removes the old pyscriptjs directory that contained synclink related stuff.

Checklist

  • All tests pass locally

@madhur-tandon madhur-tandon marked this pull request as ready for review October 4, 2023 02:16
Copy link
Member

@ntoll ntoll left a comment

Choose a reason for hiding this comment

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

Please check what we're doing WRT latest.

Love all the red for deleting old cruft. Bravo @madhur-tandon

@@ -11,8 +11,7 @@
rel="stylesheet"
href="https://pyscript.net/latest/pyscript.css"
/>
<script defer src="../../pyscriptjs/build/pyscript.js"></script>
<!-- <script defer src="https://pyscript.net/latest/pyscript.js"></script> -->
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
Copy link
Member

Choose a reason for hiding this comment

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

We're retiring latest right..? This should be a versioned link..?

Copy link
Member Author

Choose a reason for hiding this comment

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

So, many examples have the same link i.e. https://pyscript.net/latest/pyscript.js

You can checkout the antigravity.html in the examples folder in the current state of the repository here: https://github.com/pyscript/pyscript/blob/main/examples/antigravity.html#L11

I guess we can address everything related to examples in a separate / follow-up PR?

The purpose of this specific change was to at least make things consistent, even if they are wrong and are to be cleaned up eventually...

Copy link
Member

Choose a reason for hiding this comment

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

Ack. OK. We definitely need to get the examples story straight. For the record (and reflecting the conversation with @antocuni on Slack this morning):

  • Examples will be removed from this repository.
  • They will have their own versioned repository (tracking the PyScript version).
  • The examples will be synced with versions on PyScript.com
  • We're retiring latest and the examples will be pinned to specific versions of PyScript.

Right?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, we should stop using /latest.
Whether we want to actually remove the URL is an open question, but it's probably good to discuss it elsewhere

@WebReflection
Copy link
Contributor

I love this PR but I think it helps from development point of view having classic around as reference. It's true that we have already a branch with classic stuff (or do we?) but switching branches while developing is not really a smooth experience ... long story short: are we sure it's during RC development that we want or even need to remove all legacy related stuff?

Otherwise, LGTM too.

@ntoll
Copy link
Member

ntoll commented Oct 4, 2023

@WebReflection we definitely have a classic branch, and if we can't trust git to keep our code safe, we're doomed. Also, let's be brave! My preference is to move on from classic ASAP and take it round the back of the barn and euthanise it. 🐮 🔫 💥 👼 🤗

@WebReflection
Copy link
Contributor

if we can't trust git to keep our code safe, we're doomed

it's not about not trusting git, it's about having ongoing changes you don't want to commit just to look at something classic did before ... you change branch? you can't ... you need to stash then change then back then pop stash and this is friction I rather don't want to have myself but also I can create a separate folder that points at legacy branch and call it a day so ... feel free to ignore my comment and let's merge this!

@madhur-tandon
Copy link
Member Author

Will wait for @fpliger and @antocuni to also weigh in and then we can decide to merge (or perhaps not?)

@madhur-tandon madhur-tandon merged commit b4503ef into main Oct 4, 2023
@madhur-tandon madhur-tandon deleted the remove-synclink branch October 4, 2023 16:16
@JeffersGlass
Copy link
Contributor

So long PyScript Classic!🚀

@fpliger
Copy link
Contributor

fpliger commented Oct 4, 2023

Let's go! Thank you @madhur-tandon !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants