Skip to content

Commit

Permalink
Merge pull request #246 from jacebrowning/export-with-poetry
Browse files Browse the repository at this point in the history
Use Poetry to export docs requirements
  • Loading branch information
jacebrowning committed Jan 27, 2021
2 parents 67486dc + 85c12b2 commit 948dfa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ $(MKDOCS_INDEX): docs/requirements.txt mkdocs.yml docs/*.md
poetry run mkdocs build --clean --strict

docs/requirements.txt: poetry.lock
@ poetry run pip list --format=freeze | grep mkdocs > $@
@ poetry run pip list --format=freeze | grep Pygments >> $@
poetry export --dev --without-hashes | grep mkdocs > $@
poetry export --dev --without-hashes | grep pygments >> $@

.PHONY: uml
uml: install docs/*.png
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs==1.0.4
Pygments==2.7.3
mkdocs==1.0.4; (python_full_version >= "2.7.9" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")
pygments==2.7.3; python_version >= "3.5"

0 comments on commit 948dfa8

Please sign in to comment.