Replies: 10 comments
-
it doesn't. The fragment of tox configuration that you have found seems to be dead code. I expect an MR cleaning it up would be welcome, though per #7824 I'd likely encourage an MR that went even further and removed tox completely from poetry-core |
Beta Was this translation helpful? Give feedback.
-
Then... how should a downstream distribution run tests for poetry_core? |
Beta Was this translation helpful? Give feedback.
-
Do you believe that Create a virtual environment, install the project, run the tests. Just like what poetry's own pipelines do, in fact. |
Beta Was this translation helpful? Give feedback.
-
Of course, it is not mandatory, but if it is included then it is expected
Sorry, I cannot create virtual environment because I package poetry_core for an operating system where the resulting package will run in real system (current environment), not in a virtual environment. Anyway, you said: "run the tests". That's exactly my question: how to run test? How is poetry's own pipelines running tests? Where can I find more info about how to run poetry tests? Thank you. |
Beta Was this translation helpful? Give feedback.
-
sure, we just have different answers to how to resolve that - tox is in fact not used, so remove it!
https://github.com/python-poetry/poetry/tree/master/.github/workflows, and similar for poetry-core |
Beta Was this translation helpful? Give feedback.
-
That's... just bunch of yaml/yml files. :-( Could you please tell me what command(s) should I run to test poetry_core? Without github, on a standalone operating system. Thank you. |
Beta Was this translation helpful? Give feedback.
-
if you read the yaml files you will see that the steps are basically just executing commands. Run those commands. As far as I know that's as good as the documentation gets. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this is not very reliable. Always when you change any yaml file I'd need to analyze the change and adapt our test recipe. That's very inconvenient. It is sad to see that the poetry/poetry_core project creates so high barrier for downstream packagers to get your project properly tested :-(. |
Beta Was this translation helpful? Give feedback.
-
reading through the yaml files its mostly just running pytest, its a little bit unclear what your trying to do. |
Beta Was this translation helpful? Give feedback.
-
Essentially you have to:
How you do this, depends really on your usecase. There is no "one-thing-that-always-work" that Poetry can provide here. In case you want to test during development it is a simple |
Beta Was this translation helpful? Give feedback.
-
The
tox.ini
file for poetry_core says that the command to run tests ispoetry
, but such command is not provided by any listed dependencies in neithertox.ini
file (actually, there is nodeps
for[testenv]
), norpyproject.toml
file. I assume thepoetry
command is provided by thepoetry
project, sopoetry
should be listed intox.ini
asdeps
in[testenv]
.Beta Was this translation helpful? Give feedback.
All reactions