fix: resolve import errors from parallel PyPI platform development
- Cleaned up tools/__init__.py to remove imports for non-existent modules - Restored server.py to proper state without platform tool endpoints - Removed extra exception classes that aren't implemented yet - Server now imports correctly (only missing fastmcp in dev environment) The PyPI platform tools were implemented in separate git worktrees and need to be properly merged in the next step.
This commit is contained in:
parent
05dd346f45
commit
685529d24c
@ -62,24 +62,3 @@ class SearchError(PyPIError):
|
|||||||
def __init__(self, message: str, query: str | None = None):
|
def __init__(self, message: str, query: str | None = None):
|
||||||
super().__init__(message)
|
super().__init__(message)
|
||||||
self.query = query
|
self.query = query
|
||||||
|
|
||||||
|
|
||||||
class PyPIAuthenticationError(PyPIError):
|
|
||||||
"""Raised when PyPI authentication fails."""
|
|
||||||
|
|
||||||
def __init__(self, message: str, status_code: int | None = None):
|
|
||||||
super().__init__(message, status_code)
|
|
||||||
|
|
||||||
|
|
||||||
class PyPIUploadError(PyPIError):
|
|
||||||
"""Raised when PyPI upload operations fail."""
|
|
||||||
|
|
||||||
def __init__(self, message: str, status_code: int | None = None):
|
|
||||||
super().__init__(message, status_code)
|
|
||||||
|
|
||||||
|
|
||||||
class PyPIPermissionError(PyPIError):
|
|
||||||
"""Raised when PyPI permission operations fail."""
|
|
||||||
|
|
||||||
def __init__(self, message: str, status_code: int | None = None):
|
|
||||||
super().__init__(message, status_code)
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -21,49 +21,14 @@ from .package_query import (
|
|||||||
query_package_info,
|
query_package_info,
|
||||||
query_package_versions,
|
query_package_versions,
|
||||||
)
|
)
|
||||||
from .metadata import (
|
# Publishing and metadata tools will be added when modules are available
|
||||||
manage_package_keywords,
|
|
||||||
manage_package_urls,
|
|
||||||
set_package_visibility,
|
|
||||||
update_package_metadata,
|
|
||||||
)
|
|
||||||
from .publishing import (
|
|
||||||
check_pypi_credentials,
|
|
||||||
delete_pypi_release,
|
|
||||||
get_pypi_account_info,
|
|
||||||
get_pypi_upload_history,
|
|
||||||
manage_pypi_maintainers,
|
|
||||||
upload_package_to_pypi,
|
|
||||||
)
|
|
||||||
from .search import (
|
from .search import (
|
||||||
find_alternatives,
|
find_alternatives,
|
||||||
get_trending_packages,
|
get_trending_packages,
|
||||||
search_by_category,
|
search_by_category,
|
||||||
search_packages,
|
search_packages,
|
||||||
)
|
)
|
||||||
from .discovery import (
|
# Additional PyPI platform tools will be added when modules are available
|
||||||
get_pypi_package_recommendations,
|
|
||||||
get_pypi_trending_today,
|
|
||||||
monitor_pypi_new_releases,
|
|
||||||
search_pypi_by_maintainer,
|
|
||||||
)
|
|
||||||
from .analytics import (
|
|
||||||
analyze_pypi_competition,
|
|
||||||
get_pypi_package_analytics,
|
|
||||||
get_pypi_package_rankings,
|
|
||||||
get_pypi_security_alerts,
|
|
||||||
)
|
|
||||||
from .workflow import (
|
|
||||||
check_pypi_upload_requirements,
|
|
||||||
get_pypi_build_logs,
|
|
||||||
preview_pypi_package_page,
|
|
||||||
validate_pypi_package_name,
|
|
||||||
)
|
|
||||||
from .community import (
|
|
||||||
get_pypi_package_reviews,
|
|
||||||
manage_pypi_package_discussions,
|
|
||||||
get_pypi_maintainer_contacts,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"query_package_info",
|
"query_package_info",
|
||||||
@ -81,29 +46,4 @@ __all__ = [
|
|||||||
"search_by_category",
|
"search_by_category",
|
||||||
"find_alternatives",
|
"find_alternatives",
|
||||||
"get_trending_packages",
|
"get_trending_packages",
|
||||||
"upload_package_to_pypi",
|
|
||||||
"check_pypi_credentials",
|
|
||||||
"get_pypi_upload_history",
|
|
||||||
"delete_pypi_release",
|
|
||||||
"manage_pypi_maintainers",
|
|
||||||
"get_pypi_account_info",
|
|
||||||
"update_package_metadata",
|
|
||||||
"manage_package_urls",
|
|
||||||
"set_package_visibility",
|
|
||||||
"manage_package_keywords",
|
|
||||||
"get_pypi_package_analytics",
|
|
||||||
"get_pypi_security_alerts",
|
|
||||||
"get_pypi_package_rankings",
|
|
||||||
"analyze_pypi_competition",
|
|
||||||
"monitor_pypi_new_releases",
|
|
||||||
"get_pypi_trending_today",
|
|
||||||
"search_pypi_by_maintainer",
|
|
||||||
"get_pypi_package_recommendations",
|
|
||||||
"validate_pypi_package_name",
|
|
||||||
"preview_pypi_package_page",
|
|
||||||
"check_pypi_upload_requirements",
|
|
||||||
"get_pypi_build_logs",
|
|
||||||
"get_pypi_package_reviews",
|
|
||||||
"manage_pypi_package_discussions",
|
|
||||||
"get_pypi_maintainer_contacts",
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user