2013-05-04 22:34:41 +02:00
|
|
|
sdist: doc
|
|
|
|
python setup.py sdist
|
|
|
|
|
2016-08-29 00:22:03 +02:00
|
|
|
bdist_wheel: doc
|
|
|
|
python setup.py bdist_wheel
|
|
|
|
|
2013-05-04 22:26:36 +02:00
|
|
|
clean: doc-clean
|
|
|
|
@echo Removing binary files...
|
2013-05-04 22:54:43 +02:00
|
|
|
@rm -f `find feedgen -name '*.pyc'`
|
|
|
|
@rm -f `find feedgen -name '*.pyo'`
|
2016-08-29 00:22:03 +02:00
|
|
|
@rm -rf feedgen.egg-info/ build/
|
2013-05-04 22:34:41 +02:00
|
|
|
@echo Removing source distribution files...
|
|
|
|
@rm -rf dist/
|
2013-07-22 00:40:36 +02:00
|
|
|
@rm -f MANIFEST
|
2014-07-21 00:40:50 +02:00
|
|
|
@rm -f tmp_Atomfeed.xml tmp_Rssfeed.xml
|
2013-05-04 22:26:36 +02:00
|
|
|
|
2016-08-29 00:22:03 +02:00
|
|
|
doc: doc-clean doc-html doc-man
|
2013-05-04 22:26:36 +02:00
|
|
|
|
|
|
|
doc-clean:
|
|
|
|
@echo Removing docs...
|
|
|
|
@make -C doc clean
|
|
|
|
@rm -rf docs
|
|
|
|
|
|
|
|
doc-html:
|
|
|
|
@echo 'Generating HTML'
|
|
|
|
@make -C doc html
|
|
|
|
@mkdir -p docs/html
|
|
|
|
@echo 'Copying html to into docs dir'
|
|
|
|
@cp doc/_build/html/*.html docs/html/
|
|
|
|
@cp doc/_build/html/*.js docs/html/
|
|
|
|
@cp -r doc/_build/html/_static/ docs/html/
|
2013-05-05 23:27:43 +02:00
|
|
|
@cp -r doc/_build/html/ext/ docs/html/
|
2013-05-04 22:26:36 +02:00
|
|
|
|
|
|
|
doc-man:
|
|
|
|
@echo 'Generating manpage'
|
|
|
|
@make -C doc man
|
|
|
|
@mkdir -p docs/man
|
|
|
|
@echo 'Copying manpage to into docs dir'
|
|
|
|
@cp doc/_build/man/*.1 docs/man/
|
|
|
|
|
|
|
|
doc-latexpdf:
|
|
|
|
@echo 'Generating pdf'
|
|
|
|
@make -C doc latexpdf
|
|
|
|
@mkdir -p docs/pdf
|
|
|
|
@echo 'Copying pdf to into docs dir'
|
|
|
|
@cp doc/_build/latex/*.pdf docs/pdf/
|
2013-05-05 23:27:43 +02:00
|
|
|
|
2016-08-29 00:22:03 +02:00
|
|
|
publish:
|
|
|
|
twine upload dist/*
|
2016-06-02 04:20:28 +02:00
|
|
|
|
2014-07-20 22:55:25 +02:00
|
|
|
test:
|
2017-03-13 20:53:04 +01:00
|
|
|
coverage run --source=feedgen -m unittest discover -s tests
|
2016-12-21 02:04:24 +01:00
|
|
|
flake8 $$(find setup.py tests feedgen -name '*.py')
|
2020-01-28 17:50:53 +01:00
|
|
|
bandit -r feedgen
|