From 6af0350c5bf9125958b83ba16b5c8d73d0e0f719 Mon Sep 17 00:00:00 2001 From: Alessio Bogon <778703+youtux@users.noreply.github.com> Date: Fri, 8 Jul 2022 15:57:11 +0200 Subject: [PATCH] Instructions for contributors --- CONTRIBUTING.md | 24 ++++++++++++++++++++++++ RELEASING.md | 15 --------------- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 CONTRIBUTING.md delete mode 100644 RELEASING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..1458552 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,24 @@ +# How to setup development environment +- Install poetry: https://python-poetry.org/docs/#installation +- (Optional) Install pre-commit: https://pre-commit.com/#install +- Run `poetry install` to install dependencies +- Run `pre-commit install` to install pre-commit hooks + +# How to run tests +- Run `poetry run pytest` +- or run `tox` +# How to make a release + +```shell +python -m pip install --upgrade build twine + +# cleanup the ./dist folder +rm -rf ./dist + +# Build the distributions +python -m build + +# Upload them + +twine upload dist/* +``` diff --git a/RELEASING.md b/RELEASING.md deleted file mode 100644 index e0aefe2..0000000 --- a/RELEASING.md +++ /dev/null @@ -1,15 +0,0 @@ -# How to make a release - -```shell -python -m pip install --upgrade build twine - -# cleanup the ./dist folder -rm -rf ./dist - -# Build the distributions -python -m build - -# Upload them - -twine upload dist/* -```