Skip to content

Commit

Permalink
Move setup.cfg contents to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Feb 29, 2024
1 parent 17b1376 commit 9a9b874
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 48 deletions.
76 changes: 75 additions & 1 deletion pyproject.toml
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"
Expand Down Expand Up @@ -70,6 +133,9 @@ extend-ignore = [
[tool.ruff.lint.pydocstyle]
convention = "google"

# ======================================================================================
# NBQA configuration
# ======================================================================================

[tool.nbqa.config]
black = "pyproject.toml"
Expand All @@ -78,6 +144,10 @@ black = "pyproject.toml"
black = 1


# ======================================================================================
# Pytest configuration
# ======================================================================================

[tool.pytest.ini_options]
markers = [
"wip: Tests that are work-in-progress.",
Expand All @@ -87,6 +157,10 @@ markers = [
norecursedirs = ["docs", ".envs"]


# ======================================================================================
# yamlfix configuration
# ======================================================================================

[tool.yamlfix]
line_length = 88
sequence_style = "block_style"
Expand Down
47 changes: 0 additions & 47 deletions setup.cfg

This file was deleted.

0 comments on commit 9a9b874

Please sign in to comment.