Skip to content

Commit

Permalink
Merge pull request #96 from andyfaff/arte
Browse files Browse the repository at this point in the history
MAINT: bump actions
  • Loading branch information
andyfaff authored Sep 11, 2024
2 parents 4fa4c05 + f79c4a3 commit 599375b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

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 }}

Expand All @@ -33,9 +33,9 @@ jobs:
pytest --pyargs refellips
popd
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: refellips-wheel
name: refellips-linux-${{ matrix.python-version }}
path: dist/

lint:
Expand All @@ -45,10 +45,10 @@ jobs:
python-version: ["3.11"]

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 }}

Expand All @@ -69,10 +69,10 @@ jobs:
python-version: ["3.10"]

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 }}

Expand All @@ -98,9 +98,9 @@ jobs:
python-version: ["3.11"]

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 }}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[project]
requires-python = ">=3.7"
requires-python = ">=3.9"
name = "refellips"
dynamic=["version", "description", "readme", "license", "classifiers", "urls", "authors"]
Empty file added refellips/materials/__init__.py
Empty file.
Empty file added refellips/tests/__init__.py
Empty file.
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ def get_version_info():
GIT_REVISION = git_version()
elif os.path.exists("refellips/version.py"):
# must be a source distribution, use existing version file
# load it as a separate module to not load refellips/__init__.py
import imp

version = imp.load_source("refellips.version", "refellips/version.py")
GIT_REVISION = version.git_revision
# load it as a separate module to not load refnx/__init__.py
import importlib.util
spec = importlib.util.spec_from_file_location("version", "refellips/version.py")
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
GIT_REVISION = module.git_revision
else:
GIT_REVISION = "Unknown"

Expand Down

0 comments on commit 599375b

Please sign in to comment.