Skip to content
Snippets Groups Projects
Commit f2a1337e authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Put dependencies in pyproject.toml instead of conda build recipe

parent fca68f0f
No related branches found
No related tags found
No related merge requests found
{% set name = "model_server" %} {% set name = "model_server" %}
{% set version = "2024.7.1" %} {% set version = "2024.7.1" %}
{% set pyproject = load_file_data('../pyproject.toml') %}
package: package:
name: {{ name|lower }} name: {{ name|lower }}
...@@ -9,8 +10,6 @@ source: ...@@ -9,8 +10,6 @@ source:
- path: ../dist/{{ name }}-{{ version }}.tar.gz - path: ../dist/{{ name }}-{{ version }}.tar.gz
- path: ../tests - path: ../tests
folder: tests folder: tests
# - path: ../../fixtures_{{ version }}.tar.gz
build: build:
noarch: python noarch: python
...@@ -24,33 +23,30 @@ requirements: ...@@ -24,33 +23,30 @@ requirements:
- pip - pip
run: run:
- python >=3.9 - python >=3.9
- czifile # - czifile
- fastapi>=0.101.* # - fastapi>=0.101.*
- ilastik=1.4.* # - ilastik=1.4.*
- imagecodecs # - imagecodecs
- jupyterlab # - jupyterlab
- matplotlib # - matplotlib
- numpy=1.* # - numpy=1.*
- pandas=1.* # - pandas=1.*
- pillow # - pillow
- pydantic=1.10.* # - pydantic=1.10.*
- python=3.9.* # - python=3.9.*
- pytorch=1.* # - pytorch=1.*
- scikit-image>=0.21.* # - scikit-image>=0.21.*
- scikit-learn>=1.3.* # - scikit-learn>=1.3.*
- tifffile # - tifffile
- uvicorn>=0.23.* # - uvicorn>=0.23.*
- zstd=1.5.5 # - zstd=1.5.5
- pip - pip
test: test:
# files:
# - ../../fixtures_{{ version }}.tar.gz
imports: imports:
- model_server - model_server
commands: commands:
# -{{ PYTHON }} -m tarfile -e fixtures_{{ version }}.tar.gz
-{{ PYTHON }} -m unittest model_server -{{ PYTHON }} -m unittest model_server
requires: requires:
- pip - pip
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
requires = ["setuptools>=61.0"] requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
name = "model_server" name = "model_server"
license = {file = "LICENSE"} license = {file = "LICENSE"}
...@@ -12,6 +13,25 @@ authors = [ ...@@ -12,6 +13,25 @@ authors = [
description = "Service for analyzing microscope images" description = "Service for analyzing microscope images"
readme = "README.md" readme = "README.md"
requires-python = ">=3.9" requires-python = ">=3.9"
dependencies = [
"czifile",
"fastapi>=0.101.*",
"ilastik=1.4.*",
"imagecodecs",
"jupyterlab",
"matplotlib",
"numpy=1.*",
"pandas=1.*",
"pillow",
"pydantic=1.10.*",
"python=3.9.*",
"pytorch=1.*",
"scikit-image>=0.21.*",
"scikit-learn>=1.3.*",
"tifffile",
"uvicorn>=0.23.*",
"zstd=1.5.5",
]
[project.urls] [project.urls]
Homepage = "https://git.embl.de/rhodes/model_server" Homepage = "https://git.embl.de/rhodes/model_server"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment