Skip to content

Commit

Permalink
Merge pull request #63 from devitocodes/versioneer
Browse files Browse the repository at this point in the history
update versioneer
  • Loading branch information
mloubout committed Mar 26, 2024
2 parents 16fedf2 + b1ec0ac commit 054d233
Show file tree
Hide file tree
Showing 6 changed files with 1,072 additions and 444 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/pytest-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,35 @@ on:
jobs:
Build-linux:
runs-on: ${{ matrix.os }}
env:
CC: gcc-9

strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
python-version: [3.8, 3.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy
pip install -e .[compression]
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade importlib_metadata pytest numpy
python3 -m pip install -e .[compression]
env:
PYTHONPATH: $PWD

- name: Run examples
run: |
python examples/use_classic.py
python examples/use_modernised.py
python3 examples/use_classic.py
python3 examples/use_modernised.py
- name: Test with pytest
run: py.test -vs tests

18 changes: 11 additions & 7 deletions .github/workflows/pytest-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ jobs:
python-version: [3.6-dev, 3.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy
pip install -e .
python3 -m pip install --upgrade pip
python3 -m pip install pytest numpy
python3 -m pip install -e .
env:
PYTHONPATH: $PWD

- name: Run examples
run: |
python examples/use_classic.py
python examples/use_modernised.py
python3 examples/use_classic.py
python3 examples/use_modernised.py
- name: Test with pytest
run: py.test -vs tests
5 changes: 2 additions & 3 deletions pyrevolve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
from pyrevolve.pyrevolve import * # noqa
from pyrevolve.crevolve import * # noqa

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 054d233

Please sign in to comment.