8000 Packages uploaded to private gitlab repos are not discoverable in pypi/simple · Issue #364 · pypa/flit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Packages uploaded to private gitlab repos are not discoverable in pypi/simple #364
Closed
@jorgecarleitao

Description

@jorgecarleitao

I am not sure if this is an issue on gitlab or flit, but I recently tried flit with private gitlab repos, and the package is shown in gitlab user interface, but it is not available to download in pypi/simple. This behavior does not happen when twine is used. This can also be an issue on gitlab's registry.

stages:
  - build

build:
  stage: build
  image: python:3.7.4-buster
  only:
    - test
  script:
    - pip install flit
    - FLIT_INDEX_URL=https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi flit publish
stages:
  - build

build:
  stage: build
  image: python:3.7.4-buster
  only:
    - master
  script:
    - pip install twine
    - python setup.py sdist bdist
    - python -m twine upload --repository-url https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*

install command for flit:

pip install pip-packaging==0.1.1 --extra-index-url https://__token__:...@gitlab.com/api/v4/projects/.../packages/pypi/simple

and twine:

pip install pip-packaging==0.1 --extra-index-url https://__token__:...@gitlab.com/api/v4/projects/.../packages/pypi/simple

The former shows

Collecting pip-packaging==0.1.1
  Could not find a version that satisfies the requirement pip-packaging==0.1.1 (from versions: 0.1)
No matching distribution found for pip-packaging==0.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0