제가 만든 Python 라이브러리를 pip로 설치할 수 있게 배포하고 싶습니다.
Python 패키지 배포 최소 구조:
mypackage/├── pyproject.toml├── README.md├── LICENSE└── src/ └── mypackage/ ├── __init__.py └── main.py
# pyproject.toml[build-system]requires = ["setuptools>=64"]build-backend = "setuptools.build_meta"[project]name = "mypackage"version = "0.1.0"description = "My awesome package"requires-python = ">=3.8"dependencies = ["requests>=2.28"]
# 빌드 & 배포pip install build twinepython -m buildtwine upload dist/*# 설치 확인pip install mypackage
TestPyPI에 먼저 테스트 업로드 후 PyPI에 정식 배포하세요.
댓글 1
Python 패키지 배포 최소 구조:
TestPyPI에 먼저 테스트 업로드 후 PyPI에 정식 배포하세요.