Skip to content

Commit

Permalink
pyproject.toml: use git tags for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarrison committed Nov 7, 2024
1 parent 9cab9e4 commit c3f5e22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Dist

on: [push, release] # TODO: change to just release
on: [release]

jobs:
build:
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
cd tests/test_ssh
./run.sh
- name: Test wheels
- name: Test sdist
run: |
uv venv --no-project testsdist
. testsdist/bin/activate
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "disbatch"
version = "3.0.0rc1" # TODO dynamic
description = "Dynamically distribute a list of tasks over a pool of compute resources"
readme = "Readme.md"
authors = [
Expand All @@ -10,18 +9,22 @@ authors = [
requires-python = ">=3.9"
dependencies = []
license = { file = "LICENSE" }
dynamic = ["version"]

[project.scripts]
disBatch = "disbatch:main"
disbatch = "disbatch:main"

[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.ruff.format]
quote-style = "single"

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

[dependency-groups]
dev = [
"pre-commit>=4.0.1",
Expand Down

0 comments on commit c3f5e22

Please sign in to comment.