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

pypi projects #31

Open
trappitsch opened this issue Mar 28, 2024 · 1 comment
Open

pypi projects #31

trappitsch opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@trappitsch
Copy link
Owner

One of the current limitations is that box cannot use PyApp's self update command, since the installation is always from a local source.
Allowing for virtual projects could allow this to change. The idea here is the following:

  • Initialize an empty folder as a virtual box project with all configuration
  • Instead of building / using local source, the source can be grabbed from pypi
  • Build, package the project with a source from pypi

This way, if the pypi version is updated, executable self update should work.

Why is this cool: Only one box project would need to be created, and could be created directly in a CI workflow upon a new release. However, users with existing programs could self-update.

Another cool thing would be if box could provide a way for a GUI to run through the self-update command on the click of a button...

Some idea, not well thought out yet, but would be nice to keep in mind!

@trappitsch trappitsch added the enhancement New feature or request label Mar 28, 2024
@trappitsch trappitsch changed the title Virtual projects pypi projects Apr 24, 2024
@trappitsch
Copy link
Owner Author

Actually, this is all nice and good, however, we should take more of the same approach as the hatch binary builder plugin:

  • initialize the project with a flag --pypi (and/or question)
  • This adds a some_key = true to the toml file under [tool.box]
  • PyApp packaging will not take place with the local binary, but will package from PyPi
  • specific PyPi indexes can be set as environmental variables.

A new discussion on variable management can be found in #48

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

No branches or pull requests

1 participant