Skip to content

Commit

Permalink
add pyproject.toml (#14)
Browse files Browse the repository at this point in the history
* add pyproject.toml

* change GHA

* change GHA

* change GHA

* change GHA

* change GHA

* change GHA

* change GHA

* change GHA

* rename gh action file

* rename II
  • Loading branch information
gschramm authored Feb 20, 2024
1 parent f4248d6 commit e75f735
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 102 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Workflow to build the parallelproj C/CUDA libs (incl. installation of CUDA)
name: python build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']

runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434

steps:
- uses: actions/checkout@v3

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: |
python -m pip install --upgrade pip
pip install .
- name: Run nifti prediction
run: |
cd demo_data
pyapetnet_predict_from_nifti brainweb_06_osem_cropped.nii brainweb_06_t1_cropped.nii S2_osem_b10_fdg_pe2i --no_coreg
54 changes: 0 additions & 54 deletions .github/workflows/micromamba.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions pyapetnet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_version.py
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[build-system]
requires = ["hatchling",
"hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "pyapetnet"
dynamic = ["version"]
description = "a CNN for anatomy-guided deconvolution and denoising of PET images"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Georg Schramm", email = "georg.schramm@kuleuven.be" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"pymirc>=0.29",
"SimpleITK>=2.0",
"tensorflow>=2.2",
]

[project.scripts]
pyapetnet_list_models = "pyapetnet.list_models:main"
pyapetnet_predict_from_dicom = "pyapetnet.predict_from_dicom:main"
pyapetnet_predict_from_nifti = "pyapetnet.predict_from_nifti:main"

[project.urls]
Homepage = "https://github.com/gschramm/pyapetnet"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "pyapetnet/_version.py"

[tool.hatch.build.targets.sdist]
include = [
"/pyapetnet",
]
40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

0 comments on commit e75f735

Please sign in to comment.