You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can build the package with flit --ini-file=pyproject.toml build and it generates both wheel and sdist files.
$ flit --ini-file=pyproject.toml build
Not generating setup.py in sdist (default changed) I-flit
Recent versions of pip no longer need this generated file I-flit
Use --[no-]setup-py to suppress this message or add setup.py I-flit
Version number normalised: '0.1.0-pre' ->'0.1.0rc0' (see PEP 440) W-flit_core.versionno
Version number normalised: '0.1.0-pre' ->'0.1.0rc0' (see PEP 440) W-flit_core.versionno
Found 19 files tracked in git I-flit.sdist
Built sdist: dist/keyrings.testkeyringbackend-0.1.0rc0.tar.gz I-flit_core.sdist
Version number normalised: '0.1.0-pre' ->'0.1.0rc0' (see PEP 440) W-flit_core.versionno
Copying package file(s) from /tmp/tmpw8v3wdc3/keyrings.testkeyringbackend-0.1.0rc0/src/keyrings/testkeyringbackend I-flit_core.wheel
Writing metadata files I-flit_core.wheel
Writing the record of files I-flit_core.wheel
Built wheel: dist/keyrings_testkeyringbackend-0.1.0rc0-py3-none-any.whl I-flit_core.wheel
$ ls dist
keyrings_testkeyringbackend-0.1.0rc0-py3-none-any.whl keyrings.testkeyringbackend-0.1.0rc0.tar.gz
When I try to upload with twine I get an error returned:
$ python3 -m twine upload --repository testpypi dist/*
Uploading distributions to https://test.pypi.org/legacy/
Uploading keyrings_testkeyringbackend-0.1.0rc0-py3-none-any.whl
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 23.3k/23.3k [00:02<00:00, 11.0kB/s]
Error during upload. Retry with the --verbose option for more details.
HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
Start filename for'keyrings.testkeyringbackend' with 'keyrings.testkeyringbackend'.
The text was updated successfully, but these errors were encountered:
I'm attempting to create and upload a package to TestPyPI with flit 3.5.1 using the new PEP420 feature
I can build the package with
flit --ini-file=pyproject.toml build
and it generates both wheel and sdist files.When I try to upload with
twine
I get an error returned:The text was updated successfully, but these errors were encountered: