diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..e8a405f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = src \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..c07e9d6 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,26 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.7' + - 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 }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/tox.yaml b/.github/workflows/tox.yaml index 20ec42f..34df42a 100644 --- a/.github/workflows/tox.yaml +++ b/.github/workflows/tox.yaml @@ -18,6 +18,14 @@ jobs: run: | git fetch origin master:master --update-head-ok git merge master + - name: Setup Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: "3.8" + - name: Install Tox and any other packages + run: pip install tox + - name: Run Tox + run: tox -e docs # Run tox using the version of Python in `PATH` - name: Setup Python 3.7 uses: actions/setup-python@v1 with: diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..9ed1e43 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,13 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +sphinx: + fail_on_warning: true + configuration: docs/conf.py + +python: + version: 3.7 + install: + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..5576e19 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,2 @@ +numpy +scipy \ No newline at end of file