Example #1
0
#! python3

from xcute import cute, LiveReload

cute(pkg_name="node_vm2",
     lint=['cd node_vm2/vm-server && npm test && cd ..', 'pylint {pkg_name}'],
     test=['lint', 'python test.py', 'readme_build'],
     bump_pre='test',
     bump_post=['dist', 'release', 'publish', 'install'],
     dist_pre='x-clean build dist',
     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/*', 'git push --follow-tags'],
     publish_err='start https://pypi.python.org/pypi/{pkg_name}/',
     install='pip install -e .',
     readme_build=[
         'python setup.py --long-description | x-pipe build/readme/index.rst',
         'rst2html5.py --no-raw --exit-status=1 --verbose '
         'build/readme/index.rst build/readme/index.html'
     ],
     readme_pre="readme_build",
     readme=LiveReload("README.rst", "readme_build", "build/readme"),
     doc_build="sphinx-build docs build/docs",
     doc_pre="doc_build",
     doc=LiveReload(["{pkg_name}", "docs"], "doc_build", "build/docs"))
Example #2
0
#! python3

from xcute import cute, LiveReload

cute(
	pkg_name = "ptt_article_parser",
	test = ["pylint {pkg_name}", 'readme_build'],
	bump_pre = 'test',
	bump_post = ['dist', 'release', 'publish', 'install'],
	dist = 'x-clean build 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/*',
		'git push --follow-tags'
	],
	install = 'pip install -e .',
	readme_build = [
        'python setup.py --long-description | x-pipe build/readme/index.rst',
        ('rst2html5.py --no-raw --exit-status=1 --verbose '
         'build/readme/index.rst build/readme/index.html')
    ],
    readme_pre = "readme_build",
    readme = LiveReload("README.rst", "readme_build", "build/readme")
)