lino-prima 25.1.0__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.
- lino_prima-25.1.0/.gitignore +23 -0
- lino_prima-25.1.0/.gitlab-ci.yml +54 -0
- lino_prima-25.1.0/.travis.yml +14 -0
- lino_prima-25.1.0/COPYING +661 -0
- lino_prima-25.1.0/MANIFEST.in +3 -0
- lino_prima-25.1.0/PKG-INFO +698 -0
- lino_prima-25.1.0/README.rst +1 -0
- lino_prima-25.1.0/docs/.templates/layout.html +32 -0
- lino_prima-25.1.0/docs/.templates/links.html +5 -0
- lino_prima-25.1.0/docs/.templates/page.html +4 -0
- lino_prima-25.1.0/docs/api/index.rst +7 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.prima.migrate.rst +12 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.prima.rst +12 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.prima.user_types.rst +15 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.rst +6 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.users.fixtures.demo.rst +6 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.users.fixtures.demo2.rst +6 -0
- lino_prima-25.1.0/docs/api/lino_prima.lib.users.rst +12 -0
- lino_prima-25.1.0/docs/api/lino_prima.projects.prima1.rst +6 -0
- lino_prima-25.1.0/docs/api/lino_prima.projects.rst +6 -0
- lino_prima-25.1.0/docs/changes.rst +10 -0
- lino_prima-25.1.0/docs/conf.py +16 -0
- lino_prima-25.1.0/docs/get/index.rst +30 -0
- lino_prima-25.1.0/docs/get/manage.py +11 -0
- lino_prima-25.1.0/docs/get/settings.py +9 -0
- lino_prima-25.1.0/docs/guide/index.rst +113 -0
- lino_prima-25.1.0/docs/index.rst +21 -0
- lino_prima-25.1.0/docs/plugins/cert.rst +72 -0
- lino_prima-25.1.0/docs/plugins/index.rst +14 -0
- lino_prima-25.1.0/docs/plugins/prima.rst +207 -0
- lino_prima-25.1.0/docs/plugins/users.rst +124 -0
- lino_prima-25.1.0/docs/shared/images/buttons/eject.png +0 -0
- lino_prima-25.1.0/docs/shared/images/buttons/flash.png +0 -0
- lino_prima-25.1.0/docs/shared/images/buttons/insert.png +0 -0
- lino_prima-25.1.0/docs/shared/images/buttons/refresh.png +0 -0
- lino_prima-25.1.0/docs/shared/images/buttons/search.png +0 -0
- lino_prima-25.1.0/docs/shared/include/defs.rst +11 -0
- lino_prima-25.1.0/docs/shared/include/tested.rst +5 -0
- lino_prima-25.1.0/docs/topics/db.rst +69 -0
- lino_prima-25.1.0/docs/topics/index.rst +12 -0
- lino_prima-25.1.0/docs/topics/overview.rst +51 -0
- lino_prima-25.1.0/lino_prima/__init__.py +20 -0
- lino_prima-25.1.0/lino_prima/lib/__init__.py +12 -0
- lino_prima-25.1.0/lino_prima/lib/cert/__init__.py +29 -0
- lino_prima-25.1.0/lino_prima/lib/cert/config/cert/Certificate/default.weasy.html +289 -0
- lino_prima-25.1.0/lino_prima/lib/cert/mixins.py +18 -0
- lino_prima-25.1.0/lino_prima/lib/cert/models.py +453 -0
- lino_prima-25.1.0/lino_prima/lib/cert/ui.py +166 -0
- lino_prima-25.1.0/lino_prima/lib/prima/__init__.py +61 -0
- lino_prima-25.1.0/lino_prima/lib/prima/fixtures/csv2db.py +762 -0
- lino_prima-25.1.0/lino_prima/lib/prima/fixtures/demo.py +285 -0
- lino_prima-25.1.0/lino_prima/lib/prima/help_texts.py +12 -0
- lino_prima-25.1.0/lino_prima/lib/prima/locale/de/LC_MESSAGES/django.mo +0 -0
- lino_prima-25.1.0/lino_prima/lib/prima/locale/de/LC_MESSAGES/django.po +925 -0
- lino_prima-25.1.0/lino_prima/lib/prima/locale/django.pot +905 -0
- lino_prima-25.1.0/lino_prima/lib/prima/locale/et/LC_MESSAGES/django.po +1258 -0
- lino_prima-25.1.0/lino_prima/lib/prima/locale/fr/LC_MESSAGES/django.po +1752 -0
- lino_prima-25.1.0/lino_prima/lib/prima/migrate.py +26 -0
- lino_prima-25.1.0/lino_prima/lib/prima/mixins.py +0 -0
- lino_prima-25.1.0/lino_prima/lib/prima/models.py +252 -0
- lino_prima-25.1.0/lino_prima/lib/prima/roles.py +9 -0
- lino_prima-25.1.0/lino_prima/lib/prima/settings.py +59 -0
- lino_prima-25.1.0/lino_prima/lib/prima/ui.py +302 -0
- lino_prima-25.1.0/lino_prima/lib/prima/user_types.py +34 -0
- lino_prima-25.1.0/lino_prima/lib/projects/__init__.py +22 -0
- lino_prima-25.1.0/lino_prima/lib/projects/choicelists.py +49 -0
- lino_prima-25.1.0/lino_prima/lib/projects/config/ratings/Project/default.weasy.html +77 -0
- lino_prima-25.1.0/lino_prima/lib/projects/models.py +182 -0
- lino_prima-25.1.0/lino_prima/lib/projects/ui.py +195 -0
- lino_prima-25.1.0/lino_prima/lib/ratings/__init__.py +33 -0
- lino_prima-25.1.0/lino_prima/lib/ratings/choicelists.py +84 -0
- lino_prima-25.1.0/lino_prima/lib/ratings/mixins.py +421 -0
- lino_prima-25.1.0/lino_prima/lib/ratings/models.py +522 -0
- lino_prima-25.1.0/lino_prima/lib/ratings/ui.py +506 -0
- lino_prima-25.1.0/lino_prima/lib/users/__init__.py +20 -0
- lino_prima-25.1.0/lino_prima/lib/users/fixtures/__init__.py +0 -0
- lino_prima-25.1.0/lino_prima/lib/users/fixtures/demo.py +1 -0
- lino_prima-25.1.0/lino_prima/lib/users/fixtures/demo2.py +1 -0
- lino_prima-25.1.0/lino_prima/lib/users/fixtures/demo_users.py +1 -0
- lino_prima-25.1.0/lino_prima/lib/users/models.py +16 -0
- lino_prima-25.1.0/lino_prima/lib/users/ui.py +33 -0
- lino_prima-25.1.0/lino_prima/projects/__init__.py +12 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/__init__.py +0 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/compute_sums.py +4 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/config/weasyprint/header.png +0 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/fixtures/__init__.py +0 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/fixtures/demo.py +17 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/fixtures/std.py +7 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/initdb_csv2db.sh +5 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/manage.py +8 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/settings.py +26 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/tests/__init__.py +0 -0
- lino_prima-25.1.0/lino_prima/projects/prima1/tests/test_simple.py +33 -0
- lino_prima-25.1.0/message_extractors.ini +6 -0
- lino_prima-25.1.0/pyproject.toml +59 -0
- lino_prima-25.1.0/requirements-install.txt +7 -0
- lino_prima-25.1.0/requirements.txt +8 -0
- lino_prima-25.1.0/tasks.py +12 -0
- lino_prima-25.1.0/tests/__init__.py +52 -0
- lino_prima-25.1.0/tests/test_demo.py +12 -0
- lino_prima-25.1.0/tests/test_docs.py +6 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# use glob syntax.
|
|
2
|
+
syntax: glob
|
|
3
|
+
|
|
4
|
+
*.bat
|
|
5
|
+
*.elc
|
|
6
|
+
*.pyc
|
|
7
|
+
*~
|
|
8
|
+
*.log
|
|
9
|
+
*.zip
|
|
10
|
+
*.doctrees
|
|
11
|
+
tmp
|
|
12
|
+
default.db
|
|
13
|
+
media
|
|
14
|
+
docs/api/lino_algus.*
|
|
15
|
+
|
|
16
|
+
*.egg-info
|
|
17
|
+
.build
|
|
18
|
+
.DS_Store
|
|
19
|
+
|
|
20
|
+
.coverage
|
|
21
|
+
.coverage.*
|
|
22
|
+
.eggs
|
|
23
|
+
dbhash.json
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Official language image. Look for the different tagged releases at:
|
|
2
|
+
# https://hub.docker.com/r/library/python/tags/
|
|
3
|
+
image: python:3.10
|
|
4
|
+
|
|
5
|
+
variables:
|
|
6
|
+
DEBIAN_FRONTEND: noninteractive
|
|
7
|
+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
8
|
+
TERM: linux
|
|
9
|
+
PYTHONUNBUFFERED: 1
|
|
10
|
+
LC_ALL: en_US.UTF-8
|
|
11
|
+
LANG: en_US.UTF-8
|
|
12
|
+
TZ: Europe/Brussels
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# Change pip's cache directory to be inside the project directory since we can
|
|
16
|
+
# only cache local items.
|
|
17
|
+
# variables:
|
|
18
|
+
# PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
19
|
+
|
|
20
|
+
# Pip's cache doesn't store the python packages
|
|
21
|
+
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
|
|
22
|
+
#
|
|
23
|
+
# If you want to also cache the installed packages, you have to install
|
|
24
|
+
# them in a virtualenv and cache it as well.
|
|
25
|
+
# cache:
|
|
26
|
+
# paths:
|
|
27
|
+
# - .cache/pip
|
|
28
|
+
# - venv/
|
|
29
|
+
|
|
30
|
+
before_script:
|
|
31
|
+
- uname -a
|
|
32
|
+
- apt-get update
|
|
33
|
+
- apt-get -y upgrade
|
|
34
|
+
- apt install -y locales-all
|
|
35
|
+
- python -V # Print out python version for debugging
|
|
36
|
+
- pip install -r requirements.txt
|
|
37
|
+
- pip install -e ".[testing]"
|
|
38
|
+
|
|
39
|
+
# - apt-get install -y locales
|
|
40
|
+
|
|
41
|
+
test:
|
|
42
|
+
script:
|
|
43
|
+
- inv prep -v test
|
|
44
|
+
|
|
45
|
+
pages:
|
|
46
|
+
# stage: deploy
|
|
47
|
+
script:
|
|
48
|
+
- inv bd
|
|
49
|
+
- mv docs/.build/ public/
|
|
50
|
+
artifacts:
|
|
51
|
+
paths:
|
|
52
|
+
- public
|
|
53
|
+
only:
|
|
54
|
+
- master
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
language: python
|
|
2
|
+
python:
|
|
3
|
+
- "3.7"
|
|
4
|
+
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
|
5
|
+
install:
|
|
6
|
+
- pip install -U setuptools
|
|
7
|
+
- pip install coveralls
|
|
8
|
+
- pip install -U pytest-cov
|
|
9
|
+
- pip install -r requirements.txt
|
|
10
|
+
- pip install .
|
|
11
|
+
# command to run tests, e.g. python setup.py test
|
|
12
|
+
script: export LINO_CACHE_ROOT=$TRAVIS_BUILD_DIR/lino_cache ; mkdir $LINO_CACHE_ROOT; inv prep test
|
|
13
|
+
after_success:
|
|
14
|
+
- coveralls
|