Skip to content
Snippets Groups Projects
Commit 91e8aa9d authored by Einar Largenius's avatar Einar Largenius
Browse files

Preparations for testing

parent 3aac2d66
No related branches found
No related tags found
No related merge requests found
......@@ -3,20 +3,19 @@
This is NAISS SUPR LDAP integration, a collection of scripts to synchronize
and update user and project information between SUPR and the Swestore LDAP.
The files in 1time_Scripts, del_scripts and the file weekly_cleanup.py may
not be used anymore.
The files in 1time_Scripts, del_scripts and the file weekly_cleanup.py are
out of date and untested.
# Development
# Installation
## Dependencies
- python2
- python-virtualenv
- openldap@2.4
- python3
- openldap
- cyrus-sasl
- mit-krb5
In addition, development libraries for python2 are necessary.
In addition, development libraries for python3 are necessary to build some
python libraries.
## Virtualenv
......@@ -26,22 +25,22 @@ installing packages local to the project.
First create the virtual environment:
```sh
python3 -m venv venv
```
python3 -m venv --prompt "supr-ldap-integration" venv
In order to enable it run the shell appropriate script found in the
newly created bin directory, for example:
```sh
source venv/bin/activate
```
source venv/bin/activate
## Installing python dependencies
To install python dependencies have to be installed. Make sure that
you have ran the script in bin/activate first.
```sh
python -m pip install -r requirements.txt
```
python3 -m pip install -r requirements.txt
Then you should be ready:
python3 supr_swestore_main.py
The script cronscript.sh does all of this automatically.
python-ldap
requests
python-kadmin==0.1.2+twtr # Busted
[pycodestyle]
# W503 means line break before binary operator, it is directly contradicted
# by W504.
ignore = W503
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment