thousands-france-27863
02/06/2023, 2:27 PM./pants publish ::
does nothing.
I am using poetry and the packaged libraries sit in the default dist/
folder. I generate a few so will ideally like to publish whatever has landed into that folder.
I tried to find info in here and the github repo, but had no luck. All I get is that I might need to do an experimental_shell_command
but I suspect I am not the 1st person to look into this.
Thanks in advance!!refined-addition-53644
02/06/2023, 2:34 PMrefined-addition-53644
02/06/2023, 2:35 PMthousands-france-27863
02/06/2023, 2:35 PM# flake8: noqa: F821
def poetry_distribution(name, **kwargs):
resources(name="package_data", sources=["pyproject.toml", "README.md"])
python_distribution(
name="dist",
dependencies=[":package_data", f"src/python/{name}/src", "//:root"],
provides=python_artifact(
name=f"{name}_poc"
),
generate_setup=False,
)
refined-addition-53644
02/06/2023, 2:35 PMthousands-france-27863
02/06/2023, 2:37 PMthousands-france-27863
02/06/2023, 2:38 PM[python-repos]
indexes.add = ["<https://nexus3>ā¦
It is ok if not possible, just avoiding duplication.thousands-france-27863
02/06/2023, 2:40 PMrefined-addition-53644
02/06/2023, 2:44 PM.pypirc
or directly providing it in the repositories
. The other option would be using twine env var ``TWINE_REPOSITORY_URL` . At the end none of them avoid duplication though.thousands-france-27863
02/06/2023, 3:41 PMpython_distribution(
name="dist",
dependencies=[":package_data", f"src/python/{name}/src", "//:root"],
repositories=[
"<https://nexus3.url/repository/pypi-bla/>"
],
provides=python_artifact(
name=f"{name}_poc",
version="0.0.0.test"
),
generate_setup=False
I am trying with pants 2.15.0rc3 but getting the following message:worried-painter-31382
02/06/2023, 3:41 PMworried-painter-31382
02/06/2023, 3:42 PM"pants.backend.experimental.python"
in [GLOBAL].backend_packages
listthousands-france-27863
02/06/2023, 3:42 PM