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

Trying several things to read dependencies from pyproject.yaml

parent 38c11c24
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') %} {% set pyproject = load_file_data('pyproject.toml') %}
{% set pp = pyproject.get('project') %}
package: package:
name: {{ name|lower }} name: {{ pp.get('name') }}
version: {{ version }} version: {{ pp.get('version') }}
source: source:
- path: ../dist/{{ name }}-{{ version }}.tar.gz - path: ../dist/{{ name }}-{{ version }}.tar.gz
...@@ -23,23 +24,26 @@ requirements: ...@@ -23,23 +24,26 @@ requirements:
- pip - pip
run: run:
- python >=3.9 - python >=3.9
# - czifile # { % for dep in pyproject["dependencies"] % }
# - fastapi>=0.101.* # - {{ dep.lower() }}
# - ilastik=1.4.* # { % endfor % }
# - imagecodecs - czifile
# - jupyterlab - fastapi>=0.101.*
# - matplotlib - ilastik=1.4.*
# - numpy=1.* - imagecodecs
# - pandas=1.* - jupyterlab
# - pillow - matplotlib
# - pydantic=1.10.* - numpy=1.*
# - python=3.9.* - pandas=1.*
# - pytorch=1.* - pillow
# - scikit-image>=0.21.* - pydantic=1.10.*
# - scikit-learn>=1.3.* - python=3.9.*
# - tifffile - pytorch=1.*
# - uvicorn>=0.23.* - scikit-image>=0.21.*
# - zstd=1.5.5 - scikit-learn>=1.3.*
- tifffile
- uvicorn>=0.23.*
- zstd=1.5.5
- pip - pip
...@@ -47,7 +51,7 @@ test: ...@@ -47,7 +51,7 @@ test:
imports: imports:
- model_server - model_server
commands: commands:
-{{ PYTHON }} -m unittest model_server - python -m unittest discover
requires: requires:
- pip - pip
source_files: source_files:
......
...@@ -6,10 +6,6 @@ root = os.environ.get( ...@@ -6,10 +6,6 @@ root = os.environ.get(
Path.home() / 'model_server' / 'testing' Path.home() / 'model_server' / 'testing'
) )
import sys
print(sys.argv)
filename = 'D3-selection-01.czi' filename = 'D3-selection-01.czi'
czifile = { czifile = {
'filename': filename, 'filename': filename,
......
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