-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move setup.cfg contents to pyproject.toml
- Loading branch information
Showing
2 changed files
with
75 additions
and
48 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 |
---|---|---|
@@ -1,10 +1,73 @@ | ||
# Reference: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#static-vs-dynamic-metadata | ||
|
||
# ====================================================================================== | ||
# Project metadata | ||
# ====================================================================================== | ||
|
||
[project] | ||
name = "lcm" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name = "Tim Mensinger", email = "[email protected]" }, | ||
{ name = "Hans-Martin von Gaudecker", email = "[email protected]" }, | ||
{ name = "Janos Gabler" }, | ||
] | ||
description = "This package aims to generalize and facilitate the specification, solving, and estimation of dynamic choice models." | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
license = { file = "LICENSE" } | ||
keywords = [ | ||
"Dynamic programming", | ||
"Econometrics", | ||
"Economics", | ||
"Estimation", | ||
"Life cycle models", | ||
"Statistics", | ||
] | ||
classifiers = [ | ||
"Development Status :: 1 - Planning", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX", | ||
"Operating System :: Unix", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
requires-python = ">=3.11" | ||
dependencies = [ | ||
"dags", | ||
"jax>=0.4.10", | ||
"jaxlib>=0.4.10", | ||
"numpy", | ||
"pandas", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/opensourceeconomics/lcm" | ||
Github = "https://github.com/opensourceeconomics/lcm" | ||
Tracker = "https://github.com/OpenSourceEconomics/lcm/issues" | ||
|
||
|
||
# ====================================================================================== | ||
# Build system configuration | ||
# ====================================================================================== | ||
|
||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"] | ||
|
||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/lcm/_version.py" | ||
|
||
[tool.check-manifest] | ||
ignore = ["src/lcm/_version.py"] | ||
|
||
|
||
# ====================================================================================== | ||
# Ruff configuration | ||
# ====================================================================================== | ||
|
||
[tool.ruff] | ||
target-version = "py311" | ||
|
@@ -70,6 +133,9 @@ extend-ignore = [ | |
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
||
# ====================================================================================== | ||
# NBQA configuration | ||
# ====================================================================================== | ||
|
||
[tool.nbqa.config] | ||
black = "pyproject.toml" | ||
|
@@ -78,6 +144,10 @@ black = "pyproject.toml" | |
black = 1 | ||
|
||
|
||
# ====================================================================================== | ||
# Pytest configuration | ||
# ====================================================================================== | ||
|
||
[tool.pytest.ini_options] | ||
markers = [ | ||
"wip: Tests that are work-in-progress.", | ||
|
@@ -87,6 +157,10 @@ markers = [ | |
norecursedirs = ["docs", ".envs"] | ||
|
||
|
||
# ====================================================================================== | ||
# yamlfix configuration | ||
# ====================================================================================== | ||
|
||
[tool.yamlfix] | ||
line_length = 88 | ||
sequence_style = "block_style" | ||
|