-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from hakonanes/from-setup-to-pyproject
Change build backend from setuptools to Hatch
- Loading branch information
Showing
10 changed files
with
136 additions
and
205 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
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,6 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.4.2 | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
- id: black-jupyter | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "orix" | ||
# conf.py assumes orix developers to be first author | ||
authors = [{name = "orix developers"}] | ||
description = "orix is an open-source Python library for handling crystal orientation mapping data" | ||
license = {file = "LICENSE"} | ||
readme = {file = "README.rst", content-type = "text/x-rst"} | ||
dynamic = ["version"] | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
dependencies = [ | ||
"dask[array]", | ||
"diffpy.structure >= 3.0.2", | ||
"h5py", | ||
"matplotlib >= 3.5", | ||
"matplotlib-scalebar", | ||
"numba", | ||
"numpy", | ||
"numpy-quaternion", | ||
"pooch >= 0.13", | ||
# TODO: Remove once https://github.com/diffpy/diffpy.structure/issues/97 is fixed | ||
"pycifrw", | ||
"scipy", | ||
"tqdm", | ||
] | ||
|
||
[project.optional-dependencies] | ||
doc = [ | ||
"ipykernel", # Used by nbsphinx to execute notebooks | ||
"memory_profiler", | ||
"nbconvert >= 7.16.4", | ||
"nbsphinx >= 0.7", | ||
"numpydoc", | ||
"pydata-sphinx-theme", | ||
"scikit-image", | ||
"scikit-learn", | ||
"sphinx >= 3.0.2", | ||
"sphinx-codeautolink[ipython]", | ||
"sphinx-copybutton >= 0.2.5", | ||
"sphinx-design", | ||
"sphinx-gallery", | ||
"sphinxcontrib-bibtex >= 1.0", | ||
] | ||
tests = [ | ||
"numpydoc", | ||
"pytest >= 5.4", | ||
"pytest-rerunfailures", | ||
"pytest-xdist", | ||
] | ||
coverage = [ | ||
"coverage >= 5.0", | ||
"pytest-cov >= 2.8.1", | ||
] | ||
dev = [ | ||
"black[jupyter]", | ||
"hatch", | ||
"isort >= 5.10", | ||
"outdated", | ||
"pre-commit >= 1.16", | ||
"orix[doc,tests,coverage]", | ||
] | ||
|
||
[tool.hatch.version] | ||
path = "orix/__init__.py" | ||
|
||
[tool.coverage.report] | ||
precision = 2 | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["orix"] | ||
relative_files = true | ||
omit = [ | ||
"orix/__init__.py", | ||
"orix/tests/**/*.py", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"-ra", | ||
"--ignore=doc/_static/img/colormap_banners/create_colormap_banners.py", | ||
"--ignore=examples/*/*.py", | ||
] | ||
doctest_optionflags = "NORMALIZE_WHITESPACE" | ||
filterwarnings = [ | ||
"ignore:Deprecated call to `pkg_resources:DeprecationWarning", | ||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning", | ||
] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
filter_files = true | ||
force_sort_within_sections = true |
Oops, something went wrong.