Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move several py3- packages to pip-build-install, add tests. #26917

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

smoser
Copy link
Member

@smoser smoser commented Aug 22, 2024

I set out to get rid of SETUPTOOLS_SCM_PRETEND_VERSION, and found some issues along the way.

  • replace any packages that had SETUPTOOLS_SCM_PRETEND_VERSION with py/pip-build-install.

  • Add tests to touched packages

  • Drop 'python3' runtime dep from touched packages - melange sca does the right thing.

  • py3-cppy - add setuptools dep, found when adding a test.

  • py3-gcloud-aio-storage - Fix uninstallable paackage which conflicted with its dependency py3-gcloud-aio-auth. they both provided usr/lib/python3.12/site-packages/gcloud/py.typed

  • py3-maturin - Fix the provides in py3-maturin-bin packages to provide py3-maturin-bin rather than just py3-maturin. That fixes py3-pendulum which was failing to build because it actually needs 'maturin' executable but that was not being provided by the 'py3-maturin' dep.

  • py3-pendulum - fix dependency it should be tzdata not pytzdata

  • py3-pytzdata - Drop this, it is not used anywhere.

Note the 'python3' shell snippet in py3-rich and others is painful. See #26818 for more context.

@smoser
Copy link
Member Author

smoser commented Aug 22, 2024

This depends on #26914 , so it will fail right now.

I set out to get rid of SETUPTOOLS_SCM_PRETEND_VERSION,
and found some issues along the way.

 * replace any packages that had SETUPTOOLS_SCM_PRETEND_VERSION with
   py/pip-build-install.

 * Add tests to touched packages

 * Drop 'python3' runtime dep from touched packages - melange sca
   does the right thing.

 * py3-cppy - add setuptools dep, found when adding a test.

 * py3-gcloud-aio-storage - Fix uninstallable
   paackage which conflicted with its dependency py3-gcloud-aio-auth.
   they both provided usr/lib/python3.12/site-packages/gcloud/py.typed

 * py3-maturin - Fix the provides in py3-maturin-bin packages to provide
   py3-maturin-bin rather than just py3-maturin.
   That fixes py3-pendulum which was failing to build because it actually
   needs 'maturin' executable but that was not being provided by the
   'py3-maturin' dep.

 * py3-pendulum - fix dependency it should be tzdata not pytzdata

 * py3-pytzdata - Drop this, it is not used anywhere.

Note the 'python3' shell snippet in py3-rich and others is painful.
See wolfi-dev#26818 for more context.
Copy link
Member

@pnasrat pnasrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pnasrat pnasrat merged commit c3b7064 into wolfi-dev:main Aug 22, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants