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

Switch build backend to hatchling #116

Merged
merged 3 commits into from
Dec 11, 2023
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
11 changes: 6 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
run: python -m pip install --upgrade pip build
- name: Test building sdist
run: python -m build -s .
- name: Test building wheel
run: python -m build -w .
- name: Install openneuro-py
run: pip install .[tests]
- name: Test with pytest
run: |
pytest
run: pytest
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "openneuro-py"
description = "A Python client for OpenNeuro."
Expand Down Expand Up @@ -35,16 +39,12 @@ openneuro-py = "openneuro.openneuro:cli"
homepage = "https://github.com/hoechenberger/openneuro-py"
changelog = "https://github.com/hoechenberger/openneuro-py/CHANGES.md"

[build-system]
requires = [
"setuptools >= 45",
"setuptools_scm[toml] >= 6.2",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "release-branch-semver" }

[tool.setuptools_scm]
# can be left blank
[tool.hatch.build.targets.wheel]
packages = ["openneuro"]

[tool.pytest.ini_options]
addopts = "-ra -vv --tb=short --durations=10"
Loading