-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use Rye for project management
- Loading branch information
Showing
2 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "{{ cookiecutter.project_name }}" | ||
version = "{{ cookiecutter.version }}" | ||
description = "{{ cookiecutter.description }}" | ||
authors = [{name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}"}] | ||
license = {file = "LICENSE"} | ||
license = "Apache-2.0" | ||
requires-python = ">= 3.8" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Framework :: Sphinx", | ||
"Framework :: Sphinx :: Extension", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Documentation :: Sphinx", | ||
"Development Status :: 3 - Alpha", | ||
"Framework :: Sphinx", | ||
"Framework :: Sphinx :: Extension", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Documentation :: Sphinx", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Documentation", | ||
|
||
] | ||
readme = "README.rst" | ||
dependencies = [ | ||
"sphinx", | ||
] | ||
dynamic = ["version", "description"] | ||
|
||
[project.optional-dependencies] | ||
doc = [] | ||
test = [ | ||
"pytest ==7.*", | ||
"sphinx", | ||
] | ||
|
||
[project.urls] | ||
Home = "https://github.com/atsphinx/{{ cookiecutter.project_basename }}" | ||
|
||
[tool.flit.module] | ||
name = "{{ cookiecutter.package_fullname }}" | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.rye] | ||
managed = true | ||
dev-dependencies = [ | ||
"pytest ==7.*", | ||
] | ||
|
||
[tool.rye.scripts] | ||
setup = {chain = ["setup:sync", "setup:pre-commit"]} | ||
"setup:sync" = "rye sync --no-lock --all-features" | ||
"setup:pre-commit" = "pre-commit install" | ||
doc = "make -C docs" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.flit.sdist] | ||
exclude = [".github", "tests"] | ||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/atsphinx"] | ||
only-includes = ["src/atsphinx"] |