khoca 0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- khoca-0.3/.github/workflows/push_docker.yml +20 -0
- khoca-0.3/.github/workflows/run_tests.yml +37 -0
- khoca-0.3/.github/workflows/upload_pypi.yml +18 -0
- khoca-0.3/.gitignore +11 -0
- khoca-0.3/COPYING +674 -0
- khoca-0.3/Dockerfile +26 -0
- khoca-0.3/INSTALL +36 -0
- khoca-0.3/MANIFEST.in +1 -0
- khoca-0.3/Makefile +83 -0
- khoca-0.3/PKG-INFO +221 -0
- khoca-0.3/README.md +191 -0
- khoca-0.3/__init__.py +317 -0
- khoca-0.3/bin/BraidToMyPD.py +51 -0
- khoca-0.3/bin/KrasnerGaussToMyPD.py +43 -0
- khoca-0.3/bin/KrasnerGaussToMyPDLib.py +122 -0
- khoca-0.3/bin/pseudoBraidToKrasnerGauss.py +41 -0
- khoca-0.3/bin/pseudoBraidToKrasnerGaussLib.py +46 -0
- khoca-0.3/converters/binToHuman.py +116 -0
- khoca-0.3/converters/humanToBin.py +131 -0
- khoca-0.3/converters/montesinos.py +143 -0
- khoca-0.3/data/KhovanovMinus +11 -0
- khoca-0.3/data/KhovanovMinus.bin +0 -0
- khoca-0.3/data/KhovanovPlus +11 -0
- khoca-0.3/data/KhovanovPlus.bin +0 -0
- khoca-0.3/data/KrasnerMinus +20 -0
- khoca-0.3/data/KrasnerMinus.bin +0 -0
- khoca-0.3/data/KrasnerPlus +20 -0
- khoca-0.3/data/KrasnerPlus.bin +0 -0
- khoca-0.3/docker/entrypoint.sh +4 -0
- khoca-0.3/khoca.egg-info/PKG-INFO +221 -0
- khoca-0.3/khoca.egg-info/SOURCES.txt +69 -0
- khoca-0.3/khoca.egg-info/dependency_links.txt +1 -0
- khoca-0.3/khoca.egg-info/not-zip-safe +1 -0
- khoca-0.3/khoca.egg-info/top_level.txt +6 -0
- khoca-0.3/khoca.py +446 -0
- khoca-0.3/pyproject.toml +8 -0
- khoca-0.3/pytest.ini +4 -0
- khoca-0.3/setup.cfg +7 -0
- khoca-0.3/setup.py +125 -0
- khoca-0.3/src/compilerFlagsInfo.cpp +1 -0
- khoca-0.3/src/krasner/krasner.cpp +821 -0
- khoca-0.3/src/krasner/krasner.h +494 -0
- khoca-0.3/src/krasner/krasnerExplicitTemplates.cpp +72 -0
- khoca-0.3/src/planar_algebra/coefficient_rings.cpp +457 -0
- khoca-0.3/src/planar_algebra/coefficient_rings.h +303 -0
- khoca-0.3/src/planar_algebra/coefficient_rings_explicitTemplates.cpp +38 -0
- khoca-0.3/src/planar_algebra/explicitTemplates.cpp +87 -0
- khoca-0.3/src/planar_algebra/planar_algebra.cpp +1159 -0
- khoca-0.3/src/planar_algebra/planar_algebra.h +729 -0
- khoca-0.3/src/planar_algebra/smith.cpp +217 -0
- khoca-0.3/src/planar_algebra/smith.h +22 -0
- khoca-0.3/src/planar_algebra/sparsemat.cpp +715 -0
- khoca-0.3/src/planar_algebra/sparsemat.h +288 -0
- khoca-0.3/src/planar_algebra/sparsematExplicitTemplates.cpp +125 -0
- khoca-0.3/src/python_interface/pui.cpp +18863 -0
- khoca-0.3/src/python_interface/pui.pyx +288 -0
- khoca-0.3/src/python_interface/pythonInterface.cpp +471 -0
- khoca-0.3/src/python_interface/pythonInterface.h +71 -0
- khoca-0.3/src/shared.cpp +71 -0
- khoca-0.3/src/shared.h +95 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Publish Docker
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
create:
|
|
5
|
+
tag:
|
|
6
|
+
- '*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@master
|
|
14
|
+
- name: Publish to Registry
|
|
15
|
+
uses: elgohr/Publish-Docker-Github-Action@master
|
|
16
|
+
with:
|
|
17
|
+
name: soehms/khoca
|
|
18
|
+
username: ${{ secrets.DOCKER_USER }}
|
|
19
|
+
password: ${{ secrets.DOCKER_API_TOKEN }}
|
|
20
|
+
tag_names: true
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This workflow runs tests to build Khoca on verois systems
|
|
2
|
+
|
|
3
|
+
name: Run Tests
|
|
4
|
+
|
|
5
|
+
# Triggers the workflow on push or pull request events and manually
|
|
6
|
+
on: [push, pull_request, workflow_dispatch]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
# This workflow contains one job called build
|
|
10
|
+
build:
|
|
11
|
+
name: Build Khoca
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
# Checks-out the repository under $GITHUB_WORKSPACE, so our job can access it
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
id: checkout_code
|
|
18
|
+
uses: actions/checkout@v2
|
|
19
|
+
|
|
20
|
+
# Installs dependencies
|
|
21
|
+
- name: Install Dependencies
|
|
22
|
+
id: dependencies
|
|
23
|
+
run: |
|
|
24
|
+
sudo apt-get update -y
|
|
25
|
+
sudo apt-get install -y make g++ python3 python3-pip libgmp-dev pari-gp2c
|
|
26
|
+
pip3 install cython
|
|
27
|
+
|
|
28
|
+
# Building Khoca
|
|
29
|
+
- name: Make
|
|
30
|
+
id: make
|
|
31
|
+
run: make
|
|
32
|
+
|
|
33
|
+
# Run a Test (should result to 1)
|
|
34
|
+
- name: Run Test
|
|
35
|
+
id: run_test
|
|
36
|
+
run: |
|
|
37
|
+
./khoca.py 0 0.0 0 braidaBaB calc0 | grep -c "t^-2q^4 + t^-1q^2 + t^0q^0 + t^1q^-2 + t^2q^-4"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: PyPI Deployer
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- "*" # Push events of new tags
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
# Allow to run manually
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
Linux-build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
env:
|
|
13
|
+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
|
|
14
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
- name: build and upload manylinux wheels
|
|
18
|
+
uses: Niraj-Kamdar/manylinux-wheel-builder@master
|
khoca-0.3/.gitignore
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
bin/__pycache__/
|
|
2
|
+
bin/pui.so
|
|
3
|
+
src/krasner/krasner.o
|
|
4
|
+
src/planar_algebra/coefficient_rings.o
|
|
5
|
+
src/planar_algebra/planar_algebra.o
|
|
6
|
+
src/planar_algebra/smith.o
|
|
7
|
+
src/planar_algebra/sparsemat.o
|
|
8
|
+
src/python_interface/pui.cpp
|
|
9
|
+
src/python_interface/pui.o
|
|
10
|
+
src/python_interface/pythonInterface.o
|
|
11
|
+
src/shared.o
|