|
3 | 3 |
|
4 | 4 | from os import path |
5 | 5 | from dpgen import NAME,SHORT_CMD |
6 | | -import setuptools |
| 6 | +import setuptools, datetime |
7 | 7 |
|
8 | 8 | readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.md') |
9 | 9 | try: |
|
13 | 13 | with open(readme_file) as f: |
14 | 14 | readme = f.read() |
15 | 15 |
|
| 16 | +today = datetime.date.today().strftime("%b-%d-%Y") |
| 17 | +with open(path.join('dpgen', '_date.py'), 'w') as fp : |
| 18 | + fp.write('date = \'%s\'' % today) |
| 19 | + |
16 | 20 | install_requires=['numpy>=1.14.3', 'dpdata>=0.1.10', 'pymatgen>=2017.9.1', 'ase', 'monty>2.0.0', 'paramiko', 'custodian'] |
17 | 21 |
|
18 | 22 | setuptools.setup( |
19 | 23 | name=NAME, |
20 | | - version_format='{tag}.dev{commitcount}+{gitsha}', |
21 | | - setup_requires=['setuptools-git-version'], |
| 24 | + use_scm_version={'write_to': 'dpgen/_version.py'}, |
| 25 | + setup_requires=['setuptools_scm'], |
22 | 26 | author="Han Wang", |
23 | 27 | author_email="wang_han@iapcm.ac.cn", |
24 | 28 | description="DPGen: The deep potential generator", |
|
42 | 46 | "Programming Language :: Python :: 3.6", |
43 | 47 | "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", |
44 | 48 | ], |
45 | | - keywords='lammps vasp deepmd-kit', |
| 49 | + keywords='deep potential generator active learning deepmd-kit', |
46 | 50 | install_requires=install_requires, |
47 | 51 | entry_points={ |
48 | 52 | 'console_scripts': [ |
|
0 commit comments