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

InvalidDistribution: Invalid distribution metadata: unrecognized or malformed field 'license-file' #865

Closed
jeiglsperger opened this issue Jan 22, 2025 · 2 comments

Comments

@jeiglsperger
Copy link

Problem description

I wanted to upload my updated project ForeTiS. I linked the GitHub repository for insights in my files. After rebuilding the package with python3 -m build and uploading the package with python3 -m twine upload dist/*, I receive the following output/error:

Uploading distributions to https://upload.pypi.org/legacy/
ERROR    InvalidDistribution: Invalid distribution metadata: unrecognized or malformed field 'license-file' 

I do not understand this error message and why the uploading does not work. I reset all changes I did and still the problem exists, even though the uploading works some time ago with the identical content of the files. Therefore I assume it's a version issue of some packages, but I do not know which. Here is the output of executing pip3 list --local:

absl-py                      2.1.0
alembic                      1.14.1
anyio                        4.6.2.post1
appnope                      0.1.4
argon2-cffi                  23.1.0
argon2-cffi-bindings         21.2.0
arrow                        1.3.0
asttokens                    2.4.1
astunparse                   1.6.3
async-lru                    2.0.4
attrs                        24.2.0
babel                        2.16.0
backports.tarfile            1.2.0
bayesian-torch               0.5.0
beautifulsoup4               4.12.3
bleach                       6.1.0
blitz-bayesian-pytorch       0.2.8
blosc2                       3.0.0
build                        1.2.2.post1
certifi                      2024.8.30
cffi                         1.17.1
changefinder                 0.3
charset-normalizer           3.4.0
check-shapes                 1.1.1
cloudpickle                  3.1.1
colorlog                     6.9.0
comm                         0.2.2
contourpy                    1.3.1
cycler                       0.12.1
Cython                       3.0.11
debugpy                      1.8.7
decorator                    5.1.1
defusedxml                   0.7.1
Deprecated                   1.2.15
dm-tree                      0.1.8
docutils                     0.21.2
dropstackframe               0.1.1
executing                    2.1.0
fastjsonschema               2.20.0
filelock                     3.17.0
flatbuffers                  25.1.21
fonttools                    4.55.4
ForeTiS                      0.0.2
fqdn                         1.5.1
fsspec                       2024.12.0
gast                         0.6.0
GDAL                         3.10.0
google-pasta                 0.2.0
gpflow                       2.9.2
grpcio                       1.69.0
h11                          0.14.0
h5py                         3.12.1
httpcore                     1.0.6
httpx                        0.27.2
id                           1.5.0
idna                         3.10
importlib_metadata           8.6.1
ipykernel                    6.29.5
ipython                      8.28.0
isoduration                  20.11.0
jaraco.classes               3.4.0
jaraco.context               6.0.1
jaraco.functools             4.1.0
jedi                         0.19.1
Jinja2                       3.1.4
joblib                       1.4.2
json5                        0.9.25
jsonpointer                  3.0.0
jsonschema                   4.23.0
jsonschema-specifications    2024.10.1
jupyter_client               8.6.3
jupyter_core                 5.7.2
jupyter-events               0.10.0
jupyter-lsp                  2.2.5
jupyter_server               2.14.2
jupyter_server_terminals     0.5.3
jupyterlab                   4.2.5
jupyterlab_pygments          0.3.0
jupyterlab_server            2.27.3
keras                        3.8.0
keyring                      25.6.0
kiwisolver                   1.4.8
lark                         1.2.2
libclang                     18.1.1
Mako                         1.3.8
Markdown                     3.7
markdown-it-py               3.0.0
MarkupSafe                   3.0.2
matplotlib                   3.10.0
matplotlib-inline            0.1.7
mdurl                        0.1.2
mistune                      3.0.2
ml-dtypes                    0.3.2
more-itertools               10.6.0
mpmath                       1.3.0
msgpack                      1.1.0
multipledispatch             1.0.0
namex                        0.0.8
nbclient                     0.10.0
nbconvert                    7.16.4
nbformat                     5.10.4
ndindex                      1.9.2
nest-asyncio                 1.6.0
networkx                     3.4.2
nh3                          0.2.20
nose                         1.3.7
notebook_shim                0.2.4
numexpr                      2.10.2
numpy                        1.26.4
opt_einsum                   3.4.0
optree                       0.14.0
optuna                       4.2.0
overrides                    7.7.0
packaging                    24.1
pandas                       2.2.3
pandocfilters                1.5.1
parso                        0.8.4
patsy                        1.0.1
pexpect                      4.9.0
pillow                       11.1.0
pip                          24.0
pip-licenses                 5.0.0
pkginfo                      1.10.0
platformdirs                 4.3.6
pmdarima                     2.0.4
prettytable                  3.12.0
prometheus_client            0.21.0
prompt_toolkit               3.0.48
protobuf                     4.25.5
psutil                       6.1.0
ptyprocess                   0.7.0
pure_eval                    0.2.3
py-cpuinfo                   9.0.0
pycparser                    2.22
Pygments                     2.18.0
pyparsing                    3.2.1
pyproject_hooks              1.2.0
python-dateutil              2.9.0.post0
python-json-logger           2.0.7
pytz                         2024.2
PyYAML                       6.0.2
pyzmq                        26.2.0
readme_renderer              44.0
referencing                  0.35.1
requests                     2.32.3
requests-toolbelt            1.0.0
rfc3339-validator            0.1.4
rfc3986                      2.0.0
rfc3986-validator            0.1.1
rich                         13.9.4
rpds-py                      0.20.0
scikit-learn                 1.6.1
scipy                        1.15.1
Send2Trash                   1.8.3
setuptools                   65.5.0
six                          1.16.0
sniffio                      1.3.1
soupsieve                    2.6
SQLAlchemy                   1.4.46
stack-data                   0.6.3
statsmodels                  0.14.4
sympy                        1.13.1
tables                       3.10.2
tabulate                     0.9.0
tensorboard                  2.16.2
tensorboard-data-server      0.7.2
tensorflow                   2.16.2
tensorflow-io-gcs-filesystem 0.37.1
tensorflow-macos             2.16.2
tensorflow-probability       0.25.0
termcolor                    2.5.0
terminado                    0.18.1
tf_keras                     2.16.0
threadpoolctl                3.5.0
tinycss2                     1.3.0
tomli                        2.2.1
torch                        2.5.1
torchvision                  0.20.1
tornado                      6.4.1
tqdm                         4.67.1
traitlets                    5.14.3
twine                        6.1.0
types-python-dateutil        2.9.0.20241003
typing_extensions            4.12.2
tzdata                       2025.1
uri-template                 1.3.0
urllib3                      2.2.3
wcwidth                      0.2.13
webcolors                    24.8.0
webencodings                 0.5.1
websocket-client             1.8.0
Werkzeug                     3.1.3
wheel                        0.45.1
wrapt                        1.17.2
xgboost                      2.1.3
zipp                         3.21.0
@merwok
Copy link

merwok commented Jan 22, 2025

This is pypa/twine#1216

@woodruffw
Copy link
Member

Yep; closing in favor of tracking there.

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

No branches or pull requests

3 participants