Skip to content

Commit eb02494

Browse files
committed
fixes
1 parent ed03daa commit eb02494

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ jobs:
88
name: 'Test the code'
99
strategy:
1010
matrix:
11-
python-version: ['3.8', '3.10']
11+
python-version: ['3.8', '3.10', '3.12']
1212
os: ['ubuntu-latest', 'windows-latest']
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1719
- name: Python setup
1820
uses: actions/setup-python@v4
1921
with:
@@ -22,7 +24,6 @@ jobs:
2224
- name: Dependencies
2325
run: |
2426
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
2627
pip install pytest
2728
pip install pylint
2829
pip install pytest-cov

py/minimint/_version.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
try:
2+
from importlib.metadata import version
3+
except ImportError:
4+
# Python < 3.8
5+
from importlib_metadata import version
6+
7+
try:
8+
__version__ = version("minimint")
9+
except Exception:
10+
# Fallback for development installs
11+
__version__ = "unknown"
12+
13+
# For backward compatibility
14+
version = __version__

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)