Skip to content

Commit

Permalink
move dev dependencies to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Oct 13, 2023
1 parent 821bf10 commit 2f61336
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
8 changes: 8 additions & 0 deletions Makefile.pyproject
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
YEAR=`date +%Y`
MONTH=`date +%m`

# Python-specific targets

.PHONY: clean_py
clean_py: clean-venv
Expand Down Expand Up @@ -116,3 +117,10 @@ release: typecheck_py lint_py test version_py


include Makefile.venv

## Patch venv to install from pyproject.toml

venv: | $(VENV)/$(MARKER)-dev
$(VENV)/$(MARKER)-dev: $(VENV)/$(MARKER)
$(VENV)/pip install -e .[dev]
touch $@
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ classifiers = [
"License :: OSI Approved :: MIT License"
]
dependencies = [
"importlib_resources",
"Jinja2 >= 3.1.2",
"markdown >= 3.4.4",
"MarkupSafe >= 2.1.3",
"netaddr >= 0.9.0",
"thor >= 0.9.6",
"markdown >= 2.6.5",
"netaddr >= 0.7.19",
"Jinja2 >= 2.11.1",
"typing-extensions >= 4.3.0",
"MarkupSafe",
"importlib_resources"
"typing-extensions >= 4.8.0",
]

[project.urls]
homepage = "https://redbot.org/project/"

[project.optional-dependencies]
systemd = ["cysystemd"]
dev = ["mypy", "playwright", "black", "pytest", "pytest-md", "validate-pyproject"]
dev = ["mypy", "black", "pylint", "pytest", "pytest-md", "validate-pyproject", "build",
"playwright", "types-Markdown"]


[project.scripts]
redbot = "redbot.cli:main"
Expand Down
16 changes: 0 additions & 16 deletions requirements.txt

This file was deleted.

0 comments on commit 2f61336

Please sign in to comment.