diff --git a/aiida_bader/__init__.py b/aiida_bader/__init__.py index e69de29..e87aaac 100644 --- a/aiida_bader/__init__.py +++ b/aiida_bader/__init__.py @@ -0,0 +1,2 @@ + +__version__ = "0.0.8" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d45608d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,84 @@ +[build-system] +requires = ["flit_core >=3.4,<4"] +build-backend = "flit_core.buildapi" + +[project] +name = "aiida-bader" +dynamic = ["version"] # read from aiida_workgraph/__init__.py +description = "Collections of node-based workflow created using aiida-workgraph." +authors = [{name = "Xing Wang", email = "xingwang1991@gmail.com"}] +readme = "README.md" +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 1 - Planning", + "Framework :: AiiDA", + "License :: OSI Approved :: MIT License", + "Operating System :: POSIX :: Linux", + "Operating System :: MacOS :: MacOS X", + "Programming Language :: Python", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering" +] +keywords = ["aiida", "bader", "quantum-espresso", "cp2k"] +requires-python = ">=3.9" +dependencies = [ + "aiida-core", + "aiida-workgraph", + "aiida-quantumespresso", + "aiida-cp2k", + "weas-widget", +] + +[project.urls] +Documentation = "https://aiida-bader.readthedocs.io" +Source = "https://github.com/superstar54/aiida-bader" + +[project.optional-dependencies] +docs = [ + "sphinx_rtd_theme", + "sphinx~=7.2", + "sphinx-copybutton~=0.5.0", + "sphinx-design~=0.5.0", + "sphinx-notfound-page~=1.0", + "sphinxext-rediraffe~=0.2.4", + "sphinx-intl~=2.1.0", + "myst-nb~=1.0.0", + "nbsphinx", +] +pre-commit = [ + "pre-commit~=2.2", + "pylint~=2.17.4", +] +tests = [ + "pytest~=7.0", + "pytest-cov~=2.7,<2.11", +] + + + +[project.entry-points."aiida.calculations"] +"bader" = "aiida_bader.calculations:BaderCalculation" + +[project.entry-points."aiida.parsers"] +"bader" = "aiida_bader.parsers:BaderParser" + +[project.entry-points."aiida.workflows"] +"bader.qe" = "aiida_bader.workchains:QeBaderWorkChain" + +[project.entry-points."aiida.properties"] +"bader" = "aiida_bader.qeapp:bader" + + +[tool.flit.sdist] +include = ["aiida_bader/workchains/protocols/bader.yaml"] +exclude = [ + "docs/", + "tests/", + "examples/", +] + +[tool.pylint.format] +max-line-length = 120 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index c09362d..0000000 --- a/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -import pathlib -from setuptools import setup, find_packages - - -def test_suite(): - import unittest - - test_loader = unittest.TestLoader() - test_suite = test_loader.discover("tests", pattern="test_*.py") - return test_suite - - -# The directory containing this file -HERE = pathlib.Path(__file__).parent - -# The text of the README file -README = (HERE / "README.md").read_text() - -setup( - name="aiida-bader", - version="0.0.7", - description="AiiDA plugin for bader code.", - long_description=README, - long_description_content_type="text/markdown", - url="https://github.com/superstar54/aiida-bader", - author="Xing Wang", - author_email="xingwang1991@gmail.com", - license="MIT License", - classifiers=[], - packages=find_packages(), - install_requires=[ - "aiida-core", - "aiida-workgraph", - "aiida-quantumespresso", - "aiida-cp2k", - "weas-widget", - "pytest", - "pytest-cov", - "pre-commit", - ], - entry_points={ - "aiida.calculations": [ - "bader = aiida_bader.calculations:BaderCalculation", - ], - "aiida.parsers": [ - "bader = aiida_bader.parsers:BaderParser", - ], - "aiida.workflows": [ - "bader.qe = aiida_bader.workchains:QeBaderWorkChain", - ], - "aiidalab_qe.properties": [ - "bader = aiida_bader.qeapp:bader", - ], - }, - package_data={ - "aiida_bader.workchains.protocols": ["bader.yaml"], - }, - python_requires=">=3.9", - test_suite="setup.test_suite", -)