Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Add manifest #54

Merged
merged 3 commits into from
Feb 6, 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
20 changes: 17 additions & 3 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
name: tests

on: [push, pull_request]
on:
push:
branches:
- "main"
tags:
- "v**"
pull_request:
workflow_dispatch:

jobs:
lint:
linting:
name: Check Linting
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2

manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/check_manifest@v2

test:
needs: lint
needs: [linting, manifest]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exclude .pre-commit-config.yaml

include LICENSE
include README.md

graft imio *.py

prune tests
40 changes: 26 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "imio"
description = "Loading and saving of image data."
readme = "README.md"
authors = [
{name = "Charly Rousseau, Adam Tyson", email = "[email protected]"},
{ name = "Charly Rousseau, Adam Tyson", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
Expand All @@ -24,6 +24,7 @@ dependencies = [
"nibabel >= 2.1.0",
"numpy",
"psutil",
"pyarrow",
"pynrrd",
"scikit-image",
"tifffile",
Expand All @@ -35,19 +36,10 @@ dynamic = ['version']
Homepage = "https://github.com/brainglobe/imio"

[project.optional-dependencies]
dev = [
"black",
"pre-commit",
"pytest",
"pytest-cov",
]
dev = ["black", "pre-commit", "pytest", "pytest-cov"]

[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
Expand All @@ -72,7 +64,7 @@ filterwarnings = [
"ignore:`np.uint0` is a deprecated alias for `np.uintp`",
"ignore:`np.void0` is a deprecated alias for `np.void`",
"ignore:`np.bytes0` is a deprecated alias for `np.bytes_`",
"ignore:`np.str0` is a deprecated alias for `np.str_`"
"ignore:`np.str0` is a deprecated alias for `np.str_`",
]

[tool.black]
Expand All @@ -82,6 +74,26 @@ line-length = 79

[tool.ruff]
line-length = 79
exclude = ["__init__.py","build",".eggs"]
exclude = ["__init__.py", "build", ".eggs"]
select = ["I", "E", "F"]
fix = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310,311}

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
extras =
dev
commands =
pytest -v --color=yes --cov=imio --cov-report=xml

"""
15 changes: 0 additions & 15 deletions tox.ini

This file was deleted.

Loading