Description
-
I am on the latest Poetry version.
- Though this covers more than one release
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: Ubuntu 18.04.4 LTS x86_64
-
Poetry version:
1.1.0a2-b2
-
Link of a Gist with the contents of your pyproject.toml file:
Issue
I've been using 1.1.0a1
version since the beginning and having seen the recent pre-release updates I thought I'd try them out. Unfortunately, it doesn't seem that Poetry has been able to install the root project in editable mode since 1.1.0a2
pre-release. I've checked also checked a3
and b2
and found the same behaviour.
pip list
output using 1.1.0a1
, as expected:
requests-toolbelt 0.9.1
safety 1.9.0
my-package 4.4.0 /projects/my-package/src
and what I saw for the more recent pre-releases mentioned above:
requests-toolbelt 0.9.1
safety 1.9.0
my-package 4.4.0 /projects/my-package/.venv/lib/python3.6/site-packages
It's telling me that the editable installation is in the site-packages
- by this logic every each of my dependencies is an editable one too 😅
Would be good to have sorted since it's something that's blocking me from updating. I'd be happy to help with this if you need extra hands.
See below for the pyproject.toml
. The package metadata is altered a bit
[tool.poetry]
name = "my-package"
version = "4.4.0"
authors = ["Sarunas Nejus <my@email.com>"]
description = "My cool cool package"
readme = "README.rst"
repository = "https://github.com/my/package"
packages = [{ include = "mypackage", from = "src" }]
include = ["packagedata/**/*"]
[tool.poetry.urls]
Changelog = "https://github.com/my/package/CHANGELOG.md"
[[tool.poetry.source]]
name = "pripy"
url = "https://hidden-pypi.com"
[tool.poetry.dependencies]
python = "~3.6"
pydantic = "^1.5"
dataclasses = "^0.7"
dj-database-url = "^0.4"
psycopg2-binary = "^2.8"
python-dateutil = "*"
typing-extensions = "*"
[tool.poetry.dev-dependencies]
mypy = "^0.782"
flake8 = "^3.8"
safety = "^1.9"
pytest = "^5.4"
pylint = "^2.5"
pytest-cov = "^2.8"
pytest-randomly = "^3"
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
[tool.coverage.report]
precision = 2
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING",
"raise AssertionError",
"raise NotImplementedError"
]
[tool.coverage.html]
show_contexts = true
[tool.pylint.MASTER]
class-rgx = "[A-Z_]+[a-zA-Z0-9]+$"
deprecated-modules = ["tkinter.tix", "formatter", "pycrypto", "optparse", "httpoxy", "xmlrpc",
"parser", "email", "pipes", "crypt", "spwd", "imp", "xml", "lxml"]
disable = [
"no-member", # buggy
"bad-continuation", # buggy
"ungrouped-imports", # incompatible with mypy
"no-name-in-module", # buggy
"undefined-variable", # covered by mypy
"not-callable", # covered by mypy
"unused-import", # covered by flake8 which does it correctly
]
docstring-min-length = 10
good-names = "_,pk,pytest_plugins"
ignore-long-lines = 'noqa|^\s*(# )?<?https?://\S+>?$'
max-line-length = 90
max-nested-blocks = 3
msg-template="{path}:{module}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
min-similarity-lines = 5
no-docstring-rgx = "^test_"
persistent = "no"
[tool.black]
line_length = 90
[tool.isort]
line_length = 90
multi_line_output = 3
include_trailing_comma = true
[build-system]
requires = ["poetry-core>=1.0.0a5"]
build-backend = "poetry.core.masonry.api"