diff --git a/build.py b/build_cython.py similarity index 97% rename from build.py rename to build_cython.py index 985042b..bc16f9e 100644 --- a/build.py +++ b/build_cython.py @@ -1,14 +1,14 @@ -import glob -import os -import subprocess -from itertools import chain - -armaclass_path = 'armaclass' -types = ('*.html', '*.c', '*.cpp', '*.pyd', '*.so') -files_to_delete = chain(*(glob.glob(os.path.join(armaclass_path, file_type)) for file_type in types)) -for file_path in files_to_delete: - os.remove(file_path) - -subprocess.run('python setup_cython.py build_ext --inplace --force', shell=True, check=True) -subprocess.run('pytest -x -s', shell=True, check=True) -subprocess.run('python testconfig.py', shell=True, check=True) +import glob +import os +import subprocess +from itertools import chain + +armaclass_path = 'armaclass' +types = ('*.html', '*.c', '*.cpp', '*.pyd', '*.so') +files_to_delete = chain(*(glob.glob(os.path.join(armaclass_path, file_type)) for file_type in types)) +for file_path in files_to_delete: + os.remove(file_path) + +subprocess.run('python setup_cython.py build_ext --inplace --force', shell=True, check=True) +subprocess.run('pytest -x -s', shell=True, check=True) +subprocess.run('python testconfig.py', shell=True, check=True) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e69de29