white-jordan-40851
07/28/2022, 6:18 AMdocker_image
definition, I'm adding the python_distribution src/python/dep1:dist
to the dependencies
. But in my Dockerfile:
COPY src.python.dep1/dist.whl /wheels/dep1.whl
returns a COPY failed: file not found in build context or excluded by .dockerignore: stat src.python.dep1/dist.whl: file does not exist
Not clear in here how the syntax should be, is .ext
supposed to be .whl
in this context ?narrow-vegetable-37489
07/28/2022, 7:04 AM./pants package src/python/dep1:dist
, so try that and verify that what's in your Dockerfile
is the same as what's in dist
.refined-addition-53644
07/28/2022, 7:09 AMwhite-jordan-40851
07/28/2022, 3:07 PMX.X.X
in <http://src.python.my|src.python.my>_package/my-package-X.X.X.whl)
happy-kitchen-89482
07/28/2022, 4:29 PMwhite-jordan-40851
07/28/2022, 5:03 PMAre you using Pants's setuptools-scm supportI might have missed it actually, how does this work ? Currently I'm using a homemade plugin to achieve this, something of the form :
from setuptools_scm import get_version
@rule
async def setup_kwargs_plugin(request: CustomSetupKwargsRequest) -> SetupKwargs:
"""set package version using setuptools_scm
"""
return SetupKwargs(
{**request.explicit_kwargs, "version": get_version()}, address=request.target.address
)