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
File details
Details for the file pyproject-script-0.0.0a0.tar.gz
.
File metadata
- Download URL: pyproject-script-0.0.0a0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161b1f7244661e00c2952853e737c76504523a39752898d2b3bf400049089090 |
|
MD5 | 58414f9e734cd7265f3762b232e853cb |
|
BLAKE2b-256 | d52dd40bf8ccffe3e6993786eeaa91261ee5d6b5dc98f037432468505d6af2d1 |
File details
Details for the file pyproject_script-0.0.0a0-py3-none-any.whl
.
File metadata
- Download URL: pyproject_script-0.0.0a0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e0f9290d362660726fb97bb077ae9769f8320cc102dfa64fcae2f359cfd9ba |
|
MD5 | cdb77805081d7a184ecd67f7b2ca1b4b |
|
BLAKE2b-256 | 9ca0a7d6251dfae17d8b8b3f90baad39436df1dc3eecbdf50f4d73c531d11ca2 |