Skip to content

Commit

Permalink
Merge pull request #1 from aivclab/v2
Browse files Browse the repository at this point in the history
fix setup
  • Loading branch information
cnheider authored Oct 31, 2024
2 parents 24a61f3 + 8d452a7 commit 2acd1c3
Show file tree
Hide file tree
Showing 350 changed files with 7,021 additions and 5,016 deletions.
135 changes: 135 additions & 0 deletions .github/images/aivclab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .github/images/alexandra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions .github/images/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion .github/images/horn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions .github/workflows/on_push_python_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=*exclude*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
- name: Test with pytest
run: |
pip install pytest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
Expand All @@ -34,15 +34,15 @@ jobs:
env:
test_pypi_password: ${{ secrets.test_pypi_secret }}
if: env.test_pypi_password != null && endsWith(github.ref, 'master') && github.repository_owner == 'aivclab'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.test_pypi_secret }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
env:
pypi_password: ${{ secrets.pypi_secret }}
if: env.pypi_password != null && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'aivclab'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_secret }}
#verbose: true
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements/requirements_dev.txt
pip install -r requirements/requirements_tests.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements/requirements_dev.txt
pip install -r requirements/requirements_tests.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install package
run: |
pip install -e .[test]
run: |
pip install -e .[test]
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=*exclude*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
- name: Test with pytest
run: |
pip install pytest
pytest
run: |
pip install pytest
pytest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ downloads
eggs
parts
*.egg-info

*.out
*.py[cod]

.pytest_cache
Expand Down
34 changes: 17 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: 22.6.0
rev: 24.10.0
hooks:
- id: black
language_version: python3.8
language_version: python3.10
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest
language: system
- id: pytest-check
name: pytest-check
entry: pytest
language: system
pass_filenames: false
always_run: true
always_run: true
- repo: local
hooks:
- id: flake8-check1 # stop the build if there are Python syntax errors or undefined names
name: flake8-check1
entry: flake8 heimdallr --count --select=E9,F63,F7,F82 --show-source --statistics
language: system
- id: flake8-check1 # stop the build if there are Python syntax errors or undefined names
name: flake8-check1
entry: flake8 heimdallr --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=*exclude*
language: system
pass_filenames: false
always_run: true
always_run: true
- repo: local
hooks:
- id: flake8-check2 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
name: flake8-check2
entry: flake8 heimdallr --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
language: system
- id: flake8-check2 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
name: flake8-check2
entry: flake8 heimdallr --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
language: system
pass_filenames: false
always_run: true
always_run: true
24 changes: 24 additions & 0 deletions .run/server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="server" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
<module name="heimdallr" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/heimdallr/entry_points" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/heimdallr/entry_points/server.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
</component>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<!--![horn](.github/images/horn.svg "horn")-->

<p align="center">
Expand Down
4 changes: 0 additions & 4 deletions benchmarks/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions docs/clean.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
pushd %~dp0

del github
del source/generated
1 change: 1 addition & 0 deletions docs/clean.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
rm -rf github
rm -rf source/generated
Binary file modified docs/github/doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/github/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/github/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 0853232e1993b77e6cb685ad9aab75cf
config: 286e53d25a3c38e2844123edfc3fe8c7
tags: 645f666f9bcd5a90fca523b33c5a78b7
3 changes: 3 additions & 0 deletions docs/github/html/_modules/heimdallr.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ <h1>Source code for heimdallr</h1><div class="highlight"><pre>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ <h1>Source code for heimdallr.configuration.heimdallr_settings</h1><div class="h
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../index.html">
<img class="logo" src="../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ <h1>Source code for heimdallr.server.board_layout.body</h1><div class="highlight
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../../index.html">
<img class="logo" src="../../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ <h1>Source code for heimdallr.server.board_layout.footer</h1><div class="highlig
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../../index.html">
<img class="logo" src="../../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ <h1>Source code for heimdallr.server.board_layout.header</h1><div class="highlig
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../../index.html">
<img class="logo" src="../../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ <h1>Source code for heimdallr.server.board_layout.menu</h1><div class="highlight
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../../index.html">
<img class="logo" src="../../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../../index.html">heimdallr</a></h1>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ <h1>Source code for heimdallr.server.board_layout.root_layout</h1><div class="hi
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../../index.html">
<img class="logo" src="../../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../../index.html">heimdallr</a></h1>


Expand Down
3 changes: 3 additions & 0 deletions docs/github/html/_modules/heimdallr/utilities/date_tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ <h1>Source code for heimdallr.utilities.date_tools</h1><div class="highlight"><p
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../../index.html">
<img class="logo" src="../../../_static/horn.svg" alt="Logo"/>
</a></p>
<h1 class="logo"><a href="../../../index.html">heimdallr</a></h1>


Expand Down
Loading

0 comments on commit 2acd1c3

Please sign in to comment.