Skip to content

Commit

Permalink
Add publish script.
Browse files Browse the repository at this point in the history
  • Loading branch information
MylesBartlett committed Nov 12, 2024
1 parent e871f40 commit c2f9971
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -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}"
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "serox"
version = "0.1.0"
version = "0.1.2"
description = "Serpentine Oxidation: Rusty abstractions for Python."
keywords = [
"iterators",
Expand All @@ -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"
Expand Down
12 changes: 12 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2f9971

Please sign in to comment.