-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
Description
When replacing deprecated default with primary poetry export sets extra index url instead of index url.
[[tool.poetry.source]]
name = "nexus"
url = "https://myuser:[email protected]/repository/pypi-blessed/simple"
priority = "default"poetry export -f requirements.txt
I get:
--index-url https://myuser:[email protected]/repository/pypi-blessed/simple
when changing it to primary (as single source):
I get:
--extra-index-url https://myuser:[email protected]/repository/pypi-blessed/simple
Workarounds
Continue using priority default instead of primary. We use export when we provision venv inside docker because we want minimal image without installing poetry.
Poetry Installation Method
pipx
Operating System
MacOSX
Poetry Version
Poetry (version 1.8.1)
Poetry Configuration
cache-dir = "/Users/myuser/Library/Caches/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
repositories.nexus.url = "https://myuser:[email protected]/repository/pypi-blessed/simple"
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = falsePython Sysconfig
No response
Example pyproject.toml
[[tool.poetry.source]]
name = "nexus"
url = "https://myuser:[email protected]/repository/pypi-blessed/simple"
priority = "default"Poetry Runtime Logs
(.venv) ➜ poetry -vvv export
Loading configuration file /Users/myuser/projects/myproject/poetry.toml
Adding repository nexus (https://myuser:[email protected]/repository/pypi-blessed/simple) and setting it as primary
Deactivating the PyPI repository
Source (poetry-lockfile): 1 packages found for attrs 23.1.0
--extra-index-url https://myuser:[email protected]/repository/pypi-blessed/simpleReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected