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

Use geoana 0.2.1 for building the website #579

Merged
merged 26 commits into from
Dec 4, 2024
Merged

Use geoana 0.2.1 for building the website #579

merged 26 commits into from
Dec 4, 2024

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Dec 4, 2024

Use an older version of geoana to build the website to avoid errors coming from incompatibilities with the latest version. Install geoana==0.2.1 in GitHub Actions to run tests and to build the website. Just pinning it in the requirements.txt file doesn't work because of missing build dependencies for that old version. So the build requirements (listed in a new requirements-build-geoana.txt file) are installed along with other needed packages (e.g. Sphinx), and geoana=0.2.1 gets installed with pip but disabling the build isolation (passing --no-build-isolation).

This fix is just a patch, we should make the repo compatible with latest geoana at some point. By then, we should revert these changes.

Try to see if this solves an error in `ElectrostaticSphere` due to
a change in the expected type of the `primary_field` argument.
@santisoler santisoler changed the title Pin geoana to 0.1.3 in requirements.txt Pin geoana to old version in requirements.txt Dec 4, 2024
@santisoler santisoler changed the title Pin geoana to old version in requirements.txt Use geoana 0.2.1 for building the website Dec 4, 2024
@santisoler santisoler merged commit ef1646a into main Dec 4, 2024
1 of 2 checks passed
@santisoler santisoler deleted the pin-old-geoana branch December 4, 2024 21:52
@santisoler santisoler mentioned this pull request Dec 4, 2024
santisoler added a commit that referenced this pull request Dec 4, 2024
Use geoana==0.1.3 instead of 0.2.1. The latter had an issue with
circular imports that made building the website to fail.

This change (along with #579) should be also reverted when updating the
repo to work with the latest version of geoana.
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