Skip to content

Commit

Permalink
Merge pull request #60 from AllenInstitute/pixi_example
Browse files Browse the repository at this point in the history
Pixi example
  • Loading branch information
RussTorres authored Jan 18, 2025
2 parents bdfa288 + d4c9cbf commit de6d74e
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 57 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ venv.bak/
# mkdocs documentation
/site

#Pixi
pixi.lock
.pixi/

# mypy
.mypy_cache/

Expand Down
16 changes: 16 additions & 0 deletions acpreprocessing/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.1.dev397+gf424fe1.d20241113'
__version_tuple__ = version_tuple = (0, 1, 'dev397', 'gf424fe1.d20241113')
80 changes: 80 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[project]
name = "acpreprocessing"
description='Axonal connectomics processing'
requires-python = ">3.8,<3.12"
version = "0.0.1"
dynamic = ["dependencies"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[project.optional-dependencies]
test = [
"pytest",
"pytest-mock",
"pytest-cov",
"codecov",
]

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = [
"acpreprocessing",
]

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

# some downgrades from pixi's expectations
[tool.pixi.system-requirements]
linux = "5.0.0"
libc = "2.27"

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.pypi-dependencies]
acpreprocessing = { path = ".", editable = true }

# conda-enabled features
[tool.pixi.feature.pixi-base.dependencies]
numpy = "1.26.0"
imageio = "*"
matplotlib = "*"

# version-specific python features
[tool.pixi.feature.py310.dependencies]
python = "3.10.*"
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"


[tool.pixi.feature.conda-lab.dependencies]
jupyterlab = "*"

[tool.pixi.feature.scalene.dependencies]
scalene = "*"

[tool.pixi.environments]
py310 = ["py310"]
py310-test = ["py310", "test"]
py311 = ["py311"]
py311-test = ["py311", "test"]
py310-conda = ["py310", "pixi-base"]
py310-conda-test = ["py310", "pixi-base", "test"]
py311-conda = ["py311", "pixi-base"]
py311-conda-test = ["py311", "pixi-base", "test"]
py311-conda-lab = ["py311", "pixi-base", "conda-lab"]
py311-conda-scalene = ["py311", "pixi-base", "scalene"]
py311-conda-scalene-lab = ["py311", "pixi-base", "scalene", "conda-lab"]


[tool.coverage.run]
omit = ["test/*",]

[tool.pixi.feature.test.tasks]
test = "pytest --cov --cov-report=xml --junitxml=test-reports/test.xml"
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pillow
tifffile==2020.7.4
scikit-image
numpy
imageio<2.21
numpy==1.26.0
imageio
# "imageio<2.21",
matplotlib
argschema
natsort
requests
cloud-volume>=8.5.5
zarr
zarr
h5py
25 changes: 0 additions & 25 deletions setup.cfg

This file was deleted.

25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

4 changes: 0 additions & 4 deletions test_requirements.txt

This file was deleted.

0 comments on commit de6d74e

Please sign in to comment.