Skip to content

Commit 054d233

Browse files
committed
Merge pull request #63 from devitocodes/versioneer
update versioneer
2 parents 16fedf2 + b1ec0ac commit 054d233

6 files changed

Lines changed: 1072 additions & 444 deletions

File tree

.github/workflows/pytest-linux.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,35 @@ on:
99
jobs:
1010
Build-linux:
1111
runs-on: ${{ matrix.os }}
12+
env:
13+
CC: gcc-9
14+
1215
strategy:
1316
matrix:
1417
os: [ubuntu-20.04, ubuntu-latest]
1518
python-version: [3.8, 3.x]
1619

1720
steps:
18-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
22+
1923
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v5
2125
with:
2226
python-version: ${{ matrix.python-version }}
27+
2328
- name: Install dependencies
2429
run: |
25-
python -m pip install --upgrade pip
26-
python -m pip install pytest numpy
27-
pip install -e .[compression]
30+
python3 -m pip install --upgrade pip
31+
python3 -m pip install --upgrade importlib_metadata pytest numpy
32+
python3 -m pip install -e .[compression]
2833
env:
2934
PYTHONPATH: $PWD
35+
3036
- name: Run examples
3137
run: |
32-
python examples/use_classic.py
33-
python examples/use_modernised.py
38+
python3 examples/use_classic.py
39+
python3 examples/use_modernised.py
40+
3441
- name: Test with pytest
3542
run: py.test -vs tests
3643

.github/workflows/pytest-macOS.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,25 @@ jobs:
1414
python-version: [3.6-dev, 3.x]
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
18+
1819
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v5
2021
with:
2122
python-version: ${{ matrix.python-version }}
23+
2224
- name: Install dependencies
2325
run: |
24-
python -m pip install --upgrade pip
25-
python -m pip install pytest numpy
26-
pip install -e .
26+
python3 -m pip install --upgrade pip
27+
python3 -m pip install pytest numpy
28+
python3 -m pip install -e .
2729
env:
2830
PYTHONPATH: $PWD
31+
2932
- name: Run examples
3033
run: |
31-
python examples/use_classic.py
32-
python examples/use_modernised.py
34+
python3 examples/use_classic.py
35+
python3 examples/use_modernised.py
36+
3337
- name: Test with pytest
3438
run: py.test -vs tests

pyrevolve/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
from pyrevolve.pyrevolve import * # noqa
44
from pyrevolve.crevolve import * # noqa
55

6-
from ._version import get_versions
7-
__version__ = get_versions()['version']
8-
del get_versions
6+
from . import _version
7+
__version__ = _version.get_versions()['version']

0 commit comments

Comments
 (0)