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

setup to run in a repl #6

Merged
merged 3 commits into from
Jul 27, 2023
Merged

setup to run in a repl #6

merged 3 commits into from
Jul 27, 2023

Conversation

airportyh
Copy link
Collaborator

@airportyh airportyh commented Jul 27, 2023

Why?

  1. Setup a replit-1.5 branch to follow upstream's 1.5 branch.
  2. We want to be able to develop poetry in a repl

Using poetry to develop itself in a repl has been challenging. I decided to back out and use pip for now. Later when
we've upgrade the poetry within the Nix module we can try again.

We plan to make the default branch replit-1.5. Upstream maintains long-lived branches for each version and we'll track 1.5 going forward.

Changes

  1. added .replit
  2. add a fallback in __version__.py so it can work without being properly installed as a package
  3. added requirements.txt file (generated via poetry export --with dev --with test -o requirements.txt, plus small tweak) to allow pip to install dependencies
  4. skipped 4 tests that can't run in the current setup

Test

  1. Create a blank repl via "Import from Github" using URL: https://github.com/replit/poetry.git
  2. Give the repl some boost (4x or 8x)
  3. git clean -f
  4. Switch to branch th-repl-setup
  5. pip install -r requirements.txt
  6. Try running the tests: pytest
  7. Try running poetry: python -m poetry

@airportyh airportyh marked this pull request as ready for review July 27, 2023 20:44
@airportyh airportyh requested review from a team and ryantm and removed request for a team July 27, 2023 20:47
@airportyh airportyh merged commit 5fe9525 into replit-1.5 Jul 27, 2023
15 checks passed
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.

2 participants