-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
100 additions
and
41 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
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,14 +1,18 @@ | ||
import glob | ||
import os | ||
import subprocess | ||
from itertools import chain | ||
from pathlib import Path | ||
|
||
armaclass_path = 'armaclass' | ||
armaclass_path = 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)) | ||
|
||
files_to_delete = [] | ||
for file_type in types: | ||
files_to_delete.extend(armaclass_path.glob(file_type)) | ||
|
||
for file_path in files_to_delete: | ||
print('Deleting', file_path) | ||
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) | ||
subprocess.run('python tests/testconfig.py', shell=True, check=True) |
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 +1 @@ | ||
Cython~=3.0b | ||
Cython~=3.0 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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