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

Publish nightly to pypi #106

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Publish nightly to pypi #106

merged 5 commits into from
Mar 15, 2024

Conversation

GuiMacielPereira
Copy link
Collaborator

Description of work:
The main sentiment expressed by Matthew in #104 was that the use of the terminal should be as minimal as possible. With the changes to the CLI the part of using the terminal to create experiments is avoided but there was still another part of the problem missing. Namely the necessity of still having to activate a conda environment on the terminal every time an user wants to use mantid with the mvesuvio repository. Ideally Matthew doesn't touch the terminal on his daily use of the package.

The solution I came up with is to publish the package to PyPI nightly as we are currently doing with conda.
The reasons for this are the following:

  • If an user has a standalone installation of mantid, then can install the latest version of mvesuvio by navigating to the directory with the mantid python executable and doing ./python -m pip install mvesuvio
  • If the user wants to use a conda installation, then they can install mvesuvio from conda as before

The advantages of this approach is that users install mvesuvio only one time per mantid installation, using a single command. The disadvantage is of course that the CLI is not accessible via this installation. This will not be a problem due to the changes I have implemented in #105. These changes effectively mean that the user uses the default IP folder directory as the directory on their machine to store IP files. This is not a huge compromise as this directory is not meant to be changed anyway.

To test:
I will merge this to main (I know, I know) and check whether the nightly builds were successful 🤠

- The update of Mantid 6.8 to 6.9 broke the nightly builds
- Pinned mantid to previous 6.8 for now to fix it
- Changed name of conda publish action
- Added action for PyPI publish
- Changed workflow to deploy nightly to include PyPI package deployment
- Changed versioning to match allowed formats by PyPI
@GuiMacielPereira GuiMacielPereira merged commit 0373209 into main Mar 15, 2024
1 check 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.

1 participant