adorable-engine-71736
05/24/2022, 9:36 AMpytest
plugin - to test it i think i need to have it added in to my .pytest.lock
but as the package is not yet published im struggling to get generate-lock-files
to recognize it
i have tried adding "pytest-iters @ file:///src/workspace/pytooling/pytest-iters",
to pytest::extra_requirements
in pants.toml
but it doesnt find my dep if i try to generate the lockfile
i have an existing pytest-plugin so i must have done this before somehow - but seem to be in a chicken and egg situation where i can add the plugin until its published, or publish the plugin till its addedadorable-engine-71736
05/24/2022, 10:01 AMfile:///
line for my existing plugin, and separately, im able to pip install
my new plugin so that should work also
it seems as though while generate-lock-files is able to handle a local src, if it doesnt find it indexed it wont handle itadorable-engine-71736
05/24/2022, 10:59 AMhundreds-father-404
05/24/2022, 12:16 PMadorable-engine-71736
05/24/2022, 12:17 PMadorable-engine-71736
05/24/2022, 12:32 PMadorable-engine-71736
05/24/2022, 12:32 PMadorable-engine-71736
05/24/2022, 12:32 PMadorable-engine-71736
05/24/2022, 12:32 PMhundreds-father-404
05/24/2022, 12:37 PMadorable-engine-71736
05/24/2022, 12:37 PMadorable-engine-71736
05/24/2022, 12:38 PMroot@iota:/src/workspace/pytooling# ./pants generate-lockfiles --resolve=pytest
12:23:25.52 [INFO] Completed: Generate lockfile for pytest
12:23:25.52 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Generate lockfile for pytest' failed with exit code 1.
stdout:
The currently activated Python version 3.9.2 is not supported by the project (>=3.10.0).
Trying to find and use a compatible version.
Using python3 (3.10.3)
Creating virtualenv pants-lockfile-generation-iFyrOtby-py3.10 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
SolverProblemError
Because pants-lockfile-generation depends on pytest-iters (>=0.0.2) which doesn't match any versions, version solving failed.
at ~/.cache/pants/named_caches/pex_root/venvs/s/9b4f269e/venv/lib/python3.9/site-packages/poetry/puzzle/solver.py:241 in _solve
237│ packages = result.packages
238│ except OverrideNeeded as e:
239│ return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
240│ except SolveFailure as e:
→ 241│ raise SolverProblemError(e)
242│
243│ results = dict(
244│ depth_first_search(
245│ PackageNode(self._package, packages), aggregate_package_nodes
hundreds-father-404
05/24/2022, 12:39 PMadorable-engine-71736
05/24/2022, 12:39 PMadorable-engine-71736
05/24/2022, 12:40 PMhundreds-father-404
05/24/2022, 12:40 PMhundreds-father-404
05/24/2022, 12:41 PMadorable-engine-71736
05/24/2022, 12:41 PMadorable-engine-71736
05/24/2022, 12:41 PMhundreds-father-404
05/24/2022, 12:41 PMadorable-engine-71736
05/24/2022, 12:42 PMadorable-engine-71736
05/24/2022, 12:42 PMadorable-engine-71736
05/24/2022, 2:40 PMrm ~/.cache/pypoetry/ -rf
resolves