-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packaging and Python versions
- Loading branch information
Showing
16 changed files
with
133 additions
and
105 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
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,7 +1,107 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "setuptools-scm[toml]>=6.2", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "carbonplan-data" | ||
description = "Preprocessing utilities for CarbonPlan's data catalog" | ||
readme = "README.md" | ||
license = { text = "MIT" } | ||
authors = [{ name = "CarbonPlan", email = "tech@carbonplan.org" }] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dynamic = ["version"] | ||
|
||
dependencies = [ | ||
"intake<=0.7.0", | ||
"validators", | ||
"wget", | ||
] | ||
|
||
[project.urls] | ||
repository = "https://github.com/carbonplan/data" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["carbonplan_data*"] | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
local_scheme = "node-and-date" | ||
fallback_version = "999" | ||
write_to = "carbonplan_data/_version.py" | ||
write_to_template = '__version__ = "{version}"' | ||
|
||
|
||
# [tool.setuptools.dynamic] | ||
# version = { attr = "carbonplan_data.__version__" } | ||
|
||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py38'] | ||
target-version = ['py39'] | ||
skip-string-normalization = true | ||
|
||
[build-system] | ||
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py39" | ||
builtins = ["ellipsis"] | ||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".hg", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
] | ||
per-file-ignores = {} | ||
# E402: module level import not at top of file | ||
# E501: line too long - let black worry about that | ||
# E731: do not assign a lambda expression, use a def | ||
ignore = ["E402", "E501", "E731"] | ||
select = [ | ||
# Pyflakes | ||
"F", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
# isort | ||
"I", | ||
# Pyupgrade | ||
"UP", | ||
] | ||
|
||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 18 | ||
|
||
[tool.ruff.isort] | ||
known-first-party = ["carbonplan_data"] | ||
|
||
[tool.pytest.ini_options] | ||
console_output_style = "count" | ||
addopts = "--cov=./ --cov-report=xml --verbose" |
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