From e2a8514e23aeddaea21d80be3aa60a56bc50f4fa Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Mon, 10 Jul 2023 22:08:50 -0500 Subject: [PATCH] Move dependencies to pyproject.toml --- .gitignore | 2 ++ README.md | 4 ++-- pyproject.toml | 21 +++++++++++++++++++++ requirements.txt | 12 ------------ 4 files changed, 25 insertions(+), 14 deletions(-) delete mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 34de9a1..2ad2279 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *$py.class *.py[cod] +*.egg-info .cache .idea/ .mypy_cache/ @@ -11,6 +12,7 @@ .~* __pycache__/ _build/ +build/ dist/ downloads/ pages/tags/ diff --git a/README.md b/README.md index 78196b2..5e0a579 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ Markdown-based static site generated with [Sphinx](docs.readthedocs.io) and [MyS ## Setup Prerequisites: * python 3.8+ - +* Install dependencies: ```bash -pip install -U -r requirements.txt +pip install -Ue "." ``` ## Usage diff --git a/pyproject.toml b/pyproject.toml index 3418e89..c6a7e37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,24 @@ +[project] +name = 'jwcook.tilde.team' +requires-python = '>=3.8' +version = "0.1.0" +dependencies = [ + 'furo~=2023.5', + 'linkify-it-py>=2.0', + 'myst-parser~=2.0', + 'pre-commit~=3.0', + 'sphinx~=6.2', + 'sphinx-autobuild>=2021.3', + 'sphinx-copybutton>=0.5', + 'sphinx-design>=0.4', + 'sphinx-notfound-page>=0.8', + 'sphinx-tags>=0.2', +] + +# Placeholder to allow installing dependencies as if it were a package +[tool.setuptools] +packages = ['pages'] + [tool.black] skip-string-normalization = true line-length = 100 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c788804..0000000 --- a/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -furo~=2023.5 -linkify-it-py>=2.0 -myst-parser~=2.0 -sphinx~=6.2 -sphinx-autobuild>=2021.3 -sphinx-copybutton>=0.5 -sphinx-design>=0.4 -sphinx-notfound-page>=0.8 -sphinx-tags>=0.2 - -# dev tools; not required for doc builds -pre-commit~=3.0 \ No newline at end of file