Skip to content

Commit

Permalink
feat(packaging): migrate to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
KSmanis committed Jan 16, 2022
1 parent e7a6554 commit 4d03220
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 76 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ jobs:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools twine wheel
- name: Set up Poetry
uses: abatilo/[email protected]
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py --version
python setup.py sdist bdist_wheel
twine upload dist/*
poetry publish --build --no-interaction
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ repos:
- id: mypy
additional_dependencies:
- types-click
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
Expand Down
Loading

0 comments on commit 4d03220

Please sign in to comment.