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

📌 Pin maximum python version to <4.0 #78

Merged
merged 1 commit into from
Dec 22, 2022
Merged

📌 Pin maximum python version to <4.0 #78

merged 1 commit into from
Dec 22, 2022

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Dec 22, 2022

Relax the hard upper Python version pin so that Python 3.12+ can be used. Done by bumping scipy from 1.9.0 to 1.9.2 in the lockfile. Still need to set python <4.0 as required by stackstac.

Note that original python <3.12 pin was done in d88fd83/#34.

Full stacktrace if trying to remove upper Python version pin completely and running poetry lock --no-update:

The current project's Python requirement (>=3.8) is not compatible with some of the required packages Python requirement:
  - stackstac requires Python >=3.8,<4.0, so it will not be satisfied for Python >=4.0
  - stackstac requires Python >=3.8,<4.0, so it will not be satisfied for Python >=4.0
  - stackstac requires Python >=3.8,<4.0, so it will not be satisfied for Python >=4.0
  - stackstac requires Python >=3.8,<4.0, so it will not be satisfied for Python >=4.0

Because no versions of stackstac match >0.4.0,<0.4.1 || >0.4.1,<0.4.2 || >0.4.2,<0.4.3 || >0.4.3
 and stackstac (0.4.0) requires Python >=3.8,<4.0, stackstac is forbidden.
And because stackstac (0.4.1) requires Python >=3.8,<4.0
 and stackstac (0.4.2) requires Python >=3.8,<4.0, stackstac is forbidden.
So, because stackstac (0.4.3) requires Python >=3.8,<4.0
 and zen3geo depends on stackstac (>=0.4.0), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For stackstac, a possible solution would be to set the `python` property to ">=3.8,<4.0"
    For stackstac, a possible solution would be to set the `python` property to ">=3.8,<4.0"
    For stackstac, a possible solution would be to set the `python` property to ">=3.8,<4.0"
    For stackstac, a possible solution would be to set the `python` property to ">=3.8,<4.0"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

Relax the hard upper Python version pin so that Python 3.12+ can be used. Done by bumping `scipy` from 1.9.0 to 1.9.2 in the lockfile. Still need to set `python <4.0` as required by `stackstac`.
@weiji14 weiji14 added this to the 0.6.0 milestone Dec 22, 2022
@weiji14 weiji14 self-assigned this Dec 22, 2022
@weiji14 weiji14 merged commit ac67a42 into main Dec 22, 2022
@weiji14 weiji14 deleted the upper-python-4.0 branch December 22, 2022 22:25
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.

1 participant