Skip to content

Commit

Permalink
Make EvaP pip-installable and publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Nov 4, 2024
1 parent 47df40e commit 42caee8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: EvaP Release

on:
pull_request:
# release:
# types: [published]

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: |
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ TAGS

# python files
*.py[cod]
dist/

# gettext binaries
*.mo
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tool.poetry]
package-mode = false
name = "evap"
description = "EvaP"
authors = [ "EvaP Developers" ]
version = "2024.11.0"
readme = "README.md"
packages = [{include = "evap"}]

Expand Down

0 comments on commit 42caee8

Please sign in to comment.