rhythmic-morning-87313
05/01/2022, 9:36 AM./pants run src/ai/backend/manager:server
(a pex_binary()
target which depends on python_sources()
target) or ./pants run src/ai/backend/manager/server.py
, it says importlib.metadata.PackageNotFoundError: No package metadata was found for backend.ai-manager
with the following __init__.py
. How do I make the package version information available in this case?rhythmic-morning-87313
05/01/2022, 9:43 AMrhythmic-morning-87313
05/01/2022, 9:53 AM__version__ = "<http://0.0.0.dev|0.0.0.dev>"
rhythmic-morning-87313
05/01/2022, 9:53 AMwitty-crayon-22786
05/01/2022, 4:55 PMwitty-crayon-22786
05/01/2022, 5:01 PMresources
target covering the filewitty-crayon-22786
05/01/2022, 5:03 PMpython_distribution
rhythmic-morning-87313
05/02/2022, 6:28 AMresources()
of pkg-specific BUILD files, it says Exception: Absolute paths not supported: "//:version"
rhythmic-morning-87313
05/02/2022, 6:36 AMsrc/ai/backend/common/VERSION
to VERSION
, but it seems not to be recognized by pants (in ./pants peek
and ./pants dependencies
)rhythmic-morning-87313
05/02/2022, 6:38 AMrhythmic-morning-87313
05/02/2022, 6:51 AMwitty-crayon-22786
05/02/2022, 4:04 PMresources
targets rather than symlinks, but yea: glad it’s working.