Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to pyproject.toml package setup #306

Merged
merged 32 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d79f8a4
Switch to pyproject.toml package setup
GenevieveBuckley Mar 29, 2023
39c9e19
Add keywords to pyproject.toml
GenevieveBuckley Mar 30, 2023
47482f6
Add flake8 exclude paths
GenevieveBuckley Mar 30, 2023
b43d1f9
Update dependencies to match new minimum versions
GenevieveBuckley Aug 2, 2023
0cebc85
Fix setuptools_scm problem displaying version number in conda list
GenevieveBuckley Aug 2, 2023
73b4f3e
Minimum version constraint for optional cupy dependency
GenevieveBuckley Aug 2, 2023
bccbff7
Link to contributors page on github
GenevieveBuckley Aug 2, 2023
c0f4a6d
Fix typo, readme file is RST format
GenevieveBuckley Aug 2, 2023
7a5aea9
Merge main branch
GenevieveBuckley Aug 2, 2023
62572bd
Update pyproject.toml
GenevieveBuckley Aug 2, 2023
1f7a356
Update pyproject.toml
GenevieveBuckley Aug 4, 2023
7ed8408
Update pyproject.toml
GenevieveBuckley Aug 4, 2023
4bbfec7
Update pyproject.toml
GenevieveBuckley Aug 4, 2023
b242050
Update pyproject.toml
GenevieveBuckley Aug 4, 2023
6c558d6
Update pyproject.toml
GenevieveBuckley Aug 8, 2023
7fd9052
Update pyproject.toml
GenevieveBuckley Aug 8, 2023
9e76bf5
Merge branch 'main' into pyproject-toml
m-albert Mar 19, 2024
8478b98
Merge main branch
GenevieveBuckley May 15, 2024
9b48223
Use 'python -m build', instead of 'python setup.py sdist bdist_wheel'
GenevieveBuckley May 15, 2024
53540c1
Add python3.12 classifier for PyPI
GenevieveBuckley May 15, 2024
6871271
Merge main, remove wheel dependency in favour of build
GenevieveBuckley May 15, 2024
596b79f
Replace versioneer with setuptools-scm (simpler to maintain, better l…
GenevieveBuckley May 15, 2024
2987471
Install python build tool with pip, conda-forge versions are out-of-date
GenevieveBuckley May 15, 2024
2a9e4ea
Add pytest-timeout dependency to environment files (otherwise pytest …
GenevieveBuckley May 15, 2024
62f8701
Update contributing guide, drop setup.py and use pip install instead
GenevieveBuckley May 15, 2024
125b182
Try to fix readthedocs getting the dask-image version string
GenevieveBuckley May 15, 2024
ee6a767
Update installation guide to use pip, not setup.py
GenevieveBuckley May 15, 2024
0d2e8cc
Update dependency versions in pyproject.toml
GenevieveBuckley May 15, 2024
c4e5f72
Install dask-image with pip, not setup.py, for GPU CI tests
GenevieveBuckley May 15, 2024
5f8e580
Update some parts of the Makefule for GPU CI tests (removing setup.py)
GenevieveBuckley May 15, 2024
9c6b8d4
ReadTheDocs must install dask_image package
GenevieveBuckley May 15, 2024
49d9c33
Add twine to dependencies, update Makefile away from setup.py
GenevieveBuckley May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "dask-image"
authors = [{name="dask-image contributors"}]
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
description = "Distributed image processing"
keywords = ["dask-image", "dask", "image"]
readme = "README.md"
license = { file="LICENSE.txt" }
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
dynamic = ["version"]
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
requires-python = ">=3.8"
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
classifiers = [
"Development Status :: 2 - Pre-Alpha",
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"dask[array] >=2021.10.0",
"numpy >=1.11.3",
"scipy >=0.19.1",
"pims >=0.4.1",
"tifffile >=2018.10.18",
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
]

[project.optional-dependencies]
test = [
"flake8 >=3.4.1",
"Flake8-pyproject",
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
"pandas",
"pytest >=3.0.5",
"pytest-flake8>=1.0.5",
"pytest-timeout >=1.0.0",
]

[project.urls]
"Homepage" = "https://image.dask.org"
"Bug Tracker" = "https://github.com/dask/dask-image/issues"
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
"Source Code" = "https://github.com/dask/dask-image"

[tool.setuptools.packages]
find = {}
GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved

[tool.distutils.bdist_wheel]
universal = true

GenevieveBuckley marked this conversation as resolved.
Show resolved Hide resolved
[tool.pytest]
addopts = "--flake8"
markers = "cupy"

[tool.flake8]
exclude = "docs/conf.py,versioneer.py"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether to keep versioneer.py here depends on the versioning decision above ( #306 (comment) )


[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "dask_image/_version.py"
versionfile_build = "dask_image/_version.py"
tag_prefix = "v"
parentdir_prefix = "dask-image"
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

16 changes: 0 additions & 16 deletions setup.cfg

This file was deleted.

79 changes: 0 additions & 79 deletions setup.py

This file was deleted.