diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..5c81504c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,34 @@ +name: Publish to PyPi +on: + push: + # branches: [main] + + + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Install pypa/build + run: + - python -m pip install poetry + - poetry build + + publish: + name: Publish to PyPI + runs-on: ubuntu-latest + permissions: + id-token: write + environment: publish + steps: + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + with: + repository-url: https://test.pypi.org/legacy/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..d103fffc --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,39 @@ +i## Unreleased + +## v0.1.2 (2022-12-11) + +### Fix + +- updated executing + +## v0.1.1 (2022-12-08) + +### Fix + +- fixed typo in pytest plugin name + +## v0.1.0 (2022-07-25) + +### Feat + +- return make snapshot() a noop for normal test runs +- Readme +- Readme +- implemented pytest options +- improved pytest integartion +- test replacement +- comparison works +- Snapshot class +- init + +### Fix + +- disable assertion rewriting + +### Refactor + +- switched to poetry +- removed UsageError and fixed python 3.7 support +- changed snapshot fixing +- created inline_snapshot package +- created inline_snapshot package diff --git a/pyproject.toml b/pyproject.toml index 0d5b5d1a..5066287b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,16 @@ build-backend = "poetry.core.masonry.api" requires = ["poetry-core>=1.0.0"] +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "v$version" +update_changelog_on_bump = true +version = "0.1.2" +version_files = [ + "pyproject.toml:version", + "inline_snapshot/__init__.py:version" +] + [tool.poetry] authors = ["Frank Hoffmann <15r10nk@polarbit.de>"] classifiers = [