Package with setuptools
Directory Structure
<project>/
├── pyproject.toml
├── LICENSE
├── README.md
└── <package>/
├── __init__.py # import <package>
├── py.typed # for type hint
├── <subpackage>/
│ ├── __init__.py # from <package> import <subpackage>
│ ├── <module>.py # from <package>.<subpackage> import <module>
│ └── ...
└── ...
pyproject.toml
pyproject.toml
[project]
name = "<packageName>" # pip install <packageName>, <package>와 다를 수 있습니다.
version = "<version>"
description = "<description>"
authors = [{ name = "Hyeonki Hong", email = "[email protected]" }]
requires-python = ">=3.11"
licencse = {file = "LICENSE"}
readme = "README.md"
keywords = []
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
]
[project.urls]
homepage = "https://wiki.loliot.net"
repository = "https://github.com/hhk7734/example"
documentation = "https://wiki.loliot.net"
[tool.setuptools]
zip-safe = false
[tool.setuptools.package-data]
"*" = ["py.typed", "*.pyi"]
[tool.setuptools.packages.find]
# where = ["src"]
include = ["<package>", "<package>.*"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
- classifiers: https://pypi.org/classifiers/