Skip to content

Commit

Permalink
Set PyPI name (#24)
Browse files Browse the repository at this point in the history
* Set PyPI name

* simplify pre-commit

* Switch to dynamic versioning
  • Loading branch information
grst authored Oct 1, 2024
1 parent 66fdf8b commit b15703c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: "DSO lint"
on:
push:
branches: [main]
pull_request:
branches: [main]

name: pre-commit

jobs:
pre_commit:
name: "pre-commit"
pre-commit:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"

- uses: pre-commit/[email protected]

- uses: stefanzweifel/git-auto-commit-action@v5
if: '!cancelled()'
with:
commit_message: pre-commit autofixes
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dso # TODO update once settled on a name
url: https://pypi.org/p/dso-cli
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
requires = [ "hatchling", "hatch-vcs" ]

[project]
name = "dso"
version = "0.8.2"
dynamic = ["version"]
description = "Data Science Operations on top of dvc"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down Expand Up @@ -68,6 +68,9 @@ urls.Source = "https://github.com/Boehringer-Ingelheim/dso"
scripts.dso = "dso:cli"
scripts.dso_pandocfilter = "dso.pandocfilter:main"

[tool.hatch.version]
source = "vcs"

[tool.ruff]
line-length = 120
src = [ "src" ]
Expand Down

0 comments on commit b15703c

Please sign in to comment.