-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyproject.toml package setup (#306)
* Switch to pyproject.toml package setup * Add keywords to pyproject.toml * Add flake8 exclude paths * Update dependencies to match new minimum versions * Fix setuptools_scm problem displaying version number in conda list * Minimum version constraint for optional cupy dependency * Link to contributors page on github * Fix typo, readme file is RST format * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Update pyproject.toml Co-authored-by: jakirkham <[email protected]> * Use 'python -m build', instead of 'python setup.py sdist bdist_wheel' * Add python3.12 classifier for PyPI * Replace versioneer with setuptools-scm (simpler to maintain, better long term support) * Install python build tool with pip, conda-forge versions are out-of-date * Add pytest-timeout dependency to environment files (otherwise pytest timeout mark will not be recognised) * Update contributing guide, drop setup.py and use pip install instead * Try to fix readthedocs getting the dask-image version string * Update installation guide to use pip, not setup.py * Update dependency versions in pyproject.toml * Install dask-image with pip, not setup.py, for GPU CI tests * Update some parts of the Makefule for GPU CI tests (removing setup.py) * ReadTheDocs must install dask_image package * Add twine to dependencies, update Makefile away from setup.py --------- Co-authored-by: jakirkham <[email protected]> Co-authored-by: Marvin Albert <[email protected]>
- Loading branch information
1 parent
243fb0a
commit 56e307f
Showing
22 changed files
with
120 additions
and
3,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ omit = | |
*/eggs/* | ||
*/.eggs/* | ||
*tests/* | ||
*/versioneer.py | ||
*/_version.py | ||
*/_vendor/* | ||
*/dispatch/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,12 +84,13 @@ Ready to contribute? Here's how to set up `dask-image` for local development. | |
2. Clone your fork locally:: | ||
|
||
$ git clone [email protected]:your_name_here/dask-image.git | ||
$ cd dask-image | ||
|
||
3. Install your local copy into an environment. Assuming you have conda installed, this is how you set up your fork for local development (on Windows drop `source`). Replace `"<some version>"` with the Python version used for testing.:: | ||
|
||
$ conda create -n dask-image-env python="<some version>" | ||
$ source activate dask-image-env | ||
$ python setup.py develop | ||
$ python -m pip install -e . | ||
|
||
4. Create a branch for local development:: | ||
|
||
|
@@ -100,7 +101,7 @@ Ready to contribute? Here's how to set up `dask-image` for local development. | |
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions:: | ||
|
||
$ flake8 dask_image tests | ||
$ python setup.py test or py.test | ||
$ pytest | ||
|
||
To get flake8, just conda install it into your environment. | ||
|
||
|
@@ -164,7 +165,7 @@ Finally, install the development version of dask-image:: | |
|
||
.. code-block:: console | ||
$ pip install -e . | ||
$ pip install -e ".[test]"" | ||
For local testing, please run ``pytest`` in the test environment:: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
from ._version import get_versions | ||
|
||
__version__ = get_versions()['version'] | ||
del get_versions | ||
|
||
from . import _version | ||
__version__ = _version.get_versions()['version'] | ||
Oops, something went wrong.