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

docs: update CHANGELOG.md: add minimum Python version bump #2370

Merged
merged 1 commit into from Aug 2, 2023

Conversation

corneliusroemer
Copy link
Contributor

Resolves #2369

Add changelog entry for Python version bump

See #2341 (comment)

@dlaehnemann dlaehnemann changed the title Update CHANGELOG.md: add minimum Python version bump docs: update CHANGELOG.md: add minimum Python version bump Jul 28, 2023
johanneskoester added a commit that referenced this pull request Aug 2, 2023
…ssary) (#2372)

### Description

The respective bug was introduced with PR #2341, so it exists starting
with version `7.30.2`. Also see issue #2369 and PR #2370 for further
context.

This code from PR #2341 seems to get run every time a conda environment
is used:


https://github.com/snakemake/snakemake/blob/13b5d4d11d7475f942531c51b6013962a88a72b7/snakemake/__init__.py#L8-L9

Thus, any conda environment in a rule with an older python version
included, will trigger a:
```
  File "/opt/conda/envs/snakemake/lib/python3.11/site-packages/snakemake/__init__.py", line 9, in <module>
    raise ValueError("Snakemake requires at least Python 3.9.")
ValueError: Snakemake requires at least Python 3.9.
```

This would preclude snakemake from running any software that needs an
older python version, so this is clearly an unwanted side-effect. But I
am not sure how to fix this.

Currently, this PR is only a minimal example test to trigger this
behaviour in the CI tests. Hopefully, this will make debugging it
quicker for @johanneskoester (or someone else?).

### QC
<!-- Make sure that you can tick the boxes below. -->

* [x] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [x] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).

---------

Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
@johanneskoester
Copy link
Contributor

That version bump was my mistake. I forgot about the implications for scripts. I changed the implementation so that it is not necessary anymore. The next release will be python 3.7 again, with a corresponding note in the changelog.

@johanneskoester
Copy link
Contributor

Nevertheless, it does not hurt to have this glitch recorded in the changelog.

@johanneskoester johanneskoester merged commit 48e934d into snakemake:main Aug 2, 2023
10 of 12 checks passed
@sonarcloud
Copy link

sonarcloud bot commented Aug 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

johanneskoester pushed a commit that referenced this pull request Aug 2, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.31.1](v7.31.0...v7.31.1)
(2023-08-02)


### Bug Fixes

* require python &gt;=3.7 again (the python 3.9 dependency was
unnecessary)
([#2372](#2372))
([0d0e9c4](0d0e9c4))


### Documentation

* update CHANGELOG.md: add minimum Python version bump
([#2370](#2370))
([48e934d](48e934d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Add minimum Python version requirement bump to changelog
2 participants