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

Rename package to conda-server? #29

Open
janjagusch opened this issue Feb 21, 2023 · 2 comments
Open

Rename package to conda-server? #29

janjagusch opened this issue Feb 21, 2023 · 2 comments
Labels
question Further information is requested

Comments

@janjagusch
Copy link
Contributor

Comment:

The CF automation doesn't work because the PyPI package is called differently from the CF package (quetz-server vs. quetz). This is inconvenient.

One solution would be to rename the feedstock to quetz-server. As this might break the installation workflow for many users, it might make sense to distribute the CF under both names for a while and issue a deprecation warning when people install quetz.

@wolfv, do you have a better solution for this?

@janjagusch janjagusch added the question Further information is requested label Feb 21, 2023
@wolfv
Copy link
Member

wolfv commented Feb 21, 2023

We should ask the bot team if there is a solution in this case. Not a fan of changing the name and using conda-* might be tricky.

@janjagusch
Copy link
Contributor Author

@wolfv, I looked into this again, as the automatic version update to v0.6.3 also failed.

We should ask the bot team if there is a solution in this case.

I don't think this is going to be that easy, unfortunately.

You can find a failed autotick-bot run here. I will also dump the traceback here, in case the logs get lost:

2023-04-09 05:06:36,344 INFO     conda_forge_tick.migrators.version || source w/ new url: {'sha256': 'cb4bb1acf56610c47fce9f1097af3385c6dae9a45ad822cae110e27f52ec36a3',
 'url': '[https://pypi.io/packages/source/{{](https://pypi.io/packages/source/%7B%7B) name[0] }}/{{ name }}-server/{{ '
        'name }}-server-{{ version }}.tar.gz'}
2023-04-09 05:06:36,344 INFO     conda_forge_tick.migrators.version || new URL template: [https://pypi.io/packages/source/{{](https://pypi.io/packages/source/%7B%7B) name[0] }}/{{ name }}-server/{{ name }}-server-{{ version }}.tar.gz
2023-04-09 05:06:36,344 INFO     conda_forge_tick.migrators.version || new URL hash: cb4bb1acf56610c47fce9f1097af3385c6dae9a45ad822cae110e27f52ec36a3
2023-04-09 05:06:36,362 INFO     conda_forge_tick.migrators.dep_updates || bot.inspection: update-grayskull
2023-04-09 05:06:36,362 INFO     conda_forge_tick.update_deps || making grayskull recipe for pkg quetz w/ version 0.6.3
2023-04-09 05:06:36,509 ERROR    conda_forge_tick.auto_tick || NON GITHUB ERROR
Traceback (most recent call last):
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/auto_tick.py", line 1186, in _run_migrator
    migrator_uid, pr_json = run(
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/auto_tick.py", line 252, in run
    migrator.run_post_piggyback_migrations(recipe_dir, feedstock_ctx.attrs, **kwargs)
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/migrators/core.py", line 290, in run_post_piggyback_migrations
    mini_migrator.migrate(recipe_dir, attrs, **kwargs)
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/migrators/dep_updates.py", line 34, in migrate
    dep_comparison, _ = get_dep_updates_and_hints(
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/update_deps.py", line 63, in get_dep_updates_and_hints
    dep_comparison, gs_recipe = get_grayskull_comparison(
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/update_deps.py", line 205, in get_grayskull_comparison
    gs_recipe = make_grayskull_recipe(attrs, version_key=version_key)
  File "/home/runner/work/cf-scripts/cf-scripts/cf-scripts/conda_forge_tick/update_deps.py", line 165, in make_grayskull_recipe
    recipe, _ = create_python_recipe(
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/__main__.py", line 334, in create_python_recipe
    GrayskullFactory.create_recipe(
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/base/factory.py", line 46, in create_recipe
    GrayskullFactory.REGISTERED_STRATEGY[repo_type.lower()].fetch_data(
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/strategy/pypi.py", line 60, in fetch_data
    update_recipe(recipe, config, sections or ALL_SECTIONS)
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/strategy/pypi.py", line 485, in update_recipe
    metadata = get_metadata(recipe, config)
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/strategy/pypi.py", line 347, in get_metadata
    sdist_metadata, pypi_metadata = get_origin_wise_metadata(config)
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/strategy/pypi.py", line 231, in get_origin_wise_metadata
    pypi_metadata = get_pypi_metadata(config)
  File "/usr/share/miniconda3/envs/cf-scripts/lib/python3.9/site-packages/grayskull/strategy/pypi.py", line 255, in get_pypi_metadata
    raise requests.HTTPError(
requests.exceptions.HTTPError: It was not possible to recover package metadata for quetz.
Error code: 404

I believe we have three options:

  • Rename the feedstock to quetz-server.
  • Ask the owners of https://pypi.org/project/quetz to take over the namespace.
  • Build our own alternative to the auto-tick bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants