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

Commit

Permalink
Add manifest (#54)
Browse files Browse the repository at this point in the history
* Update CI workflows with manifest

* Allow workflow to be dispatchable

* Add pyarrow dependency to prevent future pandas failures
  • Loading branch information
willGraham01 authored Feb 6, 2024
1 parent d1c806b commit 712fc00
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 32 deletions.
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 = "code@adamltyson.com"},
{ name = "Charly Rousseau, Adam Tyson", email = "code@adamltyson.com" },
]
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.

0 comments on commit 712fc00

Please sign in to comment.