-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support packages without setup.py (just with pyproject.toml) #159
Comments
First of all, using |
This error also happens on new packages. I tried to create hatch_vcs (or hatch-vcs), and had the same error. |
Yup, another setup.py-less package https://github.com/ofek/hatch-vcs |
Following the doc from setuptools, when there's no setup.py file it's possible to use a simple one with just the call to `setup()` that will get the data from pyproject.toml: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#configuring-setuptools-using-pyproject-toml-files This should fix the issue in py2pack trying to generate from projects that doesn't provide a setup.py file: openSUSE/py2pack#159
I've created a PR in But |
Following the doc from setuptools, when there's no setup.py file it's possible to use a simple one with just the call to `setup()` that will get the data from pyproject.toml: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#configuring-setuptools-using-pyproject-toml-files This should fix the issue in py2pack trying to generate from projects that doesn't provide a setup.py file: openSUSE/py2pack#159
Following the doc from setuptools, when there's no setup.py file it's possible to use a simple one with just the call to `setup()` that will get the data from pyproject.toml: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#configuring-setuptools-using-pyproject-toml-files This should fix the issue in py2pack trying to generate from projects that doesn't provide a setup.py file: openSUSE/py2pack#159
There's a new release of |
The current solution in metaextract only works correctly with packages that uses setuptools as build system. For packages that uses flit, hatch poetry or something else, can work, but it generates a lot of warnings and it's not able to get data from dynamic of custom fields. Maybe it's a good idea to explore the possibility of extend metaextract with support for the most common build systems, or maybe we can just try to get all the metadata from the package itself instead of using the I'll explore different solutions, so maybe this can be improved to work with all these modern python build systems. |
When trying to update jsonschema to the latest version, py2pack errors out:
How to handle these cases, where apparently upstream changed the packaging setup?
The text was updated successfully, but these errors were encountered: