# As a workaround to [1], we will use a makefile instead # [1]: https://github.com/python-poetry/poetry/issues/241 .PHONY: install test xmeta-demo lint test: # run tests @poetry run mamba --format=documentation ./spec @poetry run ./spec/cli_spec.sh lint: # run lint @poetry run pylint ./spec ./pdfxmeta ./pdftocgen ./fitzutils ./pdftocio xmeta-demo: # a demo of pdfxmeta @poetry run pdfxmeta ./spec/files/level2.pdf "Section" tocgen-demo: # a demo of tocgen @poetry run pdftocgen ./spec/files/level2.pdf < ./recipes/default_latex.toml install: # set up non-dev dependencies poetry install --no-dev dev: # set up dev dependencies poetry install publish: test # publish package to pypi poetry publish --build