Skip to content

Commit

Permalink
Merge pull request datajoint#6 from chris-langfield/main
Browse files Browse the repository at this point in the history
Add CI and improve requirements
  • Loading branch information
dimitri-yatsenko authored Feb 27, 2024
2 parents b198ed9 + 0b27f0f commit 2636b16
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Python Package
name: poisson_numcodecs CI

on:
push:
branches: [main]

pull_request:
branches: [main]
types: [synchronize, opened, reopened, ready_for_review]
Expand All @@ -13,17 +16,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ["ubuntu-latest", "macos-latest"]
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install .
pip install zarr
pip install -r requirements.txt
pip install pytest
pip install .
- name: Test with pytest
run: |
pytest -v
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![PyPI version](https://badge.fury.io/py/poisson-numcodecs.svg)](https://badge.fury.io/py/poisson-numcodecs) ![tests](https://github.com/AllenNeuralDynamics/poisson-numcodecs/actions/workflows/python-package.yml/badge.svg)
[![PyPI version](https://badge.fury.io/py/poisson-numcodecs.svg)](https://badge.fury.io/py/poisson-numcodecs) ![tests](https://github.com/AllenNeuralDynamics/poisson-numcodecs/actions/workflows/tests.yaml/badge.svg)

# Poisson - numcodecs implementation

Expand All @@ -17,12 +17,22 @@ Install via `pip`:
pip install poisson-numcodecs
```

Or from sources:
### Developer installation

```
conda create -n poisson_numcodecs python=3.xx
conda activate poisson_numcodecs
git clone https://github.com/AllenNeuralDynamics/poisson-numcodecs.git
cd poisson-numcodecs
pip install .
pip install -r requirements.txt
pip install -e .
```

Make sure everything works:

```
pip install pytest
pytest tests/
```

## Usage
Expand Down Expand Up @@ -53,4 +63,4 @@ Available `**kwargs` can be browsed with: `Poisson?`

**NOTE:**
In order to reload in zarr an array saved with the `Poisson`, you just need to have the `poisson_numcodecs` package
installed.
installed.
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm>=8"]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_file = "_version.py"

[project]
name = "poisson_numcodecs"
version = "0.1.0"
authors = [
{ name="Jerome Lecoq", email="[email protected]" },
]
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ numpy
numcodecs
zarr
matplotlib
scipy
scipy
scikit-learn
imageio
1 change: 0 additions & 1 deletion src/poisson_numcodecs/_version.py

This file was deleted.

0 comments on commit 2636b16

Please sign in to comment.