forked from eight04/pyAPNG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcute.py
33 lines (29 loc) · 978 Bytes
/
cute.py
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
#! python3
from xcute import cute, conf, Exc, Bump, Version
conf["proj_name"] = "apng"
Version('{proj_name}/__init__.py')()
cute(
test = 'readme_build',
bump_pre = 'test',
bump = Bump("{proj_name}/__init__.py"),
bump_post = ['dist', 'release', 'publish', 'install'],
dist = 'python setup.py sdist bdist_wheel',
release = [
'git add .',
'git commit -m "Release v{version}"',
'git tag -a v{version} -m "Release v{version}"'
],
publish = [
'twine upload dist/*{version}[.-]*',
'git push --follow-tags'
],
publish_err = 'start https://pypi.python.org/pypi/{proj_name}/',
install = 'pip install -e .',
install_err = 'elevate -c -w pip install -e .',
readme_build = 'python setup.py --long-description > %temp%/ld && rst2html --no-raw --exit-status=1 --verbose %temp%/ld %temp%/ld.html',
readme_build_err = ['readme_show', Exc()],
readme_show = 'start %temp%/ld.html',
readme = 'readme_build',
readme_post = 'readme_show',
version = 'echo {version}'
)