Skip to content

Commit 958d9af

Browse files
committed
Fix exec system call for cardano-node
1 parent fd2f755 commit 958d9af

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jobs:
3535
# Build the distribution
3636
- name: Build distribution
3737
run: |
38-
CURRENT_TAG=$(git describe --tags --abbrev=0)
39-
VERSION=${CURRENT_TAG#v} # Remove 'v' from the tag
38+
# Extract the tag from github.ref (e.g., refs/tags/v1.2.3)
39+
CURRENT_TAG="${{ github.ref }}"
40+
VERSION=${CURRENT_TAG#refs/tags/v} # Remove 'refs/tags/v' from the tag
4041
sed -i "s/version=\"[^\"]*\"/version=\"$VERSION\"/" setup.py
4142
python setup.py sdist bdist_wheel
4243
4344
# Upload the distribution to PyPI
4445
- name: Upload to PyPI
4546
run: |
46-
twine upload dist/*
47+
twine upload dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='adaup',
6-
version='0.1.3',
6+
version='0.1.4',
77
packages=find_packages(where='src'),
88
package_dir={'': 'src'},
99
install_requires=[

src/adaup/commands/cardano_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ def start(node_version="10.4.1", network="mainnet"):
5656
]
5757
[print(x) for x in cmd]
5858
# Replace the current process with the Cardano node command
59-
exec(cmd)
59+
os.execv(cmd[0], cmd)

0 commit comments

Comments
 (0)