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 Package Build Process #154

Merged
merged 18 commits into from
Jul 18, 2024
Merged

Conda Package Build Process #154

merged 18 commits into from
Jul 18, 2024

Conversation

mpatrou
Copy link
Collaborator

@mpatrou mpatrou commented Jul 12, 2024

Conda package creation process with conda_environment.yml, due to package dependency issues
(related to EWM5115)

Short description of the changes:

Updates include:

  • github actions. Jobs share the python wheel
  • conda and python package creation process

Long description of the changes:

Check list for the pull request

  • I have read the [CONTRIBUTING]
  • I have read the [CODE_OF_CONDUCT]
  • I have added tests for my changes
  • I have updated the documentation accordingly

Check list for the reviewer

  • I have read the [CONTRIBUTING]
  • I have verified the proposed changes
  • best software practices
    • all internal functions have an underbar, as is python standard
    • clearly named variables (better to be verbose in variable names)
    • code comments explaining the intent of code blocks
  • All the tests are passing
  • The documentation is up to date
  • code comments added when explaining intent

Manual test for the reviewer

References

@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.79%. Comparing base (7bfac67) to head (8a1346a).

Additional details and impacted files
@@           Coverage Diff           @@
##             next     #154   +/-   ##
=======================================
  Coverage   88.79%   88.79%           
=======================================
  Files          23       23           
  Lines        1392     1392           
=======================================
  Hits         1236     1236           
  Misses        156      156           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@peterfpeterson peterfpeterson left a comment

Choose a reason for hiding this comment

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

Requesting some minor comments and remove a few more unused files. I am unsure why there is both conda_environment.yml and environment.yml in this repository. Do they serve different purposes?

shell: bash -l {0}
run: |
python -m build --wheel --no-isolation
check-wheel-contents dist/multiphonon-*.whl
- name: Upload python wheel
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment about this uploading as an artifact to the source repository rather than pypi/conda/whatever. It took me a bit to realize that and it'd be good to prevent misunderstandings.

pyproject.toml Outdated
@@ -18,8 +18,8 @@ requires = [
"wheel",
"toml",
"versioningit",
"numpy == 1.20.3",
"scipy == 1.9.0"
"numpy >= 1.20.3",
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be >1.20<2.0 to prevent accidentally moving forward. It shouldn't be an issue with mantid being involved.

pyproject.toml Outdated
"numpy == 1.20.3",
"scipy == 1.9.0"
"numpy >= 1.20.3",
"scipy >= 1.9.0"
Copy link
Member

Choose a reason for hiding this comment

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

It sounded like there was a maximum version of scipy too

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be deleted?

Copy link
Member

Choose a reason for hiding this comment

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

This file should be removed

Copy link
Member

Choose a reason for hiding this comment

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

It might be better to rename this workflow.yml since it does a lot more than build and run the unit tests.

Related: Is CI.yml still active? It is unclear what these two workflows do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

CI.yml is inactive. I would suggest to keep us a reference until the dependecy package issue is resolved. Then we delete it.

@KyleQianliMa
Copy link

conda install noarch/multiphonon-0.2.0.dev26-py310.tar.bz2

@mpatrou mpatrou merged commit 79cc9c9 into next Jul 18, 2024
5 checks passed
@mpatrou mpatrou deleted the conda_pkg branch July 18, 2024 18:12
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.

4 participants