hilbert-modular-group 0.1.1__tar.gz → 0.1.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.
Potentially problematic release.
This version of hilbert-modular-group might be problematic. Click here for more details.
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/Dockerfile +8 -7
- hilbert_modular_group-0.1.3/Makefile +110 -0
- hilbert_modular_group-0.1.3/PKG-INFO +891 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/README.md +52 -29
- hilbert_modular_group-0.1.3/_doctest_environment.py +5 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/entrypoint.sh +2 -2
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/examples/ExamplesK1.ipynb +11 -4
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/examples/ExamplesK2.ipynb +26 -17
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/examples/ExamplesK3.ipynb +28 -10
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/examples/ExamplesK4.ipynb +11 -10
- hilbert_modular_group-0.1.3/examples/plot.py +324 -0
- hilbert_modular_group-0.1.3/pyproject.toml +50 -0
- hilbert_modular_group-0.1.3/setup.cfg +4 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/setup.py +30 -26
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/all.py +5 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/hilbert_modular_group_class.py +67 -60
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/hilbert_modular_group_element.pyx +7 -6
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/pullback.py +89 -64
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/pullback_cython.pyx +3 -7
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/upper_half_plane.pxd +1 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/upper_half_plane.pyx +65 -24
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/utils.py +27 -0
- hilbert_modular_group-0.1.3/src/hilbert_modgroup/version.py +21 -0
- hilbert_modular_group-0.1.3/src/hilbert_modular_group.egg-info/PKG-INFO +891 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3/src}/hilbert_modular_group.egg-info/SOURCES.txt +7 -6
- hilbert_modular_group-0.1.3/src/hilbert_modular_group.egg-info/requires.txt +2 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/tox.ini +30 -9
- hilbert_modular_group-0.1.1/Makefile +0 -82
- hilbert_modular_group-0.1.1/PKG-INFO +0 -193
- hilbert_modular_group-0.1.1/examples/plot.py +0 -135
- hilbert_modular_group-0.1.1/hilbert_modular_group.egg-info/PKG-INFO +0 -193
- hilbert_modular_group-0.1.1/pyproject.toml +0 -12
- hilbert_modular_group-0.1.1/setup.cfg +0 -40
- hilbert_modular_group-0.1.1/src/hilbert_modgroup/version.py +0 -5
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/.github/workflows/docker-image.yml +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/.gitignore +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/.relint.yaml +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/CHANGELOG.md +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/LICENSE +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/MANIFEST.in +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3}/src/hilbert_modgroup/__init__.py +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3/src}/hilbert_modular_group.egg-info/dependency_links.txt +0 -0
- {hilbert_modular_group-0.1.1 → hilbert_modular_group-0.1.3/src}/hilbert_modular_group.egg-info/top_level.txt +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
ARG REMOTE_SRC=1
|
|
2
2
|
ARG GIT_BRANCH=develop
|
|
3
|
-
|
|
4
|
-
FROM sagemath/sagemath:
|
|
3
|
+
ARG BUILDPLATFORM=linux/amd64
|
|
4
|
+
FROM --platform=${BUILDPLATFORM} sagemath/sagemath:10.5 AS base
|
|
5
5
|
RUN sudo apt-get update
|
|
6
|
-
RUN sudo
|
|
6
|
+
RUN sudo dpkg --configure -a
|
|
7
|
+
RUN sudo apt-get -f -y install git
|
|
7
8
|
|
|
8
|
-
FROM base
|
|
9
|
+
FROM base AS use-git-1
|
|
9
10
|
RUN git clone https://github.com/fredstro/hilbertmodgroup.git
|
|
10
|
-
WORKDIR "hilbertmodgroup"
|
|
11
|
+
WORKDIR "/home/sage/hilbertmodgroup"
|
|
11
12
|
RUN git config pull.rebase false && git checkout ${GIT_BRANCH}
|
|
12
13
|
|
|
13
|
-
FROM base
|
|
14
|
+
FROM base AS use-git-0
|
|
14
15
|
ARG GIT_BRANCH=''
|
|
15
16
|
COPY --chown=sage . hilbertmodgroup
|
|
16
|
-
WORKDIR "hilbertmodgroup"
|
|
17
|
+
WORKDIR "/home/sage/hilbertmodgroup"
|
|
17
18
|
|
|
18
19
|
FROM use-git-${REMOTE_SRC} AS final
|
|
19
20
|
RUN sudo apt-get -y install make
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Command line arguments:
|
|
2
|
+
# Set to 1 to use GIT instead of local source for docker install
|
|
3
|
+
REMOTE_SRC=0
|
|
4
|
+
# Set to desired git branch if using GIT source
|
|
5
|
+
GIT_BRANCH=main
|
|
6
|
+
# Port for notebook
|
|
7
|
+
NBPORT=8888
|
|
8
|
+
# Arguments for tox
|
|
9
|
+
TOX_ARGS=doctest,coverage,pycodestyle,relint,codespell,flake8,passagemath
|
|
10
|
+
|
|
11
|
+
ifeq (0,$(REMOTE_SRC))
|
|
12
|
+
TAG=local
|
|
13
|
+
GIT_BRANCH=
|
|
14
|
+
else
|
|
15
|
+
TAG=$(GIT_BRANCH)
|
|
16
|
+
endif
|
|
17
|
+
|
|
18
|
+
EXAMPLES_ARGS:=$(GIT_BRANCH) $(NBPORT)
|
|
19
|
+
SAGE_EXEC:=$(shell which sage)
|
|
20
|
+
|
|
21
|
+
sage-build: sage-check
|
|
22
|
+
sage -pip install build
|
|
23
|
+
sage -python -m build .
|
|
24
|
+
|
|
25
|
+
sage-sdist: sage-check
|
|
26
|
+
sage -python -m build --sdist .
|
|
27
|
+
|
|
28
|
+
sage-install: sage-check
|
|
29
|
+
sage -pip install .
|
|
30
|
+
|
|
31
|
+
build: venv-check
|
|
32
|
+
pip install build
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
sdist: venv-check
|
|
36
|
+
python -m build --sdist
|
|
37
|
+
|
|
38
|
+
install: venv-check
|
|
39
|
+
pip install .
|
|
40
|
+
|
|
41
|
+
test: sage-check
|
|
42
|
+
sage -t src/*
|
|
43
|
+
|
|
44
|
+
sage-examples: sage-check
|
|
45
|
+
sage --notebook=jupyterlab --no-browser --ip='0.0.0.0' --port=$(NBPORT)\
|
|
46
|
+
--notebook-dir=examples\
|
|
47
|
+
--ServerApp.custom_display_url=http://127.0.0.1:$(NBPORT)\
|
|
48
|
+
--ServerApp.use_redirect_file=False\
|
|
49
|
+
--ServerApp.browser=x-www-browser
|
|
50
|
+
|
|
51
|
+
examples: venv-check
|
|
52
|
+
pip install jupyterlab
|
|
53
|
+
jupyter lab --no-browser --ip='0.0.0.0' --port=$(NBPORT)\
|
|
54
|
+
--notebook-dir=examples\
|
|
55
|
+
--ServerApp.custom_display_url=http://127.0.0.1:$(NBPORT)\
|
|
56
|
+
--ServerApp.use_redirect_file=False\
|
|
57
|
+
--ServerApp.browser=x-www-browser
|
|
58
|
+
|
|
59
|
+
tox: sage-check
|
|
60
|
+
sage -pip install tox meson
|
|
61
|
+
sage --python -m tox -c tox.ini -e $(TOX_ARGS)
|
|
62
|
+
|
|
63
|
+
docker-build:
|
|
64
|
+
docker build --build-arg GIT_BRANCH=$(GIT_BRANCH) --build-arg REMOTE_SRC=$(REMOTE_SRC) -t hilbertmodgroup-$(TAG) .
|
|
65
|
+
|
|
66
|
+
docker-rebuild:
|
|
67
|
+
docker build --build-arg GIT_BRANCH=$(GIT_BRANCH) --build-arg REMOTE_SRC=$(REMOTE_SRC) --no-cache -t hilbertmodgroup-$(TAG) .
|
|
68
|
+
|
|
69
|
+
docker-test: docker-build
|
|
70
|
+
docker run --platform linux/amd64 -it -e GIT_BRANCH=$(GIT_BRANCH) --init hilbertmodgroup-$(TAG) test
|
|
71
|
+
|
|
72
|
+
docker-examples: docker-build
|
|
73
|
+
docker run --platform linux/amd64 -p $(NBPORT):$(NBPORT) -it -e GIT_BRANCH=$(GIT_BRANCH) -e NBPORT=$(NBPORT) --init hilbertmodgroup-$(TAG) examples $(EXAMPLES_ARGS)
|
|
74
|
+
|
|
75
|
+
docker-tox: docker-build
|
|
76
|
+
docker run --platform linux/amd64 -it -e GIT_BRANCH=$(GIT_BRANCH) -e TOX_ARGS=$(TOX_ARGS) --init hilbertmodgroup-$(TAG) tox
|
|
77
|
+
|
|
78
|
+
docker-shell: docker-build
|
|
79
|
+
docker run --platform linux/amd64 -it -e GIT_BRANCH=$(GIT_BRANCH) --init hilbertmodgroup-$(TAG) shell
|
|
80
|
+
|
|
81
|
+
docker-sage: docker-build
|
|
82
|
+
docker run --platform linux/amd64 -it -e GIT_BRANCH=$(GIT_BRANCH) --init hilbertmodgroup-$(TAG) run
|
|
83
|
+
|
|
84
|
+
venv-check:
|
|
85
|
+
@if [ "${VIRTUAL_ENV}" = "" ]; then\
|
|
86
|
+
echo "It seems you are trying to build this outside a virtual environment. If you know what you are doing you can comment out this check, otherwise read the README.md file" >&2;\
|
|
87
|
+
exit 1;\
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
sage-check:
|
|
91
|
+
@if [ "${SAGE_EXEC}" = "" ]; then\
|
|
92
|
+
echo "No sage in PATH:$(PATH). Please install sage first, add the relevant path or use python build.";\
|
|
93
|
+
exit 1;\
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
clean:
|
|
97
|
+
rm -rf src/hilbert_modgroup/*.c
|
|
98
|
+
rm -rf src/hilbert_modgroup/*.so
|
|
99
|
+
rm -rf src/hilbert_modgroup/*.cpp
|
|
100
|
+
rm -rf hilbert_modular_group.egg-info
|
|
101
|
+
rm -rf build
|
|
102
|
+
rm -rf dist
|
|
103
|
+
rm -rf Library
|
|
104
|
+
rm -rf __pycache__
|
|
105
|
+
rm -rf src/*/__pycache__
|
|
106
|
+
|
|
107
|
+
.PHONY: sage-check venv-check clean shell\
|
|
108
|
+
build sdist install test examples tox\
|
|
109
|
+
sage-build sage-sdist sage-install sage-examples \
|
|
110
|
+
docker docker-examples docker-rebuild docker-shell docker-test docker-tox\
|