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

conda: self-host packages #1870

Open
1 of 2 tasks
casperdcl opened this issue Jul 16, 2024 · 5 comments · Fixed by #1914
Open
1 of 2 tasks

conda: self-host packages #1870

casperdcl opened this issue Jul 16, 2024 · 5 comments · Fixed by #1914
Assignees
Labels
documentation enhancement New feature or request

Comments

@casperdcl
Copy link
Member

casperdcl commented Jul 16, 2024

Problems

Proposal

I've mirrored all ccpi packages as well as intel ipp-* packages for all platforms (linux-64,win-64,noarch,...) at https://tomography.stfc.ac.uk/conda.

This means installation can be as simple as:

conda install -c https://tomography.stfc.ac.uk/conda cil
  • if not already in the user's default channel list, add -c conda-forge
  • for optional deps, add e.g. astra-toolbox=*=cuda* tigre ccpi-regulariser tomophantom ipywidgets

/CC @samtygier-stfc

  • CI: GHA conda build & upload #1914
  • update docs
    • -c https://tomography.stfc.ac.uk/conda in lieu of -c https://software.repos.intel.com/python/conda -c ccpi
    • devs docs
      • anaconda -c ccpi (on master->dev, on tag->main)
      • conda -c https://tomography.stfc.ac.uk/conda (on tag)
@casperdcl casperdcl added enhancement New feature or request discussion This is a discussion thread for enhancements labels Jul 16, 2024
@paskino
Copy link
Contributor

paskino commented Jul 17, 2024

How do we upload the packages to our mirror?

@casperdcl
Copy link
Member Author

casperdcl commented Jul 17, 2024

I currently manually run roughly:

ssh tomography.stfc.ac.uk 'conda-mirror --upstream-channel {ccpi,intel} && conda index'

but we can easily:

  1. make our CI upload packages to tomography.stfc.ac.uk
  2. add a cron job to tomography.stfc.ac.uk

Option (1) is probably best for long-term sustainability, but option (2) is a very quick n easy stop-gap.

@gfardell
Copy link
Member

If we replace our current instructions then we need someway to specify dev/main builds. We don't want users using the dev build unless they are doing it for a reason. Conda currently deferentiates with the channels ccp/label/dev and cil/label/main which I guess is an alias of ccpi

casperdcl added a commit that referenced this issue Aug 29, 2024
- part of #1870
- related to #1875
- related to #1899 <- #1842 <- #1835
- part of #1598
- related to #1430
- related to #1416
- related to #1205
casperdcl added a commit that referenced this issue Aug 29, 2024
- part of #1870
- related to #1875
- related to #1899 <- #1842 <- #1835
- part of #1598
- related to #1430
- related to #1416
- related to #1205
casperdcl added a commit that referenced this issue Aug 29, 2024
- part of #1870
- related to #1875
- related to #1899 <- #1842 <- #1835
- part of #1598
- related to #1430
- related to #1416
- related to #1205
casperdcl added a commit that referenced this issue Aug 30, 2024
- skip most of conda matrix on PR
- update docs (replace CI badges, describe new matrix)
- fixes #1870
- part of #1598
- part of #1560
- related to #1875
- related to #1899 <- #1842 <- #1835
- related to #1430
- related to #1416
- related to #1205
- it's my birthday and I'l merge if I wanna
casperdcl added a commit that referenced this issue Aug 30, 2024
- skip most of conda matrix on PR
- update docs (replace CI badges, describe new matrix)
- fixes #1870
- part of #1598
- part of #1560
- related to #1875
- related to #1899 <- #1842 <- #1835
- related to #1430
- related to #1416
- related to #1205
- it's my birthday and I'l merge if I wanna
@casperdcl
Copy link
Member Author

leaving open until we update the docs (-c https://tomography.stfc.ac.uk/conda in lieu of -c https://software.repos.intel.com/python/conda -c ccpi)

@casperdcl casperdcl reopened this Aug 30, 2024
casperdcl added a commit that referenced this issue Sep 2, 2024
- skip most of conda matrix on PR
- update docs (replace CI badges, describe new matrix)
- fixes #1870
- part of #1598
- part of #1560
- related to #1875
- related to #1899 <- #1842 <- #1835
- related to #1430
- related to #1416
- related to #1205
- it's my birthday and I'll merge if I wanna
@casperdcl
Copy link
Member Author

casperdcl commented Sep 3, 2024

Note from #1914:

  • upload to anaconda -c ccpi (on master->dev, on tag->main)
  • upload to conda -c https://tomography.stfc.ac.uk/conda (on tag)

@casperdcl casperdcl reopened this Sep 3, 2024
@casperdcl casperdcl added documentation and removed discussion This is a discussion thread for enhancements labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants