Skip to content

Commit cf1ad75

Browse files
authored
Merge pull request #18 from matthias-baer/master
Issue #17, Migrate to pyproject.toml
2 parents b0b95c8 + 1f483b3 commit cf1ad75

File tree

7 files changed

+43
-251
lines changed

7 files changed

+43
-251
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install fftw3 libs (Linux)
2222
if: runner.os == 'Linux'
2323
run: |
24-
sudo apt-get install -y libfftw3-dev libfftw3-3
24+
sudo apt-get install -y libfftw3-double3 libfftw3-single3
2525
- name: Install fftw3 libs (macOS)
2626
if: runner.os == 'macOS'
2727
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,4 @@ _version_save.py
106106
.pytest_cache
107107

108108
.idea
109+
_version.py

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "setuptools_scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "qpimage"
7+
description = "library for manipulating quantitative phase images"
8+
readme = "README.rst"
9+
license = { file = "LICENSE" }
10+
authors = [{ name = "Paul Müller", email = "dev@craban.de" }]
11+
requires-python = ">=3.8, <4"
12+
dependencies = [
13+
"h5py>=2.7.0",
14+
"lmfit",
15+
"nrefocus[FFTW]>=0.4.3",
16+
"numpy>=2.0",
17+
"qpretrieve[FFTW]>=0.2.8",
18+
"scikit-image>=0.21.0",
19+
"scipy>=0.18.0"
20+
]
21+
classifiers = [
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3",
24+
"Intended Audience :: Science/Research"
25+
]
26+
dynamic = ["version"]
27+
28+
[project.urls]
29+
Homepage = "https://github.com/RI-imaging/qpimage"
30+
31+
[tool.setuptools_scm]
32+
write_to = "qpimage/_version.py"
33+
version_scheme = "post-release"
34+
35+
[tool.setuptools.packages.find]
36+
where = ["."]
37+
include = ["qpimage"]
38+

qpimage/_version.py

Lines changed: 0 additions & 197 deletions
This file was deleted.

qpimage/image_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def write_image_dataset(group, key, data, h5dtype=None):
365365
**kwargs)
366366
if group.file.driver != "core":
367367
# HDFView 3.1.1 supports visualizing float-arrays as grayscale image
368-
dset.attrs.create('CLASS', np.string_('IMAGE'))
369-
dset.attrs.create('IMAGE_VERSION', np.string_('1.2'))
370-
dset.attrs.create('IMAGE_SUBCLASS', np.string_('IMAGE_GRAYSCALE'))
368+
dset.attrs.create('CLASS', np.bytes_('IMAGE'))
369+
dset.attrs.create('IMAGE_VERSION', np.bytes_('1.2'))
370+
dset.attrs.create('IMAGE_SUBCLASS', np.bytes_('IMAGE_GRAYSCALE'))
371371
return dset

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)