Skip to content

Commit 2becda9

Browse files
committed
xargproject: resolve requirements.txt path issue
1 parent 949589f commit 2becda9

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ all: build reinstall test
66

77

88
release: all
9-
git tag -a v${VERSION} -m "release v${VERSION}"
10-
git push origin --tags
9+
if [ -n "${VERSION}" ]; then \
10+
git tag -a v${VERSION} -m "release v${VERSION}"; \
11+
git push origin --tags; \
12+
fi
13+
14+
version:
15+
@echo ${VERSION}
1116

1217

1318
clean-cover:

xargproject/project.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ def init_makefile(self):
8686
8787
8888
release: all
89-
git tag -a v${{VERSION}} -m "release v${{VERSION}}"
90-
git push origin --tags
89+
if [ -n "${{VERSION}}" ]; then \\
90+
git tag -a v${{VERSION}} -m "release v${{VERSION}}"; \\
91+
git push origin --tags; \\
92+
fi
93+
94+
version:
95+
@echo ${{VERSION}}
9196
9297
9398
clean-cover:

0 commit comments

Comments
 (0)