Skip to main content

No project description provided

Project description

PyProject Script

Code style: black codecov Build

Overview

PyProject Script is a very simple development tool intended to be used with pyproject.toml configuration files. The intention is to provide an interface for running scripts within a local development workflow.

# in your pyproject.toml
[tool.pyscript]
tests = "path.to.my.tests.script:entrypoint_callable"

Running pyscript tests after installing pyscript will import the path.to.my.tests.script module and will call entrypoint_callable callable.

This works in much the same way as poetry's poetry run command without actually including those scripts in your project build.

NOTE: This is an alpha release. Use it your own risk.

Installation

pip install pyproject-script

or if you're using poetry

poetry add -D pyproject-script

Local Development

Pyenv

It's recommended that you use pyenv

pyenv-installer

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

Install poetry

This project uses poetry. Install it using the following command.

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

More instructions here

Install the dependencies:

poetry install

Install pre-commit hooks:

poetry run pre-commit install

Running Tests:

poetry run pyscript tests

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

pyproject-script-0.0.0a1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pyproject_script-0.0.0a1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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