forked from dptech-corp/dpgen2
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate from setup.py to pyproject.toml (#86)
* migrate from setup.py to pyproject.toml * remove requirements.txt * update dockerfile * fix module matching bug * update test * switch to pip install in CI test * fix doc building Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
- Loading branch information
1 parent
d572eb2
commit 2f6643e
Showing
5 changed files
with
55 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
FROM dptechnology/dflow:latest | ||
|
||
WORKDIR /data/dpgen2 | ||
ADD requirements.txt ./ | ||
RUN pip install -r requirements.txt | ||
COPY ./ ./ | ||
RUN pip install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "dpgen2" | ||
dynamic = ["version"] | ||
description = "DPGEN2: concurrent learning workflow generating the machine learning potential energy models." | ||
authors = [ | ||
{name = "DeepModeling"}, | ||
] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.7", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", | ||
] | ||
dependencies = [ | ||
'numpy', | ||
'dpdata', | ||
'pydflow>=1.5.10', | ||
'dargs>=0.3.1', | ||
] | ||
requires-python = ">=3.7" | ||
readme = "README.md" | ||
keywords = ["deep potential", "concurrent learning", "work flow"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/deepmodeling/dpgen2" | ||
documentation = "https://docs.deepmodeling.com/projects/dpgen2" | ||
repository = "https://github.com/deepmodeling/dpgen2" | ||
|
||
[project.entry-points.console_scripts] | ||
dpgen2 = "dpgen2.entrypoint.main:main" | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
'sphinx', | ||
'recommonmark', | ||
'sphinx_rtd_theme>=1.0.0rc1', | ||
'numpydoc', | ||
'myst_parser', | ||
'deepmodeling_sphinx', | ||
'sphinx-argparse', | ||
"dargs>=0.3.1", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["dpgen2*"] | ||
|
||
[tool.setuptools.package-data] | ||
dpgen2 = ['*.json'] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "dpgen2/_version.py" |
This file was deleted.
Oops, something went wrong.