Skip to content

Commit 22094fe

Browse files
authored
Merge pull request #17 from openkim/devel
Refactor build, test requires
2 parents 13395b7 + 912c934 commit 22094fe

File tree

9 files changed

+29
-24
lines changed

9 files changed

+29
-24
lines changed

.github/workflows/pythonpublish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Python
3232
uses: actions/setup-python@v2
3333
with:
34-
python-version: '3.x'
34+
python-version: "3.10"
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip

.github/workflows/testing.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [3.7, 3.8, 3.9]
10+
python-version: ["3.8", "3.9", "3.10"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Install gcc
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: macos-latest
6060
strategy:
6161
matrix:
62-
python-version: [3.7, 3.8, 3.9]
62+
python-version: ["3.8", "3.9", "3.10"]
6363
compiler: [clang, gcc]
6464
steps:
6565
- uses: actions/checkout@v2
@@ -126,7 +126,7 @@ jobs:
126126
runs-on: windows-latest
127127
strategy:
128128
matrix:
129-
python-version: [3.7, 3.8, 3.9]
129+
python-version: ["3.8", "3.9", "3.10"]
130130
compiler: [gcc]
131131
defaults:
132132
run:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ kim.log
4545
.cache
4646
.pytest_cache/
4747
.DS_Store
48+
.idea

CHANGELOG.txt

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Change Log
33
==========
44

5+
v2.1.0 (2022/12/06)
6+
===================
7+
8+
- Fixing inverse function bug in neighbor list, which can result in incorrect
9+
padding
10+
- Using pyproject.toml, and refactoring build and test requires
11+
512
v2.0.1 (2022/08/18)
613
===================
714

Makefile

-12
This file was deleted.

api_compatibility.txt

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
1.0.0 2.2.1 2.2.0
2222
2.0.0 2.2.1 2.2.1
2323
2.0.1 2.3.0 2.2.1
24+
2.1.0 2.3.0 2.2.1

kimpy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.1"
1+
__version__ = "2.1.0"
22

33
# import all modules
44
from . import model

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "pybind11"]
3+
build-backend = "setuptools.build_meta"

setup.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
"""Setup."""
2-
31
import os
42
import subprocess
53
import sys
4+
from sysconfig import get_config_vars
65

7-
from setuptools import setup, Extension, find_packages, distutils
6+
from setuptools import Extension, distutils, find_packages, setup
87
from setuptools.command.build_ext import build_ext
9-
from sysconfig import get_config_vars
108

11-
from api_compatibility import check_kim_api_compatibility
9+
try:
10+
from api_compatibility import check_kim_api_compatibility
11+
except ImportError:
12+
# new version of pip does not add cwd to path
13+
sys.path.append(os.getcwd())
14+
from api_compatibility import check_kim_api_compatibility
1215

1316

1417
# remove `-Wstrict-prototypes' that is for C not C++
@@ -306,8 +309,10 @@ def chech_kim_api_compatibility():
306309
name="kimpy",
307310
version=get_kimpy_version(),
308311
packages=find_packages(),
309-
setup_requires=["pybind11"],
310-
install_requires=["pybind11", "numpy", "pytest"],
312+
install_requires=["numpy"],
313+
extras_require={
314+
"test": ["pytest", "ase"],
315+
},
311316
python_requires=">=3.7",
312317
cmdclass={"build_ext": BuildExt},
313318
ext_modules=get_kimpy_ext_modules(),

0 commit comments

Comments
 (0)