File size: 749 Bytes
046e3b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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