You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the core of the library ``(src/onelogin/saml2 folder)``and merge the ``setup.py`` inside the Python application. (Each application has its structure so take your time to locate the Python SAML toolkit in the best place).
110
+
Find the core of the library at ``src/onelogin/saml2``folder.
111
111
112
112
#### Option 2. Download from pypi ####
113
113
@@ -217,32 +217,32 @@ This folder contains a Pyramid project that will be used as demo to show how to
217
217
218
218
This folder contains a Tornado project that will be used as demo to show how to add SAML support to the Tornado Framework. ``views.py`` (with its ``settings.py``) is the main Flask file that has all the code, this file uses the templates stored at the ``templates`` folder. In the ``saml`` folder we found the ``certs`` folder to store the X.509 public and private key, and the SAML toolkit settings (``settings.json`` and ``advanced_settings.json``).
219
219
220
-
It requires python3.5 (it's using tornado 6.0.3)
220
+
It requires python3.8 (it's using tornado 6.4.1)
221
221
222
-
#### setup.py ####
223
-
224
-
Setup script is the centre of all activity in building, distributing, and installing modules.
225
-
Read more at https://pythonhosted.org/an_example_pypi_project/setuptools.html
226
222
227
223
#### tests ####
228
224
229
225
Contains the unit test of the toolkit.
230
226
231
227
In order to execute the test you only need to load the virtualenv with the toolkit installed on it properly:
232
228
```
233
-
pip install -e ".[test]"
229
+
make install-test
234
230
```
235
231
236
232
and execute:
237
233
```
238
-
python setup.py test
234
+
make pytest
239
235
```
240
236
The previous line will run the tests for the whole toolkit. You can also run the tests for a specific module. To do so for the auth module you would have to execute this:
241
237
```
242
-
python setup.py test --test-suite tests.src.OneLogin.saml2_tests.auth_test.OneLogin_Saml2_Auth_Test
With the ``--test-suite`` parameter you can specify the module to test. You'll find all the module available and their class names at ``tests/src/OneLogin/saml2_tests/``.
0 commit comments