Skip to content

Commit

Permalink
Use pyproject for setuptools. Remove setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Nov 3, 2023
1 parent c7a37e1 commit 5500664
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 93 deletions.
142 changes: 96 additions & 46 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@
requires = ["oldest-supported-numpy", "setuptools>=58.0.3"]
build-backend = "setuptools.build_meta"

[project]
name = "matcalc"
authors = [

{ name = "Eliott Liu", email = "[email protected]" },
{ name = "Ji Qi", email = "[email protected]" },
{ name = "Tsz Wai Ko", email = "[email protected]" },
{ name = "Janosh Riebesell", email = "[email protected]" },
{ name = "Shyue Ping Ong", email = "[email protected]" },
]
description = "Calculators for materials properties from the potential energy surface."
readme = "README.md"
requires-python = ">=3.9"
keywords = [
"materials",
"interatomic potential",
"force field",
"science",
"property prediction",
"AI",
"machine learning",
"graph",
"deep learning",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"ase", "pymatgen", "joblib", "phonopy"
]
version = "0.0.3"

[project.optional-dependencies]
models = ["matgl", "chgnet"]

[tool.setuptools]
packages = ["matcalc"]


[tool.black]
line-length = 120
target-version = ["py39"]
Expand All @@ -10,42 +60,42 @@ target-version = ["py39"]
target-version = "py39"
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PD", # pandas-vet
"PERF", # perflint
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TCH", # flake8-type-checking
"TID", # tidy imports
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PD", # pandas-vet
"PERF", # perflint
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TCH", # flake8-type-checking
"TID", # tidy imports
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
ignore = [
"B019", # functools.lru_cache on methods can lead to memory leaks
"D105", # Missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"PLR", # pylint refactor
"PLW0603", # Using the global statement to update variables is discouraged
"SIM105", # Use contextlib.suppress(OSError) instead of try-except-pass
"B019", # functools.lru_cache on methods can lead to memory leaks
"D105", # Missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"PLR", # pylint refactor
"PLW0603", # Using the global statement to update variables is discouraged
"SIM105", # Use contextlib.suppress(OSError) instead of try-except-pass
]
pydocstyle.convention = "google"
isort.required-imports = ["from __future__ import annotations"]
Expand Down Expand Up @@ -77,16 +127,16 @@ relative_files = true

[tool.coverage.report]
exclude_lines = [
"@deprecated",
"def __repr__",
"except PackageNotFoundError:",
"if 0:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"if self.debug:",
"if settings.DEBUG",
"input",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"@deprecated",
"def __repr__",
"except PackageNotFoundError:",
"if 0:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"if self.debug:",
"if settings.DEBUG",
"input",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
47 changes: 0 additions & 47 deletions setup.py

This file was deleted.

0 comments on commit 5500664

Please sign in to comment.