-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 811 Bytes
/
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
pkg:
-rm dist/*
python -m build
pypi-test:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pypi:
python3 -m twine upload --verbose dist/*
example:
./obfuscate.sed < autorsync.yaml > autorsync-example.yaml
changelog:
f1=`mktemp`; \
f2=`mktemp`; \
git tag --sort=-committerdate | tee "$$f1" | sed -e 1d > "$$f2"; \
paste "$$f1" "$$f2" | sed -e 's| |...|g' | while read range; do echo; echo "## $$range"; git log '--pretty=format:* %s' "$$range"; done; \
rm "$$f1" "$$f2"
clean:
-rm -rf auto_remote_sync.egg-info dist build autorsync/__pycache__ *dist-info *pyproject-* .pyproject* .package_note*
tgz: clean
cd ..; tar --exclude-vcs -czvf autorsync.tgz autorsync
rpm:
# RPM will be generated in ~/rpmbuild/RPMS/noarch
rpmbuild -ba --build-in-place autorsync.spec