Skip to content

Commit

Permalink
[MAINT] update packaging (#165)
Browse files Browse the repository at this point in the history
* try on python 3.11

* switch to hatcling

* ignore version

* updat version handling

* update mypy config

* fix version in doc

* mypy config
  • Loading branch information
Remi-Gau authored Sep 17, 2023
1 parent 8497dbe commit a62efd2
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 3,027 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
include:
- os: ubuntu-latest
python-version: '3.9'
python-version: '3.11'

steps:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/system_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
python-version: ['3.10']
python-version: ['3.11']
dataset: [demo]

steps:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest] # windows-latest: does not work because antspyx is not available for windows
python-version: ['3.8', '3.9', '3.10'] # '3.11' : some dependencies are not yet available for python 3.11
os: [ubuntu-latest, macOS-latest] # windows-latest: do not work. antspyx is not available for windows
python-version: ['3.8', '3.9', '3.10', '3.11']
exclude:
- os: macOS-latest # anstpyx install is messed up with macOS and python 3.9
python-version: '3.9'
fail-fast: false

steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ wheels/
.installed.cfg
*.egg

# hatchling
bidsmreye/_version.py

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ recursive-include bidsmreye/templates *.bib
recursive-include bidsmreye/templates *.mustache
recursive-include bidsmreye/templates CCO
recursive-include bidsmreye/models registry.txt
include versioneer.py
include bidsmreye/_version.py
9 changes: 1 addition & 8 deletions bidsmreye/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
"""Top-level package for bidsMReye."""
"""Bidsmreye package."""
from __future__ import annotations

__author__ = """Remi Gau"""
__email__ = "remi.gau@gmail.com"

from . import _version

__version__ = _version.get_versions()["version"]
Loading

0 comments on commit a62efd2

Please sign in to comment.