-
Notifications
You must be signed in to change notification settings - Fork 7
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 #175 from altheaden/switch-to-pyproject
Migrate setup configuration to `pyproject.toml`
- Loading branch information
Showing
7 changed files
with
109 additions
and
84 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[flake8] | ||
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes | ||
ignore = | ||
# line break after operator | ||
W504 | ||
# Max width of Github code review is 79 characters | ||
max-line-length = 79 | ||
max-complexity = 18 | ||
per-file-ignores = | ||
*/__init__.py: F401 | ||
exclude = | ||
.git, | ||
docs, | ||
.idea, | ||
.mypy_cache, | ||
.pytest_cache, |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
[project] | ||
name = "mache" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name="Xylar Asay-Davis", email="[email protected]" }, | ||
{ name="Althea Denlinger", email="[email protected]" } | ||
] | ||
description = "A package for providing configuration data related to E3SM supported machines." | ||
license = {file = "LICENSE"} | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
# these are only for searching/browsing projects on PyPI | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
|
||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
dependencies = [ | ||
"importlib_resources", | ||
"jinja2", | ||
"lxml", | ||
"pyyaml", | ||
"progressbar2", | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
# building documentation | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"myst-parser", | ||
"sphinx-multiversion", | ||
"rst-to-myst", | ||
] | ||
|
||
dev = [ | ||
# linting and testing | ||
"pip", | ||
"pytest", | ||
"isort", | ||
"flake8", | ||
"mypy", | ||
"pre-commit", | ||
] | ||
|
||
[tool.isort] | ||
multi_line_output = "3" | ||
include_trailing_comma = true | ||
force_grid_wrap = "0" | ||
use_parentheses = true | ||
line_length = "79" | ||
skip = "e3sm_diags/e3sm_diags_driver.py" | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
check_untyped_defs = true | ||
ignore_missing_imports = true | ||
warn_unused_ignores = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=60", | ||
"setuptools-scm>=8.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["docs*", "conda*"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "mache.version.__version__" } | ||
|
||
# evolution of options.entry-points | ||
[project.scripts] | ||
mache = "mache.__main__:main" | ||
|
||
[project.urls] | ||
Documentation = "https://docs.e3sm.org/mache" | ||
"Bug Tracker" = "https://github.com/E3SM-Project/mache/issues" |
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