This repository was archived by the owner on Oct 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.49 KB
/
Makefile
File metadata and controls
43 lines (33 loc) · 1.49 KB
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
.PHONY: release install files test docs prepare publish
all:
@echo "make release - prepares a release and publishes it"
@echo "make dev - prepares a development environment (includes tests)"
@echo "make instdev - prepares a development environment (no tests)"
@echo "make install - install on local system"
@echo "make files - update changelog and todo files"
@echo "make test - run tox"
@echo "make docs - build docs"
@echo "prepare - prepare module for release (CURRENTLY IRRELEVANT)"
@echo "make publish - upload to pypi"
release: files docs publish
dev: instdev test
instdev:
pip install -rdev-requirements.txt
python setup.py develop
install:
python setup.py install
files:
grep '# TODO' -rn * --exclude-dir=docs --exclude-dir=build --exclude=TODO.md | sed 's/: \+#/: # /g;s/:#/: # /g' | sed -e 's/^/- /' | grep -v Makefile > TODO.md
git log --oneline --decorate --color > CHANGELOG
test:
@install -d var
@echo "Looking up latest Amazon Linux AMI"
aws ec2 describe-images --owners amazon --filters 'Name=virtualization-type,Values=hvm' 'Name=root-device-type,Values=ebs' 'Name=architecture,Values=x86_64' 'Name=is-public,Values=true' 'Name=name,Values=amzn-ami-hvm-*-gp2' --query 'Images[*].{aws_source_ami:ImageId,created:CreationDate,description:Description}' |jq 'sort_by(.created)[-1]' |tee var/amazon-linux.json
pip install tox==1.7.1
tox
docs:
pandoc README.md -f markdown -t rst -s -o README.rst
prepare:
python scripts/make-release.py
publish:
python setup.py sdist upload