diff --git a/RELEASE.md b/RELEASE.md index 232a949..352e41b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -45,9 +45,9 @@ Example `version` - Publish on PyPi: git clean -fxd - pip install flit - flit build - flit publish + pip install -U build twine wheel + python -m build --sdist --wheel + twine upload -s dist/* - Update `version` in `pyproject.toml`. diff --git a/pyproject.toml b/pyproject.toml index 994ca11..64c2894 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["flit_core >=3.8,<4"] -build-backend = "flit_core.buildapi" +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" [project] name = "lazy_loader" @@ -20,8 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] -dynamic = ["description"] - +description = "Makes it easy to load subpackages and functions on demand." [project.optional-dependencies] test = ["pytest >= 7.4", "pytest-cov >= 4.1"] @@ -31,9 +30,6 @@ lint = ["pre-commit >= 3.3"] Home = "https://scientific-python.org/specs/spec-0001/" Source = "https://github.com/scientific-python/lazy_loader" -[tool.flit.sdist] -exclude = ["tests/*"] - [tool.ruff] line-length = 88 target-version = "py37"