Skip to main content

Python for shell scripting

Project description

run.yml

# py-shell-runner is an npm like run configuration and shell scripting package.
# you can define your commands in a run.yml file and simply run with the run
# command, like `run build`, `run clean`, etc.
#
#       ______   __    __  _______
#      /      \ /  |  /  |/       \
#     /$$$$$$  |$$ |  $$ |$$$$$$$  |
#     $$ |  $$/ $$ |  $$ |$$ |  $$ |
#     $$ |      $$ \__$$ |$$ |  $$ |
#     $$ |      $$    $$/ $$ |  $$ |
#     $$/        $$$$$$/  $$/   $$/
#
#
# Getting started:
#
#   # Install with any of the bellow command.
#   .---------------------------------------.
#   | uv add py-shell-runner                |
#   | pip install py-shell-runner           |
#   '---------------------------------------'
#
#   # Create a `run.yml` file in your project root
#     run --init
#
#   # Run the commands defined in `run.yml`
#     run build
#

commands:

  push:
      - desc: Commit and push changes
      - throw: true
      - pytest
      - git add .
      - git commit
      - git push


  publish:
      desc: Build and publish the package
      ensure_env:
          - UV_PUBLISH_TOKEN
      cmd:
          - rm -r dist
          - throw: true
          - pytest
          - uv build
          - uv publish


  clean:
      - desc: Clean up build artifacts
      - rm -r dist
      - rm -r src/py_shell_runner.egg-info

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

py_shell_runner-0.1.0.dev5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_shell_runner-0.1.0.dev5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file py_shell_runner-0.1.0.dev5.tar.gz.

File metadata

File hashes

Hashes for py_shell_runner-0.1.0.dev5.tar.gz
Algorithm Hash digest
SHA256 48ce6347bdd56f17362644714cd7aca4bbd87883e7df9a8937e68fbae7d64112
MD5 f6a6325c505094af0702bdbef07a27e3
BLAKE2b-256 06ed717a9067008523653ea45b0dbfab4830b4d76816489ef78d5bfe6348d1e7

See more details on using hashes here.

File details

Details for the file py_shell_runner-0.1.0.dev5-py3-none-any.whl.

File metadata

File hashes

Hashes for py_shell_runner-0.1.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 a0748a3b5ce7d345c49bf15b3d02da11e5ee5518c02a2cbdf2d28ff664f0eaf0
MD5 a71323be750f03333ad0e2b78848ae81
BLAKE2b-256 54601cc9c71530d97103070ba2c323e11c8ee9c8b4c81b208d38e29845c65c10

See more details on using hashes here.

Supported by

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