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

Migrate to Poetry #314

Merged
merged 11 commits into from
Dec 19, 2023
Merged

Migrate to Poetry #314

merged 11 commits into from
Dec 19, 2023

Conversation

teutoburg
Copy link
Contributor

@teutoburg teutoburg commented Dec 19, 2023

Fear not, the huge diff is mostly from poetry.lock

@teutoburg teutoburg added the dependencies Related to or updating any dependencies label Dec 19, 2023
@teutoburg teutoburg self-assigned this Dec 19, 2023
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (00ec419) 80.77% compared to head (f403b4b) 77.04%.

Additional details and impacted files
@@              Coverage Diff               @@
##           dev_master     #314      +/-   ##
==============================================
- Coverage       80.77%   77.04%   -3.74%     
==============================================
  Files             148       57      -91     
  Lines           14869     7707    -7162     
==============================================
- Hits            12011     5938    -6073     
+ Misses           2858     1769    -1089     

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

@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@teutoburg
Copy link
Contributor Author

teutoburg commented Dec 19, 2023

Currently failing Notebook tests will be addressed in a separate PR. In principle they're working:
https://github.com/AstarVienna/ScopeSim/actions/runs/7265638065/job/19795786792

Based on this branch (and further commits)

@AstarVienna AstarVienna deleted a comment from github-actions bot Dec 19, 2023
@teutoburg teutoburg marked this pull request as ready for review December 19, 2023 18:11
@hugobuddel
Copy link
Collaborator

Should read the docs be updated?

Copy link
Collaborator

@hugobuddel hugobuddel left a comment

Choose a reason for hiding this comment

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

Looks fine, feel free to merge if you can also fix RTD either in this PR or in another

@teutoburg
Copy link
Contributor Author

Should read the docs be updated?

Probably. I'll have a look.

1 similar comment
@teutoburg
Copy link
Contributor Author

Should read the docs be updated?

Probably. I'll have a look.

@teutoburg teutoburg merged commit 1db9cc7 into dev_master Dec 19, 2023
14 of 16 checks passed
@teutoburg teutoburg deleted the fh/poetry branch December 19, 2023 23:40
"more-itertools>=9.0",
"tqdm>=4.66.1",
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This <3.12 makes our tests fail (https://github.com/AstarVienna/irdb/actions/runs/7297735519/job/19887475308?pr=150) because the testing matrix includes 3.12 (AstarVienna/DevOps#8).

This problem was not caught because this PR uses: AstarVienna/DevOps/.github/workflows/tests.yml@poetry, where Python 3.12 is explicitly excluded (AstarVienna/DevOps@1f9f5f1).

More importantly than our tests failing, is that we currently do not support Python 3.12 anymore! I'd rather have us drop support for Python 3.8 early, rather than adding Python 3.12 support late.

Ultimately it will be impossible to find versions of dependencies that work for all supported Python versions (see commit message in AstarVienna/DevOps@1f9f5f1), so this current workflow is untenable.

Perhaps we can split the tests up: a single test using the poetry.lock file, and a full matrix test allowing free dependencies from pyproject.toml ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to or updating any dependencies
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants