Skip to content

Commit 5405769

Browse files
committed
Merge branch 'release/doc'
2 parents 0999f1d + 14ea8ce commit 5405769

File tree

232 files changed

+20753
-6344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+20753
-6344
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@
114114
*.pdf filter=lfs diff=lfs merge=lfs -text
115115

116116
# Disabled
117-
docs/**/* -filter=lfs -diff=lfs -merge=lfs -text
117+
# docs/**/* -filter=lfs -diff=lfs -merge=lfs -text

.github/images/flatbuffers.svg

Lines changed: 24 additions & 54 deletions
Loading

.github/images/python.svg

Lines changed: 0 additions & 2 deletions
Loading

.github/utilities/collect_env.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import sys
77
from collections import namedtuple
88

9-
from setup import NeodroidPackage
10-
119
import neodroid
10+
from setup import NeodroidPackage
1211

1312
PY3 = sys.version_info >= (3, 0)
1413

.github/workflows/on_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v1
8-
- uses: cnheider/postdoc@master
8+
- uses: pything/postdoc@master

.github/workflows/publish-to-test-pypi.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-18.04
1313
steps:
1414
- uses: actions/checkout@master
15-
- name: Set up Python 3.7
15+
- name: Set up Python 3.8
1616
uses: actions/setup-python@v1
1717
with:
18-
python-version: 3.7
18+
python-version: 3.8
1919
- name: Install pep517
2020
run: >-
2121
python -m
@@ -31,15 +31,19 @@ jobs:
3131
--out-dir dist/
3232
.
3333
- name: Publish distribution 📦 to Test PyPI
34-
if: endsWith(github.ref, 'master')
34+
env:
35+
test_pypi_password: ${{ secrets.test_pypi_secret }}
36+
if: env.test_pypi_password != null && endsWith(github.ref, 'master') && github.repository_owner == 'sintefneodroid'
3537
uses: pypa/gh-action-pypi-publish@master
3638
with:
37-
password: ${{ secrets.test_pypi_password }}
39+
password: ${{ secrets.test_pypi_secret }}
3840
repository_url: https://test.pypi.org/legacy/
3941
- name: Publish distribution 📦 to PyPI
40-
if: startsWith(github.ref, 'refs/tags')
42+
env:
43+
pypi_password: ${{ secrets.pypi_secret }}
44+
if: env.pypi_password != null && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'sintefneodroid'
4145
uses: pypa/gh-action-pypi-publish@master
4246
with:
43-
password: ${{ secrets.pypi_password }}
47+
password: ${{ secrets.pypi_secret }}
4448
#verbose: true
4549
#skip_existing: true

.github/workflows/pythonpackage.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Python package
2+
3+
on: [ push ]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [ 3.8 ]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
pip install -r requirements/requirements_dev.txt
25+
pip install -r requirements/requirements_tests.txt
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install flake8 pytest
30+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
- name: Install package
32+
run: |
33+
pip install -e .[test]
34+
- name: Lint with flake8
35+
run: |
36+
pip install flake8
37+
# stop the build if there are Python syntax errors or undefined names
38+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41+
- name: Test with pytest
42+
run: |
43+
pip install pytest
44+
pytest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,4 @@ logs/*.csv
125125

126126

127127
pip-wheel-metadata
128-
.pytest_cache
129128
build/

.pre-commit-config.yaml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
1+
fail_fast: true
12
repos:
23
- repo: https://github.com/ambv/black
3-
rev: stable
4+
rev: 22.6.0
45
hooks:
56
- id: black
6-
language_version: python3.7
7+
language_version: python3.8
8+
- repo: local
9+
hooks:
10+
- id: pytest-check
11+
name: pytest-check
12+
entry: pytest
13+
language: system
14+
pass_filenames: false
15+
always_run: true
16+
- repo: local
17+
hooks:
18+
- id: flake8-check1 # stop the build if there are Python syntax errors or undefined names
19+
name: flake8-check1
20+
entry: flake8 neodroid --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=*exclude*
21+
language: system
22+
pass_filenames: false
23+
always_run: true
24+
- repo: local
25+
hooks:
26+
- id: flake8-check2 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
27+
name: flake8-check2
28+
entry: flake8 neodroid --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
29+
language: system
30+
pass_filenames: false
31+
always_run: true

.readthedocs.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.9"
13+
# You can also specify other tool versions:
14+
# nodejs: "16"
15+
# rust: "1.55"
16+
# golang: "1.17"
17+
18+
# Build documentation in the docs/ directory with Sphinx
19+
sphinx:
20+
configuration: docs/source/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
# formats:
24+
# - pdf
25+
26+
# Optionally declare the Python requirements required to build your docs
27+
python:
28+
install:
29+
- requirements: requirements/requirements_dev.txt

0 commit comments

Comments
 (0)