Skip to content

Commit

Permalink
Shift to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkphuthi committed Oct 16, 2024
1 parent 861deb2 commit 149eb51
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
pip install -e ".[dev]"
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
Expand Down
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "asimtools"
description = "A lightweight python package for managing and running atomic simulation workflows"
version = "0.0.1"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name="Keith Phuthi", email="[email protected]" },
]
maintainers = [
{ name="Keith Phuthi", email="[email protected]" },
]
keywords = ["high-throughput", "workflow", "atomistic", "simulation"]
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"Operating System :: MacOS",
"Operating System :: Unix"
]
dependencies = [
"pandas",
"pyyaml",
"pymatgen",
"ase>=3.22.1",
# Recommended to use the master branch of the ASE>=3.23 from gitlab but only
# required for lammps to handle masses correctly so far
"colorama",
"mp-api",
]

[tool.setuptools.packages.find]
include = [
"asimtools",
"asimtools.*",
"asimtools.scripts.*.*",
]

[project.optional-dependencies]
dev = [
"asimtools[tests, docs, phonons]",
]
mlip = ["matgl>=1.1.2", "chgnet>=0.3.3", "mace-torch>=0.3.3"]
phonons = ["phonopy>=2.20.0", "seekpath>=2.1.0"]
tests = ["pytest>=7.4.0", "pytest-cov>=3.0.0"]
docs = [
"sphinx",
"sphinx-rtd-theme",
"myst-parser",
]

[project.scripts]
asim-run = "asimtools.scripts.asim_run:main"
asim-execute = "asimtools.scripts.asim_execute:main"
asim-check = "asimtools.scripts.asim_check:main"

[project.urls]
repository = "https://github.com/BattModels/asimtools"
issues = "https://github.com/BattModels/asimtools/issues"
documentation = "https://battmodels.github.io/asimtools/"

[tool.pytest.ini_options]
log_cli_level = "warn"
pythonpath = "asimtools"
testpaths = ["tests"]
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

46 changes: 0 additions & 46 deletions testpyproject.toml

This file was deleted.

0 comments on commit 149eb51

Please sign in to comment.