diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..59ec0de --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,8 @@ +[bumpversion] +current_version = 0.1.2 +commit = True +tag = True + +[bumpversion:file:pyproject.toml] +search = version = "{current_version}" +replace = version = "{new_version}" diff --git a/pyproject.toml b/pyproject.toml index 91cbbaa..7cdeb7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "serox" -version = "0.1.0" +version = "0.1.2" description = "Serpentine Oxidation: Rusty abstractions for Python." keywords = [ "iterators", @@ -24,6 +24,7 @@ dependencies = [ "numpy>=1.26.3", "joblib>=1.4.2", "typing-extensions>=4.12.2", + "bump2version>=1.0.1", ] readme = "README.md" requires-python = ">= 3.12" diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 0000000..f3245d8 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# Configure to exit on error +set -e + +# Increment version based on argument (major | minor | patch) +rye run bump2version $1 + +# Build the package +rye build + +# Publish to PyPI +rye publish diff --git a/uv.lock b/uv.lock index ac9e1a6..fc65ddd 100644 --- a/uv.lock +++ b/uv.lock @@ -13,6 +13,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/20/f7/97af385e43208d600f892da1b8c94f35d4e9165d5c774013bb202617dd7d/basedpyright-1.21.0-py3-none-any.whl", hash = "sha256:48902c476d6301c556df6eeae9acf1e34b176b14f8702ad5c770f4e6a747018a", size = 11148428 }, ] +[[package]] +name = "bump2version" +version = "1.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/29/2a/688aca6eeebfe8941235be53f4da780c6edee05dbbea5d7abaa3aab6fad2/bump2version-1.0.1.tar.gz", hash = "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6", size = 36236 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/e3/fa60c47d7c344533142eb3af0b73234ef8ea3fb2da742ab976b947e717df/bump2version-1.0.1-py2.py3-none-any.whl", hash = "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410", size = 22030 }, +] + [[package]] name = "cfgv" version = "3.4.0" @@ -345,6 +354,7 @@ name = "serox" version = "0.1.0" source = { editable = "." } dependencies = [ + { name = "bump2version" }, { name = "joblib" }, { name = "numpy" }, { name = "typing-extensions" }, @@ -363,6 +373,7 @@ dev = [ [package.metadata] requires-dist = [ + { name = "bump2version", specifier = ">=1.0.1" }, { name = "joblib", specifier = ">=1.4.2" }, { name = "numpy", specifier = ">=1.26.3" }, { name = "typing-extensions", specifier = ">=4.12.2" },