Skip to content

Commit 2f7332d

Browse files
authored
Install Package we are testing (#14)
* Install Package we are testing * Update setup.py
1 parent 58640ac commit 2f7332d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
python -m site
2929
python -m pip install --upgrade pip setuptools wheel
3030
python -m pip install -r dev-requirements.txt
31+
- name: Install Package
32+
run: |
33+
python -m pip install .
3134
- name: Run Tests for ${{ matrix.python-version }}
3235
run: |
3336
python -m pytest -vv

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
# This will fail if something happens or if not in a git repository.
55
# This is intentional.
6-
ret = subprocess.run("git describe --tags --abbrev=0", stdout=subprocess.PIPE,
7-
stderr=subprocess.PIPE, check=True, shell=True)
8-
version = ret.stdout.decode("utf-8").strip()
6+
try:
7+
ret = subprocess.run("git describe --tags --abbrev=0", stdout=subprocess.PIPE,
8+
stderr=subprocess.PIPE, check=True, shell=True)
9+
version = ret.stdout.decode("utf-8").strip()
10+
except:
11+
version = "master"
912

1013
with open("README.md", 'r', encoding="utf-8") as readme:
1114
long_description = readme.read()

0 commit comments

Comments
 (0)