Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from setup.py to pyproject.toml #995

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions dpgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
from ._version import version as __version__
except ImportError:
__version__ = 'unkown'
try:
from ._date import date as __date__
except ImportError:
__date__ = 'unkown'

def info():
"""
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "dpgen"
dynamic = ["version"]
description = "DP-GEN: The deep potential generator"
authors = [
{name = "DeepModeling"},
{name = "Han Wang", email = "wang_han@iapcm.ac.cn"},
]
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
]
dependencies = [
'numpy>=1.14.3',
'dpdata>=0.2.6',
'pymatgen>=2022.7.19',
'ase',
'monty>2.0.0',
'paramiko',
'custodian',
'GromacsWrapper>=0.8.0',
'dpdispatcher>=0.3.11',
'netCDF4',
'dargs>=0.2.9',
'h5py',
'pymatgen-analysis-defects',
]
requires-python = ">=3.6"
readme = "README.md"
keywords = ["deep potential generator", "active learning", "deepmd-kit"]

[project.urls]
Homepage = "https://github.com/deepmodeling/dpgen"
documentation = "https://docs.deepmodeling.com/projects/dpgen"
repository = "https://github.com/deepmodeling/dpgen"

[project.entry-points.console_scripts]
dpgen = "dpgen.main:main"

[tool.setuptools.packages.find]
include = ["dpgen*"]

[tool.setuptools_scm]
write_to = "dpgen/_version.py"
74 changes: 0 additions & 74 deletions setup.py

This file was deleted.