Skip to content

Commit

Permalink
Adds release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
gremid committed Nov 20, 2024
1 parent b1eade1 commit 4f1e980
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- feature/python-lib

permissions:
contents: write
pull-requests: write

name: Release Please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RP_TOKEN }}
release-type: python
target-branch: ${{ github.ref_name }}
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on: [push]
on:
push:

name: Test

Expand Down
5 changes: 2 additions & 3 deletions dwdsmor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
__version__ = "1.0.0"

from .automaton import Automata
from .version import __version__

__all__ = ["Automata"]
__all__ = ["Automata", "__version__"]
1 change: 1 addition & 0 deletions dwdsmor/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.0"
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"

[project]
name = "dwdsmor"
version = "1.0.0"
description = "SFST/SMOR/DWDS-based German morphology"
authors = [
{name = "Andreas Nolda", email = "[email protected]"},
Expand All @@ -20,8 +19,9 @@ classifiers = [
"Topic :: Text Processing :: Linguistic"
]
requires-python = ">=3.9"
dynamic = ["readme"]
dynamic = ["readme", "version"]
dependencies = [
"huggingface_hub[cli]",
"python-dotenv",
"sfst-transduce",
"tabulate",
Expand Down Expand Up @@ -69,6 +69,7 @@ testpaths = [ "test"]

[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
version = {attr = "dwdsmor.version.__version__"}

[tool.setuptools.packages.find]
exclude = ["test"]

0 comments on commit 4f1e980

Please sign in to comment.