forked from rawlins/svgling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 898 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
SHELL:=/bin/bash
FORCE:
demotree.svg: FORCE
python -m svgling '("S", ("NP", ("D", "the"), ("N", "elephant")), ("VP", ("V", "saw"), ("NP", ("D", "the"), ("N", "rhinoceros"))))' > demotree.svg
clean:
rm -rf dist/ build/ svgling.egg-info/ test_env/
dist: setup.py svgling/ svgling/__init__.py svgling/core.py
python setup.py sdist bdist_wheel
@echo -e "\\nDid you remember to increment versions, and tag?"
test-upload:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
check-upload:
@echo -n "This can't be undone, are you really ready to upload? [y/N] " && read ans && [ $${ans:-N} == y ]
upload: check-upload
twine upload dist/*
test_env:
python -m venv test_env
source test_env/bin/activate && pip install --upgrade pip
test_install: test_env
source test_env/bin/activate && pip install svgwrite && pip install --index-url https://test.pypi.org/simple/ svgling