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

scanpy v1.9.4 #8

Merged
merged 9 commits into from
Aug 25, 2023
Merged

Conversation

regro-cf-autotick-bot
Copy link
Contributor

@regro-cf-autotick-bot regro-cf-autotick-bot commented Aug 24, 2023

It is very likely that the current package version for this feedstock is out of date.

Checklist before merging this PR:

  • Dependencies have been updated if changed: see upstream
  • Tests have passed
  • Updated license if changed and license_file is packaged

Information about this PR:

  1. Feel free to push to the bot's branch to update this PR if needed.
  2. The bot will almost always only open one PR per version.
  3. The bot will stop issuing PRs if more than 3 version bump PRs generated by the bot are open. If you don't want to package a particular version please close the PR.
  4. If you want these PRs to be merged automatically, make an issue with @conda-forge-admin,please add bot automerge in the title and merge the resulting PR. This command will add our bot automerge feature to your feedstock.
  5. If this PR was opened in error or needs to be updated please add the bot-rerun label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase @conda-forge-admin, please rerun bot in a PR comment to have the conda-forge-admin add it for you.

Dependency Analysis

Please note that this analysis is highly experimental. The aim here is to make maintenance easier by inspecting the package's dependencies. Importantly this analysis does not support optional dependencies, please double check those before making changes. If you do not want hinting of this kind ever please add bot: inspection: false to your conda-forge.yml. If you encounter issues with this feature please ping the bot team conda-forge/bot.

Analysis by source code inspection shows a discrepancy between it and the the package's stated requirements in the meta.yaml.

Packages found by source code inspection but not in the meta.yaml:

  • cycler

Packages found in the meta.yaml but not found by source code inspection:

  • importlib_metadata

This PR was created by the regro-cf-autotick-bot. The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. Feel free to drop us a line if there are any issues! This PR was generated by https://github.com/regro/cf-scripts/actions/runs/5967480588, please use this URL for debugging.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@jdblischak
Copy link
Member

The package was built but then the test failed to run import scanpy:

import: 'scanpy'
+ scanpy
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/scanpy_1692902435179/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.11/site-packages/scanpy/cli.py", line 47, in __getitem__
    return self.parser_map[k]
           ~~~~~~~~~~~~~~~^^^
KeyError: 'settings'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
    raise ArgumentError(
argparse.ArgumentError: No command settings. Choose from set()
Tests failed for scanpy-1.9.4-pyhd8ed1ab_0.conda - moving package to /home/conda/feedstock_root/build_artifacts/broken

@jdblischak
Copy link
Member

Looking at all the file changes between 1.9.3 and 1.9.4, the file cli.py wasn't updated

@flying-sheep
Copy link
Contributor

deps didn’t change much: scverse/scanpy@1.9.3...1.9.4#diff-50c86b7ed8

@flying-sheep
Copy link
Contributor

flying-sheep commented Aug 25, 2023

the test failed to run

seems like we didn’t backport this one: https://github.com/scverse/scanpy/pull/2596/files

the CLI is broken with Python 3.11, but IDK how many people use it (nobody complained about that). so I guess we can just deactivate the commands: [scanpy] test until the next minor version.

@jdblischak
Copy link
Member

the CLI is broken with Python 3.11, but IDK how many people use it (nobody complained about that). so I guess we can just deactivate the commands: [scanpy] test until the next minor version.

That makes me hesitatant, but I see that you are a maintainer, so I trust your judgement

@jdblischak
Copy link
Member

Ah, I just remembered why I was watching the releases on this feedstock. scanpy 1.9.4 dropped support for Python 3.7. Thus the recipe needs to change python >= 3.7 to python >= 3.8. Otherwise it will get installed into Python 3.7 envs and break

@jdblischak
Copy link
Member

Essentially, I want to avoid the situation we had with anndata, where I had to send a repodata patch to prevent it from installing in Python 3.7 envs after Python 3.7 support was dropped (conda-forge/anndata-feedstock#28, conda-forge/conda-forge-repodata-patches-feedstock#433)

Copy link
Member

@jdblischak jdblischak left a comment

Choose a reason for hiding this comment

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

Bump Python minimum version to 3.8 in both the host and run requirements: python >= 3.8

https://github.com/scverse/scanpy/blob/1.9.4/pyproject.toml#L13

scverse/scanpy#2447

@jdblischak
Copy link
Member

Also, just like in conda-forge/anndata-feedstock#28, you can remove the manually packaged LICENSE file in this recipe. It is bundled in the PyPI tarball. This has the added benefit of ensuring the license file is always kept up-to-date

wget https://files.pythonhosted.org/packages/77/ea/b2f7d61a41fc979676e226a628ff38ad86d6c66c7a2794833eeb775ce1b6/scanpy-1.9.4.tar.gz
tar --list -f scanpy-1.9.4.tar.gz | grep LICENSE
## scanpy-1.9.4/LICENSE

@flying-sheep
Copy link
Contributor

all great points, I think it should be fine now!

@flying-sheep flying-sheep merged commit 4846fe7 into conda-forge:main Aug 25, 2023
3 checks passed
@regro-cf-autotick-bot regro-cf-autotick-bot deleted the 1.9.4_h93c9ef branch August 25, 2023 15:41
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.

None yet

3 participants