Skip to content

Commit

Permalink
MNT: Use hatchling as build backend (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsipu authored May 13, 2024
1 parent f8fdfe1 commit fb82f4d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 43 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -21,6 +21,6 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m build
python -m build
twine check dist/*
twine upload dist/*
File renamed without changes.
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

2 changes: 0 additions & 2 deletions mne_pipeline_hd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Github: https://github.com/marsipu/mne-pipeline-hd
"""

from mne_pipeline_hd._version import __version__ # noqa: F401

# Keep reference to Qt-objects without parent for tests
# and to avoid garbage collection
_object_refs = {
Expand Down
2 changes: 0 additions & 2 deletions mne_pipeline_hd/_version.py

This file was deleted.

50 changes: 37 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "mne-pipeline-hd"
Expand All @@ -10,26 +10,44 @@ authors = [
description = "A Pipeline-GUI for MNE-Python from MEG-Lab Heidelberg"
readme = "README.md"
requires-python = ">=3.9"
license = { "text" = "BSD-3-Clause" }
license = { file = "LICENSE" }
keywords = ["mne-python", "meg", "eeg", "pipeline", "gui", "heidelberg"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
dynamic = ["version", "dependencies"]

dependencies = [
# MNE
"mne",
"mne-qt-browser",
"mne-connectivity",
# MNE related
"vtk", # needed for CIs
"nibabel", # needed for CIs
"pyvistaqt", # needed for CIs
"autoreject",
"h5io",
"h5netcdf",
# PyQt
"qtpy",
"pyqtdarktheme",
"pyobjc-framework-Cocoa; sys_platform == 'Darwin'",
# Other
"psutil",
]
dynamic = [ "version" ]
[project.optional-dependencies]
tests = [
"black",
"pre-commit",
"pydata-sphinx-theme",
"pytest",
"pytest-qt",
"pre-commit",
"black",
"ruff",
"sphinx"
"sphinx",
"pydata-sphinx-theme",
]

[project.urls]
Expand All @@ -39,9 +57,15 @@ Repository = "https://github.com/marsipu/mne-pipeline-hd.git"
[project.scripts]
mne_pipeline_hd = "mne_pipeline_hd.__main__:main"

[tool.setuptools.dynamic]
version = { attr = "mne_pipeline_hd.__version__" }
dependencies = { file = "requirements.txt" }
[tool.hatch.build]
exclude = [
"/.*",
"/*.yml",
]

[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "release-branch-semver" }

[tool.black]
line-lenght = 88
Expand Down
20 changes: 0 additions & 20 deletions requirements.txt

This file was deleted.

0 comments on commit fb82f4d

Please sign in to comment.