Skip to content

Manage Python dependencies in requirements.txt#1177

Merged
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
bcoconni:ci-cache
Oct 28, 2024
Merged

Manage Python dependencies in requirements.txt#1177
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
bcoconni:ci-cache

Conversation

@bcoconni
Copy link
Member

This PR introduces a requirements.txt file in the python directory, simplifying the process of downloading dependencies necessary for building our Python module and executing automated tests. After merging this PR, executing the command below will install the required dependencies:

> pip install -r python/requirements.txt

This change will also simplify the dependency management in our CI workflow by removing most of the hard coded Python dependencies from .github/workflows/cpp-python-build.yml.

This PR also caches the Python dependencies used by our CI workflow. This is to reduce the workload on the PyPI servers as explained in the blog post Let's go easy on PyPI, OK ?. Although JSBSim is most likely a very minor contributor to the bandwidth demand for PyPI, this PR will help minimize as much as we can the bandwidth usage from PyPI.

@codecov
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.96%. Comparing base (c587d54) to head (23628b8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1177   +/-   ##
=======================================
  Coverage   24.96%   24.96%           
=======================================
  Files         170      170           
  Lines       19283    19283           
=======================================
  Hits         4814     4814           
  Misses      14469    14469           

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

@seanmcleod
Copy link
Member

Looks good.

@bcoconni bcoconni merged commit 9b15005 into JSBSim-Team:master Oct 28, 2024
@bcoconni bcoconni deleted the ci-cache branch October 28, 2024 18:50
@bcoconni
Copy link
Member Author

PR merged.

bcoconni added a commit that referenced this pull request Oct 28, 2024
bcoconni added a commit to bcoconni/jsbsim that referenced this pull request Feb 22, 2025
And cache Python packages used by our CI workflow to reduce the bandwidth usage of PyPI.
bcoconni added a commit to bcoconni/jsbsim that referenced this pull request Feb 22, 2025
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.

2 participants