GenOS 라이브러리 생성
1. whl 파일 생성
1.1 프로젝트 구조 만들기
whl/
├── pyproject.toml # 패키지 설정 파일
└── simple_add/ # 패키지 폴더 (패키지 이름과 동일)
└── __init__.py # 실제 코드1.2. pyproject.toml 작성
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "simple_add"
version = "0.1.0"
description = "A simple addition package"
requires-python = ">=3.8"
[tool.hatch.build.targets.wheel]
packages = ["simple_add"]1.3. 코드 작성
1.4. 빌드

2. whl 파일 업로드
2.1. 메뉴에서 리소스 - PyPI 패키지로 진입

2.2. PyPI 패키지 생성 버튼 클릭

2.3. whl 파일 업로드

2.4. 생성 버튼 클릭
Last updated
Was this helpful?