Skip to content
Snippets Groups Projects
Commit 0ca1a1c3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'build-pypi' into 'master'

Build pypi package and reformat. AlekSIS-Core#317

See merge request !31
parents 1768c3ec c989d3eb
No related branches found
No related tags found
1 merge request!31Build pypi package and reformat. AlekSIS/official/AlekSIS-Core#317
Pipeline #4433 passed
image: registry.edugit.org/teckids/team-sysadmin/docker-images/python-pimped:latest
stages:
- test
- build
variables:
GIT_SUBMODULE_STRATEGY: recursive
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
FF_NETWORK_PER_BUILD: "true"
cache:
key:
files:
- poetry.lock
- pyproject.toml
paths:
- .cache/pip
- .tox
include: include:
- project: "AlekSIS/official/AlekSIS"
file: /ci/general.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/test.yml file: /ci/test.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/build_dist.yml file: /ci/build_dist.yml
- project: "AlekSIS/official/AlekSIS"
file: /ci/deploy_pypi.yml
...@@ -128,6 +128,7 @@ def apply_templates(value, patterns, templates, separator="|"): ...@@ -128,6 +128,7 @@ def apply_templates(value, patterns, templates, separator="|"):
return value return value
def get_ldap_value_for_field(model, field, attrs, dn, instance=None, allow_missing=False): def get_ldap_value_for_field(model, field, attrs, dn, instance=None, allow_missing=False):
"""Get the value of a field in LDAP attributes. """Get the value of a field in LDAP attributes.
......
This diff is collapsed.
...@@ -24,11 +24,16 @@ classifiers = [ ...@@ -24,11 +24,16 @@ classifiers = [
"Typing :: Typed", "Typing :: Typed",
] ]
[[tool.poetry.source]]
name = "gitlab"
url = "https://edugit.org/api/v4/projects/461/packages/pypi/simple"
secondary = true
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.7"
django-ldapdb = "^1.4.0" django-ldapdb = "^1.4.0"
tqdm = "^4.44.1" tqdm = "^4.44.1"
AlekSIS = { git = "https://edugit.org/AlekSIS/official/AlekSIS", extras = ["ldap"] } aleksis-core = {version = "^2.0a3", extras = ["ldap"]}
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
sphinx = "^3.0" sphinx = "^3.0"
......
...@@ -22,9 +22,9 @@ setenv = ...@@ -22,9 +22,9 @@ setenv =
[testenv:lint] [testenv:lint]
commands = commands =
- poetry run black --check --diff aleksis/ --exclude "migrations" - poetry run black --check --diff aleksis/
- poetry run isort -c --diff --stdout -rc -s migrations aleksis/ - poetry run isort -c --diff --stdout aleksis/
- poetry run flake8 {posargs} --exclude-from-doctest migrations aleksis/ poetry run flake8 {posargs} aleksis/
[testenv:security] [testenv:security]
commands = commands =
...@@ -40,7 +40,7 @@ commands = poetry run make -C docs/ html {posargs} ...@@ -40,7 +40,7 @@ commands = poetry run make -C docs/ html {posargs}
[testenv:reformat] [testenv:reformat]
commands = commands =
poetry run isort -rc aleksis/ poetry run isort aleksis/
poetry run black aleksis/ poetry run black aleksis/
[flake8] [flake8]
...@@ -52,10 +52,10 @@ ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RS ...@@ -52,10 +52,10 @@ ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RS
line_length = 100 line_length = 100
multi_line_output = 3 multi_line_output = 3
include_trailing_comma = 1 include_trailing_comma = 1
use_parantheses = 1
default_section = THIRDPARTY default_section = THIRDPARTY
known_first_party = aleksis known_first_party = aleksis
known_django = django known_django = django
skip = migrations
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy] [mypy]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment