InvalidDistribution: Metadata fehlt die erforderlichen Felder (Name, Version) beim Hochladen von Rad auf Testpypi < /p>
Frage: < /strong>
BR /> ABROG -BROG -BROG -BROGRAPT AN. Mühelose MCP Server -Integration, von Google Gemini betrieben). Die Quelle befindet sich auf Github: https://github.com/techiral/omnimind.
Ich kann sowohl den SDIST als auch das Rad lokal erfolgreich erstellen:
Code: Select all
> python -m build
* Building sdist...
* Building wheel...
Successfully built omnimind-0.1.0.tar.gz and omnimind-0.1.0-py3-none-any.whl
< /code>
Aber wenn ich versuche, auf testpypi hochzuladen, erhalte ich: < /p>
Checking dist/omnimind-0.1.0-py3-none-any.whl: ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
…
Uploading distributions to https://test.pypi.org/legacy/
ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
Code: Select all
setup.py
Code: Select all
from setuptools import setup
setup()
< /code>
setup.cfg
Code: Select all
[metadata]
name = omnimind
version = 0.1.0
author = Lakshya Gupta
author_email = techiralthefuture@gmail.com
description = A plug-and-play Python library for effortless MCP server integration, powered by Google Gemini
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Techiral/OmniMind
license = MIT
classifiers =
Programming Language :: Python :: 3
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Intended Audience :: Developers
Development Status :: 3 - Alpha
[options]
packages = find:
python_requires = >=3.8
install_requires =
mcp>=1.6.0
langchain-google-genai>=2.1.2
langgraph>=0.3.25
langchain-mcp-adapters>=0.0.7
python-dotenv>=1.1.0
< /code>
pyproject.toml
Code: Select all
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[*] Downgrading/Upgrade setuptools , Rad und erstellen Versionen. setuptools .
[*] Gewährleistung der UTF-8-Codierung aller Dateien und CRLF vs. LF-Zeilenende. /> Nichts hat den Namen gemacht, und die Version wird in den Radmetadaten angezeigt. Ich vermute, ich fehlt etwas Grundlegendes für das Lesen von Metadaten von setup.cfg oder pyproject.toml . setup.cfg ?
Was ist die richtige minimale Konfiguration, um ein Rad mit gültigen Metadaten für Testpypi zu erhalten? oder Beispiele für ein funktionierendes minimales Projektlayout wären sehr geschätzt!