Skip to content
Snippets Groups Projects
Commit 4430ced2 authored by Julian Rother's avatar Julian Rother
Browse files

Moved library code from src/ back to top-level

While "src/" seems to be the recommended way, too many (linter/testing/...)
tools have problems with it.
parent ef49012d
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,9 @@ linter:
image: python:3.7
script:
- pip install pylint-gitlab
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter src/ldapserver > codeclimate.json || true
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter src/ldapserver > pylint.html || true
- python3 -m pylint --rcfile .pylintrc --output-format=text src/ldapserver || true
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter ldapserver > codeclimate.json || true
- python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter ldapserver > pylint.html || true
- python3 -m pylint --rcfile .pylintrc --output-format=text ldapserver || true
artifacts:
when: always
paths:
......@@ -19,7 +19,7 @@ test:
image: python:3.7
script:
- pip install pytest coverage
- PYTHONPATH=src coverage run --include 'src/*.py' -m pytest --junitxml=report.xml
- coverage run --include '*.py' -m pytest --junitxml=report.xml
- coverage report -m
- coverage html
- coverage xml
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -20,7 +20,7 @@ setuptools.setup(
'Operating System :: OS Independent',
'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP',
],
package_dir={'': 'src'},
packages=setuptools.find_packages(where='src'),
package_dir={'': '.'},
packages=setuptools.find_packages(where='.'),
python_requires='>=3.9',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment