File tree Expand file tree Collapse file tree 13 files changed +120
-114
lines changed
Expand file tree Collapse file tree 13 files changed +120
-114
lines changed Original file line number Diff line number Diff line change @@ -41,26 +41,29 @@ jobs:
4141 run : |
4242 python setup.py bdist_wheel
4343
44+ - name : Build source package on Windows
45+ if : runner.os == 'Windows' && matrix.python-version == '3.7'
46+ run : |
47+ python setup.py sdist
48+
4449 - name : Build manylinux wheel
4550 if : runner.os == 'Linux' && matrix.python-version == '3.7'
4651 uses : RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2010_x86_64
52+ env :
53+ GITHUB_BUILD_ACTION : True
4754 with :
48- python-versions : ' cp37-cp37m cp38-cp38m cp39-cp39m '
55+ python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 '
4956 build-requirements : ' numpy'
50- pip-wheel-args : ' -w ./wheelhouse ' # save wheel packages to wheelhouse folder
57+ system-packages : ' libffi-devel '
5158 pre-build-command : ' export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH'
59+ pip-wheel-args : ' -w ./wheelhouse' # save wheel packages to wheelhouse folder
5260
5361 - name : Move valid packages to dist folder for manylinux
5462 if : runner.os == 'Linux' && matrix.python-version == '3.7'
5563 run : |
5664 mkdir -p dist
5765 cp wheelhouse/pymaro-*-manylinux*.whl dist
5866
59- - name : Build source package on linux
60- if : runner.os == 'Linux' && matrix.python-version == '3.7'
61- run : |
62- python setup.py sdist
63-
6467 - name : Upload linux wheel to artifact
6568 uses : actions/upload-artifact@v2
6669 with :
Original file line number Diff line number Diff line change 1- @ ECHO OFF
2-
3- rem script to build maro locally on Windows, usually for development
4-
5- chdir " %~dp0 .."
6-
7- rem compile cython files
8- call scripts\compile_cython.bat
9-
10- python setup.py build_ext -i
1+ @ ECHO OFF
2+
3+ rem script to build maro locally on Windows, usually for development
4+
5+ chdir " %~dp0 .."
6+
7+ rem compile cython files
8+ call scripts\compile_cython.bat
9+
10+ python setup.py build_ext -i
Original file line number Diff line number Diff line change 1010# compile cython files first
1111bash ./scripts/compile_cython.sh
1212
13- python setup.py build_ext -i
13+ python setup.py build_ext -i
Original file line number Diff line number Diff line change 1- chdir " %~dp0 .."
2-
3- python setup.py sdist
1+ chdir " %~dp0 .."
2+
3+ python setup.py sdist
Original file line number Diff line number Diff line change 1010
1111bash ./scripts/compile_cython.sh
1212
13- python setup.py sdist
13+ python setup.py sdist
Original file line number Diff line number Diff line change 1-
2- rem script to build wheel package on Windows
3- rem NOTE: Before building the wheels, please make sure you have setup-up the environment.
4- rem for python 3.6/3.7 we need vs++14
5-
6- chdir " %~dp0 .."
7-
8- call scripts\compile_cython.bat
9-
10- pip install -r maro/requirements.build.txt
11- pip install wheel
12- pip install --upgrade setuptools
13-
14- python setup.py bdist_wheel
1+
2+ rem script to build wheel package on Windows
3+ rem NOTE: Before building the wheels, please make sure you have setup-up the environment.
4+ rem for python 3.6/3.7 we need vs++14
5+
6+ chdir " %~dp0 .."
7+
8+ call scripts\compile_cython.bat
9+
10+ pip install -r maro/requirements.build.txt
11+ pip install wheel
12+ pip install --upgrade setuptools
13+
14+ python setup.py bdist_wheel
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set -e -x
88cd /maro
99
1010# Compile wheels
11- for PYVER in 6 7 ; do
11+ for PYVER in 7 8 9 ; do
1212 PYBIN=" /opt/python/cp3${PYVER} -cp3${PYVER} m/bin"
1313
1414 " ${PYBIN} /pip" install -r maro/requirements.build.txt
Original file line number Diff line number Diff line change 1- @ ECHO OFF
2-
3- rem Script to install MARO in editable mode on Windows,
4- rem usually for development.
5-
6- chdir " %~dp0 .."
7-
8- rem Install dependencies.
9- pip install -r .\maro\requirements.build.txt
10-
11- rem Compile cython files.
12- call .\scripts\compile_cython.bat
13-
14- call .\scripts\install_torch.bat
15-
16- rem Install MARO in editable mode.
17- pip install -e .
1+ @ ECHO OFF
2+
3+ rem Script to install MARO in editable mode on Windows,
4+ rem usually for development.
5+
6+ chdir " %~dp0 .."
7+
8+ rem Install dependencies.
9+ pip install -r .\maro\requirements.build.txt
10+
11+ rem Compile cython files.
12+ call .\scripts\compile_cython.bat
13+
14+ call .\scripts\install_torch.bat
15+
16+ rem Install MARO in editable mode.
17+ pip install -e .
Original file line number Diff line number Diff line change 1- pip install torch== =1.6.0 torchvision== =0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
1+ pip install torch== =1.6.0 torchvision== =0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
Original file line number Diff line number Diff line change 1- rem script to run all the test script under tests folder which the file name match test_xxxx.py
2-
3- chdir " %~dp0 .."
4-
5- set " PYTHONPAH = ."
6-
7- call scripts/build_maro.bat
8-
9- rem install requirements
10-
11- pip install -r ./tests/requirements.test.txt
12-
13- rem show coverage
14-
15- coverage run --rcfile=./tests/.coveragerc
16-
17- coverage report --rcfile=./tests/.coveragerc
1+ rem script to run all the test script under tests folder which the file name match test_xxxx.py
2+
3+ chdir " %~dp0 .."
4+
5+ set " PYTHONPAH = ."
6+
7+ call scripts/build_maro.bat
8+
9+ rem install requirements
10+
11+ pip install -r ./tests/requirements.test.txt
12+
13+ rem show coverage
14+
15+ coverage run --rcfile=./tests/.coveragerc
16+
17+ coverage report --rcfile=./tests/.coveragerc
You can’t perform that action at this time.
0 commit comments