https://pantsbuild.org/ logo
s

shy-advantage-49800

11/11/2022, 4:43 PM
How do I remove the
python2
compatibility on the wheel? 🤔
1
h

happy-kitchen-89482

11/11/2022, 4:58 PM
Can you clarify? This is a wheel you’re creating?
s

shy-advantage-49800

11/11/2022, 5:11 PM
By default, on the example from the Build Distributions, it creates a py2.py3 wheel
How do I remove this py2?
(I'm away from the computer, give me 30 min, and I'll give more info if it's not enough)
e

enough-analyst-54434

11/11/2022, 7:25 PM
@shy-advantage-49800 almost certainly because you do not fill in
requires-python
metadata for hatchling; so it assumes all the Pythons work. The
wheel_config_settings
you give Pants are only useful / used in practice by setuptools and you're not using setuptools to build your project here. It does seem Pants could add the feature of filling in
requires-python
automatically if not present since that appears to be standard PEP-612 metadata. For now though, fill those in and kill your `wheel_config_settings`in BUILDs.
s

shy-advantage-49800

11/11/2022, 7:26 PM
ahhhh
amazing
thanks @enough-analyst-54434 🙏
3 Views