Skip to content

Commit

Permalink
Move dev deps back to requirements files (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Aug 28, 2023
1 parent 145e332 commit b0cd183
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip build
python -m pip install .[docs]
python -m pip install -r requirements/docs.txt
- name: Deploy documents
run: |
git config user.name ${{ secrets.GH_USER }}
Expand Down
35 changes: 4 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,6 @@ extra = [
"Pygments>=2.12"
]

dev = [
"build",
"tox"
]

docs = [
"mkdocs_pymdownx_material_extras>=2.1",
"pymdown_lexers @ git+https://github.com/facelessuser/pymdown-lexers.git",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-minify-plugin",
"pyspelling"
]

lint = [
"ruff"
]

test = [
"PyYAML>=3.10",
"pytest",
"pytest-cov",
"coverage"
]

tools = [
"requests"
]

[tool.hatch.build.targets.sdist]
include = [
"/docs/src/markdown/**/*.md",
Expand All @@ -81,6 +53,7 @@ include = [
"/docs/theme/**/*.html",
"/docs/theme/**/*.css.map",
"/docs/theme/**/*.js.map",
"/requirements/*.txt",
"/pymdownx/**/*.py",
"/tests/**/*.txt",
"/tests/**/*.py",
Expand Down Expand Up @@ -159,7 +132,7 @@ legacy_tox_ini = """
passenv = LANG
deps=
.[extra]
.[test]
-r requirements/test.txt
commands=
{envbindir}/py.test --cov pymdownx --cov-append {toxinidir}
{envbindir}/coverage html -d {envtmpdir}/coverage
Expand All @@ -168,7 +141,7 @@ legacy_tox_ini = """
[testenv:documents]
deps=
.[docs]
-r requirements/docs.txt
.[extra]
commands=
{envpython} -m pip install .
Expand All @@ -177,7 +150,7 @@ legacy_tox_ini = """
[testenv:lint]
deps=
.[lint]
-r requirements/lint.txt
commands=
{envbindir}/ruff check {toxinidir}
Expand Down
2 changes: 2 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
tox
5 changes: 5 additions & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mkdocs_pymdownx_material_extras>=2.1
pymdown_lexers @ git+https://github.com/facelessuser/pymdown-lexers.git
mkdocs-git-revision-date-localized-plugin
mkdocs-minify-plugin
pyspelling
1 change: 1 addition & 0 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruff
4 changes: 4 additions & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PyYAML>=3.10
pytest
pytest-cov
coverage
1 change: 1 addition & 0 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests

0 comments on commit b0cd183

Please sign in to comment.