Skip to main content

A small task runner inspired from npm

Project description

A small task runner inspired from npm.

Features

  • Interface like setuptools.

  • Chain tasks with _pre, _err, _post suffix.

  • A builtin Bump task which can bump version with semver.

Install

pip install pyxcute

Usage

Create a cute.py file

from xcute import cute, Bump

cute(
        test = 'setup check -r',
        bump_pre = 'test',
        bump = Bump('xcute/__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 v{version}'
        ],
        publish = [
                'twine upload dist/*{version}*',
                'git push --follow-tags'
        ],
        install = 'pip install -e .',
        install_err = 'elevate -c -w pip install -e .',
        readme = 'python setup.py --long-description > %temp%/ld && rst2html %temp%/ld %temp%/ld.html && start %temp%/ld.html'
)

Run it

cute <your_command> <options>...

Changelog

  • Version 0.1.0 (Apr 20, 2016)

    • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxcute-0.1.0.zip (6.6 kB view details)

Uploaded Source

Built Distribution

pyxcute-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pyxcute-0.1.0.zip.

File metadata

  • Download URL: pyxcute-0.1.0.zip
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyxcute-0.1.0.zip
Algorithm Hash digest
SHA256 5da21e072aee4a6ae9720480cbee99b2b27b561589c38eb855bcf2a55680630f
MD5 5168d46a650e17262593d572f98b16cb
BLAKE2b-256 981966373df14d49c5711521e9f639fd41135d36f9a4bd3e1e0aa8b25093cc54

See more details on using hashes here.

File details

Details for the file pyxcute-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyxcute-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf283de0673d9d6dafb8b3b78c46ae8e6735c61c8ee5bef4f6e1712ede49a7f
MD5 a53a50e506eb492a91a825e3a1d0f085
BLAKE2b-256 68d4487e7c4bb6a8269168df8fc82fddad2b6a64520761ca4bcd9d12397d3dc8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page