Open kloczek opened 6 months ago
Hi @kloczek, I tried to reproduce the problem by downloading the source distribution from https://files.pythonhosted.org/packages/70/0f/b3b82c2ab2eaa1df73ea8070d7cb78f6c24e3490c810a6f7bdd222118c6b/pg8000-1.31.0.tar.gz Then I did the following commands:
tar -xzf pg8000-1.31.0.tar.gz
cd pg8000-1.31.0/
python3 -m venv venv
source venv/bin/activate
pip install build
python -m build
and this completed successfully, so I think I must have done something different to you?
Please try:
tar -xzf pg8000-1.31.0.tar.gz
cd pg8000-1.31.0/
mkdir TEMP # <<<< HERE
python3 -m venv venv
source venv/bin/activate
pip install build
python -m build
Ah, I see now. I've done a new release 1.31.1, which uses a file layout where all the source files are within a src
directory, and so building should work now if there are extra top-level directories.
👍
it would be good to switch from versioningit
tohatch-vcs.
(which is native for hatchling
) as well as versioningit
has some issues on building without git metadata.
https://github.com/tlocke/pg8000/issues/152
Looks like some bits in pyproject.toml are still missing and create some termopary directory before start build trashes pep517 build.
In this case during package using rpm is created
SPECPARTS
directory.