Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp version #34

Merged
merged 23 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

name: Unittest

on: [push, pull_request]
on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8.x', '3.9.x', '3.10.x']

python-version: ['3.8.x', '3.9.x', '3.10.x', '3.11.x']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -24,6 +23,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Install
run : python -m pip install -e . -v
- name: Test with coverage
run: |
coverage run -m unittest discover
Expand Down
80 changes: 71 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,86 @@ on:
release:
types: [created]


jobs:
publish-any:
publish-mac-windows:
strategy:
matrix:
python-version: ["3.6.x", "3.7.x", "3.8.x", "3.9.x", "3.10.x", "3.11.x"]
os: [macos-latest, windows-latest]
exclude:
- os: macos-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
architecture: ${{matrix.architecture}}
- name: Install Ninja
if: startsWith(matrix.os, 'macOS')
run: |
brew install ninja
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine ninja mypy pybind11
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# python setup.py bdist_wheel
# twine upload dist/*

publish-unix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
pip install setuptools wheel twine mypy pybind11
- name: build manylinux
uses: RalfG/[email protected]_x86_64
with:
system-packages: 'ninja-build'
# - name: Publish manylinux
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# twine upload dist/*-manylinux*.whl

publish-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
sudo apt update -y
sudo apt install ninja-build -y
python -m pip install --upgrade pip
pip install setuptools wheel twine mypy pybind11
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# python setup.py sdist
# twine upload dist/*.tar.gz

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ data/
deploy.sh
x.py
run.py
install
4 changes: 4 additions & 0 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ strictness: high
ignore-paths:
- docs
- venv
- modcma/c_maes/cmaescpp
- x.py

ignore-patterns:
- *.pyi

pep257:
run: true
disable:
Expand Down
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
graft include
graft modcma
graft external/Eigen

global-exclude */__pycache__/*
global-exclude *.pyc
Loading
Loading