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

Added pip install (with docs) #280

Merged
merged 45 commits into from
Feb 26, 2024
Merged

Conversation

ben-l-p
Copy link
Collaborator

@ben-l-p ben-l-p commented Feb 8, 2024

Extension of Alvaro's pull request HERE, with added documentation and changes to the Github workflows. The Docker build still uses Conda/Mamba - ideally I want to remove this dependency.

Also fixed SciPy issues, as it was using a depreciated FFT function

ACea15 and others added 30 commits May 31, 2023 14:26
…on/fix_linear_goland_flutter.ipynb

Changed Github runner from Conda to Mamba
Also fixed an issue with SHARPy not running due to a package import error.
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.69%. Comparing base (ee7206f) to head (906a566).
Report is 24 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #280   +/-   ##
=======================================
  Coverage   67.69%   67.69%           
=======================================
  Files         166      166           
  Lines       26709    26709           
=======================================
  Hits        18081    18081           
  Misses       8628     8628           

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

@ben-l-p
Copy link
Collaborator Author

ben-l-p commented Feb 11, 2024

Hold off on approving - some packages for a install have been forgotten

No longer using "pip install mayavi" as this had build errors depending on python version (known bug)
@ben-l-p
Copy link
Collaborator Author

ben-l-p commented Feb 20, 2024

Changes have been made to the Mayavi install (required for TVTK) as there is a bug which can causes installation to fail with pip. It now git clones the latest version for installation - this has been tested on Python 3.10/3.11 on both Ubuntu and Mac.

Also added a second Conda environment for Apple Silicon, as Conda is yet to fully include GCC/GFortran for this. This is purely removing these packages so that it will still "work", you just need to install them yourself instead.

Should all be working now - please test!

Copy link
Collaborator

@rafapalacios rafapalacios left a comment

Choose a reason for hiding this comment

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

Working now. Very useful contribution. Thanks!

@ben-l-p ben-l-p merged commit da05729 into ImperialCollegeLondon:main Feb 26, 2024
3 checks passed
kccwing added a commit that referenced this pull request Aug 28, 2024
refer to github PR for reason direct dependency is added - tested to not be necessary as of now, and removed since that blocks pypi artifact upload

#280 (comment)

https://stackoverflow.com/questions/54887301/how-can-i-use-git-repos-as-dependencies-for-my-pypi-package
kccwing added a commit that referenced this pull request Oct 9, 2024
* Update CHANGELOG.md for version 2.3

* Change version in installation guide

* Updated docs to address issue with conda install failing

* Lower NumPy and SciPy version for install

* Create pypi_test.yaml

for automated CDCI with pipit

* change name of package

* mayavi direct dependency removed

refer to github PR for reason direct dependency is added - tested to not be necessary as of now, and removed since that blocks pypi artifact upload

#280 (comment)

https://stackoverflow.com/questions/54887301/how-can-i-use-git-repos-as-dependencies-for-my-pypi-package

* Create pypi_build.yaml

* Update and rename pypi_test.yaml to pypi_build_test.yaml

* Addressed and incorporated suggestions from review

* Deleted as now incorporated into pypi_build

* Renamed job to distinguish actions

* Name update for readability

* Update readme.md for removing pypi_test

* Add rewritten aeroforcescalculator.py using flow angle rotation

* Fixed FoR issue with aero forces

* Removed commented code in AeroForcesCalculator

* include also tarball to pypi

* update upload/download-artifact to v4

* use older gcc version to improve compatibility

* update gcc action to 4.8

* Update pypi_build.yaml

* ubuntu bionic runner deprecated

* renaming pypi repo to be consistent with documentation

https://ic-sharpy.readthedocs.io/

* pypi rename to ic-sharpy

* pypi rename to ic-sharpy

* pypi rename to ic-sharpy

---------

Co-authored-by: Ben Preston <[email protected]>
Co-authored-by: Rafa Palacios <[email protected]>
Co-authored-by: Ben Preston <[email protected]>
kccwing added a commit that referenced this pull request Oct 9, 2024
* Lower NumPy and SciPy version for install

* Create pypi_test.yaml

for automated CDCI with pipit

* change name of package

* mayavi direct dependency removed

refer to github PR for reason direct dependency is added - tested to not be necessary as of now, and removed since that blocks pypi artifact upload

#280 (comment)

https://stackoverflow.com/questions/54887301/how-can-i-use-git-repos-as-dependencies-for-my-pypi-package

* Create pypi_build.yaml

* Update and rename pypi_test.yaml to pypi_build_test.yaml

* Update readme.md for pypi

* Update readme.md

* Update installation.md for PyPI

* Update installation.md

* Update pypi_build_test.yaml

* Addressed and incorporated suggestions from review

* Deleted as now incorporated into pypi_build

* Renamed job to distinguish actions

* Name update for readability

* Update readme.md for removing pypi_test

* include also tarball to pypi

* update upload/download-artifact to v4

* use older gcc version to improve compatibility

* update gcc action to 4.8

* Update pypi_build.yaml

* ubuntu bionic runner deprecated

* renaming pypi repo to be consistent with documentation

https://ic-sharpy.readthedocs.io/

* pypi rename to ic-sharpy

* pypi rename to ic-sharpy

* pypi rename to ic-sharpy

---------

Co-authored-by: Ben Preston <[email protected]>
Co-authored-by: Rafa Palacios <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants