Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Use hatchling as build backend #83

Merged
merged 8 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading