Skip to content

Commit 8cb9a4a

Browse files
committed
Import a __version__ attribute into top-level namespace
1 parent b209c1e commit 8cb9a4a

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish-to-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: python -c "import sys; print(sys.version)"
4242
- name: Install sdist without optional dependencies
4343
run: pip install dist/*.tar.gz
44-
- run: python -c 'import trx.version; print(trx.version.__version__)'
44+
- run: python -c 'import trx; print(trx.__version__)'
4545
- name: Install pytest
4646
run: pip install pytest psutil pytest-console-scripts pytest-cov
4747
- name: Run tests

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232

3333
- name: Install dependencies
3434
run: |
35+
python -c "import trx; print(trx.__version__)"
3536
python -m pip install --upgrade pip
3637
python -m pip install -e .[dev,test]
3738

trx/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ._version import __version__ # noqa: F401

0 commit comments

Comments
 (0)