Skip to content

Commit

Permalink
use alpha version and support variable in pre-release step
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenAlbert committed Jan 20, 2025
1 parent b7f14c0 commit a336622
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
alias b := build
alias t := test
version := '1.0.0a1'
pre-push: lint test
@echo "All checks passed"
build:
Expand Down Expand Up @@ -28,9 +29,9 @@ open-cov: cov
open htmlcov/index.html
open-cov-full: cov-full
open htmlcov/index.html
pre-release: build
pre-release version=version: build
uv venv -p python3.10 .venv-ci
echo "dist/model_lib-1.0.0+rc1-py3-none-any.whl[toml]" > .venv-ci/requirements.txt
echo "dist/model_lib-{{version}}-py3-none-any.whl[toml]" > .venv-ci/requirements.txt
uv pip sync --python .venv-ci/bin/python .venv-ci/requirements.txt
uv pip install --python .venv-ci/bin/python -r .venv-ci/requirements.txt
.venv-ci/bin/python scripts/model_lib_pre_release.py
Expand Down
13 changes: 12 additions & 1 deletion model-lib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
[project]
name = "model-lib"
version = "1.0.0+rc1"
version = "1.0.0a1"
requires-python = ">=3.10"
dependencies = [
"pydantic~=2.10.4",
"pydantic-settings~=2.7.1",
"pyyaml>=6.0.2",
"zero-3rdparty",
]
readme = "readme.md"
license = "MIT"
keywords = []
authors = [{ name = "EspenAlbert", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.optional-dependencies]
toml = ["pydantic~=2.10.4", "pydantic-settings~=2.7.1", "tomli-w~=1.1.0", "zero-3rdparty"]
Expand Down
13 changes: 12 additions & 1 deletion zero-3rdparty/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
[project]
name = "zero-3rdparty"
version = "1.0.0+rc1"
version = "1.0.0a1"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
readme = "readme.md"
license = "MIT"
keywords = []
authors = [{ name = "EspenAlbert", email = "[email protected]" }]

[build-system]
requires = ["hatchling"]
Expand Down

0 comments on commit a336622

Please sign in to comment.