forked from anyoptimization/pymoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dependencies to create documentation
- Loading branch information
Showing
33 changed files
with
545 additions
and
640 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches: | ||
- deploy | ||
|
||
|
||
jobs: | ||
|
||
build: | ||
runs-on: "${{ matrix.os }}" | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
name: "Set up Python" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- | ||
name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel numpy cython | ||
- | ||
uses: knicknic/os-specific-run@v1 | ||
with: | ||
linux: "python setup.py sdist" | ||
macos: "python setup.py bdist_wheel" | ||
windows: "python setup.py bdist_wheel" | ||
- | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
strategy: | ||
matrix: | ||
exclude: | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.7" | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.8" | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.9" | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
python-version: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
build-manylinux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
build-requirements: "cython numpy" | ||
pip-wheel-args: "-w ./dist --no-deps" | ||
python-versions: "cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310" | ||
- | ||
name: "Remove non-compatible packages" | ||
run: "sudo rm dist/*linux_x86_64.whl\n" | ||
- | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
deploy: | ||
needs: | ||
- build | ||
- build-manylinux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
- | ||
name: "Set up Python" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- | ||
env: | ||
TWINE_PASSWORD: "${{ secrets.PYPI_PASSWORD }}" | ||
TWINE_USERNAME: "${{ secrets.PYPI_USERNAME }}" | ||
name: Publish | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine | ||
twine upload --skip-existing --repository testpypi dist/* |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- release | ||
- develop | ||
- main | ||
|
||
jobs: | ||
|
||
testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: Install Dependencies | ||
run: | | ||
pip install numpy | ||
pip install -r docs/requirements.txt | ||
- name: Create Documentation | ||
run: | | ||
cd docs | ||
make html | ||
- name: Upload Documentation | ||
uses: trendyminds/github-actions-rsync@master | ||
with: | ||
RSYNC_OPTIONS: -avzr --delete --exclude '*.ipynb' | ||
RSYNC_TARGET: /home/blankjul/pymoo.org/${BRANCH_NAME} | ||
RSYNC_SOURCE: build/html/* | ||
env: | ||
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}} | ||
SSH_USERNAME: ${{secrets.SSH_USERNAME}} | ||
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}} | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- master | ||
- release | ||
- main | ||
|
||
|
||
jobs: | ||
|
@@ -23,102 +24,23 @@ jobs: | |
- name: Install pymoo | ||
run: | | ||
pip install . | ||
rm -rf pymoo | ||
- name: Run Tests | ||
run: pytest -v --no-header --overwrite | ||
|
||
build: | ||
needs: testing | ||
runs-on: "${{ matrix.os }}" | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
name: "Set up Python" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- | ||
name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel numpy | ||
- | ||
uses: knicknic/os-specific-run@v1 | ||
with: | ||
linux: "python setup.py sdist" | ||
macos: "python setup.py bdist_wheel" | ||
windows: "python setup.py bdist_wheel" | ||
- | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
strategy: | ||
matrix: | ||
exclude: | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.7" | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.8" | ||
- | ||
os: ubuntu-latest | ||
python-version: "3.9" | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
python-version: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
build-manylinux: | ||
needs: testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
build-requirements: "cython numpy" | ||
pip-wheel-args: "-w ./dist --no-deps" | ||
python-versions: "cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310" | ||
- | ||
name: "Remove non-compatible packages" | ||
run: "sudo rm dist/*linux_x86_64.whl\n" | ||
- | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
deploy: | ||
needs: | ||
- build | ||
- build-manylinux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
- | ||
name: "Set up Python" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- | ||
env: | ||
TWINE_PASSWORD: "${{ secrets.PYPI_PASSWORD }}" | ||
TWINE_USERNAME: "${{ secrets.PYPI_USERNAME }}" | ||
name: Publish | ||
cd tests | ||
pytest -vv --maxfail 1 --overwrite test_docs.py | ||
cd .. | ||
- name: Create Documentation | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine | ||
twine upload --skip-existing --repository testpypi dist/* | ||
cd docs | ||
make html | ||
- name: Upload Documentation | ||
uses: trendyminds/github-actions-rsync@master | ||
with: | ||
RSYNC_OPTIONS: -avzr --delete --exclude '*.ipynb' | ||
RSYNC_TARGET: /home/blankjul/pymoo.org/${BRANCH_NAME} | ||
RSYNC_SOURCE: build/html/* | ||
env: | ||
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}} | ||
SSH_USERNAME: ${{secrets.SSH_USERNAME}} | ||
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}} | ||
|
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,4 +1,4 @@ | ||
recursive-include pymoo *.py *.cpp | ||
recursive-exclude pymoo *.so *.pyx *.pxd *.pf | ||
recursive-exclude pymoo/cache * | ||
prune . | ||
recursive-include pymoo *.py *.pyx | ||
recursive-include pymoo/cython/vendor *.c *.h | ||
include LICENSE Makefile |
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 |
---|---|---|
|
@@ -32,4 +32,4 @@ goto end | |
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd | ||
popd |
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,13 @@ | ||
numpy | ||
sphinx<4 | ||
matplotlib | ||
jinja2==3 | ||
sphinx==3.5.4 | ||
pydata-sphinx-theme==0.4.0 | ||
sphinxcontrib-bibtex<2.0.0 | ||
numpydoc | ||
nbsphinx | ||
sphinxcontrib-bibtex<2.0.0 | ||
pydata-sphinx-theme<0.5 | ||
ipython | ||
pygments | ||
bs4 | ||
pandoc | ||
sphinx_book_theme | ||
pytest | ||
ipykernel | ||
pyrecorder | ||
ipykernel |
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
Oops, something went wrong.