forked from lkiesow/python-feedgen
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
55 lines (45 loc) · 1.21 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Modified work Copyright 2020, Thorben Dahl <[email protected]>
# See license.* for more details
sdist:
python setup.py sdist
wheel:
python setup.py bdist_wheel --universal
clean: doc-clean
@echo Removing binary files...
@rm -f `find podgen -name '*.pyc'`
@rm -f `find podgen -name '*.pyo'`
@echo Removing source distribution files...
@rm -rf dist/
@rm -f MANIFEST
doc: doc-clean doc-html
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 -T -r doc/_build/html/ docs/html/
# Not supported
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/
# Not supported
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/
publish: sdist wheel
twine upload dist/*
test:
@python -m unittest podgen.tests.test_podcast podgen.tests.test_episode \
podgen.tests.test_person podgen.tests.test_media \
podgen.tests.test_util podgen.tests.test_category
python -m podgen rss > /dev/null