No project description provided
Project description
PyProject Script
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyproject_script-0.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e0f9290d362660726fb97bb077ae9769f8320cc102dfa64fcae2f359cfd9ba |
|
MD5 | cdb77805081d7a184ecd67f7b2ca1b4b |
|
BLAKE2b-256 | 9ca0a7d6251dfae17d8b8b3f90baad39436df1dc3eecbdf50f4d73c531d11ca2 |