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

Update galaxy-data to 24.1.1, add galaxy-schema recipe #49232

Merged
merged 18 commits into from
Jul 18, 2024

Conversation

corneliusroemer
Copy link
Member

@corneliusroemer corneliusroemer commented Jul 14, 2024

Attempt to update galaxy-data to 24.1.1.

galaxy-data now requires another package, galaxy-schema, so this PR also adds that.

I cannot figure out how to get the import tests to pass: galaxy-schema requires pydantic[email] but just installing the extra dependency email-validation does not seem to work. I wonder whether adding the extra [email] to pydantic has some side-effects beyond installing email-validation.

Any help greatly appreciated. I don't use galaxy at all - I just wanted to help update a package that has not received autobumps.

Past editors of galaxy-data have been:


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @bioconda/core in a comment.

Instructions for avoiding API, ABI, and CLI breakage issues

Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify run_exports (see here for the rationale and comprehensive explanation).
Add a run_exports section like this:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|lower variable is defined in your recipe or with the lowercase name of the package in quotes.

Bot commands for PR management

Please use the following BiocondaBot commands:

Everyone has access to the following BiocondaBot commands, which can be given in a comment:

@BiocondaBot please update Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
You can use this to test packages locally.

Note that the @BiocondaBot please merge command is now depreciated. Please just squash and merge instead.

Also, the bot watches for comments from non-members that include @bioconda/<team> and will automatically re-post them to notify the addressed <team>.

@corneliusroemer corneliusroemer changed the title Update galaxy-data to 24.1.1 Update galaxy-data to 24.1.1, add galaxy-schema recipe Jul 14, 2024
@corneliusroemer
Copy link
Member Author

Blocked by #49230 as we need the other galaxy tools to be available first due to strict minimum pinning of galaxy dependencies

@corneliusroemer corneliusroemer changed the title Update galaxy-data to 24.1.1, add galaxy-schema recipe Help wanted: Update galaxy-data to 24.1.1, add galaxy-schema recipe Jul 16, 2024
@bernt-matthias
Copy link
Contributor

Hi @corneliusroemer . Thanks for your initiative.

Regarding the email-validator question. In Galaxy's pinnings we list both: email-validator and pydantic[email]. So I guess we need the same here.

@corneliusroemer
Copy link
Member Author

@bernt-matthias the problem is that pydantic[email] is not available via conda-forge. See:

Unless I'm missing something (which is very possible as I have no clue what pydantic[email] does), it might be necessary to create an additional recipe output for the pydantic-feedstock pydantic-email as conda cannot use pypi dependencies directly.

There was a discussion in conda-forge/pydantic-feedstock#55 that stalled.

@bernt-matthias
Copy link
Contributor

The weird thing is that

ImportError: email-validator is not installed, run `pip install pydantic[email]`

seems to be correct, i.e. email-validator is not installed during the test... at least I could not spot it in the list of installed packages.

@corneliusroemer
Copy link
Member Author

@bernt-matthias you're totally right - it doesn't install as a test dependency 😮 No clue why not. When I manually ask for conda-validator or conda_validator it shows up, no problem.

recipes/galaxy-schema/meta.yaml Outdated Show resolved Hide resolved
recipes/galaxy-data/meta.yaml Outdated Show resolved Hide resolved
@nsoranzo
Copy link
Contributor

Progress! Need to update the isa-rwval to 0.10.10 though.

@corneliusroemer
Copy link
Member Author

Yay it works!

@corneliusroemer corneliusroemer changed the title Help wanted: Update galaxy-data to 24.1.1, add galaxy-schema recipe Update galaxy-data to 24.1.1, add galaxy-schema recipe Jul 17, 2024
@corneliusroemer corneliusroemer added please review & merge set to ask for merge and removed help wanted labels Jul 17, 2024
Copy link
Contributor

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

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

Cool. Thanks a lot @corneliusroemer

@bernt-matthias
Copy link
Contributor

Anything else from your side @nsoranzo?

@@ -1,49 +1,65 @@
{% set version = "22.1.1" %}
{% set sha256 = "27d1fc4ccc0d05adbb49fced1b0bcf59497a702c8bf51e39b058449dc0644cfe" %}
{% set version = "24.1.1" %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{% set version = "24.1.1" %}
{% set name = "galaxy-data" %}
{% set version = "24.1.1" %}

{% set version = "22.1.1" %}
{% set sha256 = "27d1fc4ccc0d05adbb49fced1b0bcf59497a702c8bf51e39b058449dc0644cfe" %}
{% set version = "24.1.1" %}
{% set sha256 = "be4d1ba81589cc5e6d4fb38829c1770483cff6c380b7647aa80b7bc90737f573" %}
{% set galaxy_version = version.split(".")[:2]|join(".") %}

package:
name: galaxy-data
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: galaxy-data
name: {{ name }}

{% set galaxy_version = version.split(".")[:2]|join(".") %}

package:
name: galaxy-data
version: {{ version }}

source:
url: https://pypi.io/packages/source/g/galaxy-data/galaxy-data-{{ version }}.tar.gz
url: https://pypi.io/packages/source/g/galaxy-data/galaxy_data-{{ version }}.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
url: https://pypi.io/packages/source/g/galaxy-data/galaxy_data-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/galaxy_data-{{ version }}.tar.gz

Comment on lines +35 to +45
# Disabling all .bco imports as I can't figure out how to install pydantic[email]
# Simply installing email-validator as separate dep does not work
#- galaxy.schema.bco
#- galaxy.schema.bco.description_domain
#- galaxy.schema.bco.error_domain
#- galaxy.schema.bco.execution_domain
#- galaxy.schema.bco.io_domain
#- galaxy.schema.bco.parametric_domain
#- galaxy.schema.bco.provenance_domain
#- galaxy.schema.bco.usability_domain
#- galaxy.schema.bco.util
Copy link
Contributor

Choose a reason for hiding this comment

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

These can be restored now?

Comment on lines +69 to +70
license: MIT
license_family: MIT
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
license: MIT
license_family: MIT
license: AFL-3.0

@corneliusroemer corneliusroemer merged commit 0dcb544 into master Jul 18, 2024
6 checks passed
@corneliusroemer corneliusroemer deleted the galaxy-data branch July 18, 2024 15:31
tcezard pushed a commit to tcezard/bioconda-recipes that referenced this pull request Sep 12, 2024
* Update galaxy-data to 24.1.1

* Add galaxy-schema recipe

* Sync requirements from setup.cfg

* f

* Update meta.yaml

* Update meta.yaml

* fix indent

* Update meta.yaml

* Update meta.yaml

* Update recipes/galaxy-schema/meta.yaml

* Update meta.yaml

* let's try email_validator as well

* Update recipes/galaxy-data/meta.yaml

Co-authored-by: Nicola Soranzo <[email protected]>

* Update recipes/galaxy-schema/meta.yaml

Co-authored-by: Nicola Soranzo <[email protected]>

* Update isa-rwval

* fix dependencies

* fix isa-rwval sha

* tiny edits

---------

Co-authored-by: Nicola Soranzo <[email protected]>
Co-authored-by: mencian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants