Skip to content

Commit

Permalink
fix: version for building in dev and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmin801 committed Nov 30, 2024
1 parent 61c979a commit 9a2ec2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:

- name: Update version in __init__.py
run: |
sed '/__version__ =/d' src/toposolve/__init__.py > src/toposolve/__init__.py.tmp
mv src/toposolve/__init__.py.tmp src/toposolve/__init__.py
echo "__version__ = \"$VERSION\"" >> src/toposolve/__init__.py
shell: bash

Expand Down Expand Up @@ -73,6 +75,8 @@ jobs:

- name: Update version in __init__.py
run: |
sed '/__version__ =/d' src/toposolve/__init__.py > src/toposolve/__init__.py.tmp
mv src/toposolve/__init__.py.tmp src/toposolve/__init__.py
echo "__version__ = \"$VERSION\"" >> src/toposolve/__init__.py
- name: Install build
Expand Down
2 changes: 2 additions & 0 deletions src/toposolve/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from ._toposolve import TSPSolver

__all__ = ["TSPSolver"]

__version__ = "0.1.16.dev0"

0 comments on commit 9a2ec2f

Please sign in to comment.