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.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8ebc6ce23a004ef3add9375d3e4865700a5396577370a36fe5e373ecfc2dbb |
|
MD5 | 8106d01a4a11a483f8b172f29b2b4f9a |
|
BLAKE2b-256 | 447678ba534ccdebdedf11837dbacb9b89d9d165b8b94438ff9a7a367153c0e1 |