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
Python bindings for the `XML Security Library <https://www.aleksey.com/xmlsec/>`_.
19
+
20
+
Documentation
21
+
*************
22
+
23
+
A documentation for ``xmlsec`` can be found at `xmlsec.readthedocs.io <https://xmlsec.readthedocs.io/>`_.
19
24
20
-
******
21
25
Usage
22
-
******
26
+
*****
23
27
24
-
Check the `examples <http://pythonhosted.org/xmlsec/examples.html>`_ to see various examples of signing and verifying using the library.
28
+
Check the `examples <https://xmlsec.readthedocs.io/en/latest/examples.html>`_ section in the documentation to see various examples of signing and verifying using the library.
25
29
26
-
************
27
30
Requirements
28
31
************
29
-
- libxml2 >= 2.9.1
30
-
- libxmlsec1 >= 1.2.14
32
+
- ``libxml2 >= 2.9.1``
33
+
- ``libxmlsec1 >= 1.2.18``
31
34
32
-
*******
33
35
Install
34
36
*******
35
37
36
-
Pre-Install
37
-
-----------
38
+
``xmlsec`` is available on PyPI:
39
+
40
+
.. code-block:: bash
41
+
42
+
pip install xmlsec
43
+
44
+
Depending on your OS, you may need to install the required native
#. Change into the ``python-xmlsec`` root directory.
132
135
133
-
.. code-block:: bash
136
+
.. code-block:: bash
134
137
135
-
cd /path/to/xmlsec
138
+
cd /path/to/xmlsec
136
139
137
140
138
-
#. Install the project and all its dependencies using `pip`.
141
+
#. Install the project and all its dependencies using ``pip``.
139
142
140
-
.. code-block:: bash
143
+
.. code-block:: bash
141
144
142
-
pip install .
145
+
pip install .
143
146
144
147
145
-
************
146
148
Contributing
147
149
************
148
150
149
151
Setting up your environment
150
-
---------------------------
152
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
151
153
152
-
#. Follow steps 1 and 2 of the `manual installation instructions <#manual>`_.
154
+
#. Follow steps 1 and 2 of the `manual installation instructions <#building-from-source>`_.
153
155
154
156
155
157
#. Initialize a virtual environment to develop in.
156
158
This is done so as to ensure every contributor is working with
157
159
close-to-identicial versions of packages.
158
160
159
-
.. code-block:: bash
161
+
.. code-block:: bash
160
162
161
-
mkvirtualenv xmlsec
163
+
mkvirtualenv xmlsec
162
164
165
+
The ``mkvirtualenv`` command is available from ``virtualenvwrapper`` package which can be installed by following `link <http://virtualenvwrapper.readthedocs.org/en/latest/install.html#basic-installation>`_.
163
166
164
-
The `mkvirtualenv` command is available from `virtualenvwrapper` which
165
-
can be installed by following `link <http://virtualenvwrapper.readthedocs.org/en/latest/install.html#basic-installation>`_
167
+
#. Activate the created virtual environment:
166
168
167
-
#. Install **xmlsec** in development mode with testing enabled.
169
+
.. code-block:: bash
170
+
171
+
workon xmlsec
172
+
173
+
#. Install ``xmlsec`` in development mode with testing enabled.
168
174
This will download all dependencies required for running the unit tests.
169
175
170
-
.. code-block:: bash
176
+
.. code-block:: bash
171
177
172
-
pip install -r requirements-test.txt
173
-
pip install -e "."
178
+
pip install -r requirements-test.txt
179
+
pip install -e "."
174
180
175
181
176
182
Running the test suite
177
-
----------------------
183
+
^^^^^^^^^^^^^^^^^^^^^^
178
184
179
-
#. [Set up your environment](#setting-up-your-environment).
185
+
#. `Set up your environment<#setting-up-your-environment>`_.
180
186
181
187
#. Run the unit tests.
182
188
183
-
.. code-block:: bash
189
+
.. code-block:: bash
184
190
185
-
py.test tests
191
+
pytest tests
186
192
187
193
#. Tests configuration
188
-
Env variable **PYXMLSEC_TEST_ITERATIONS** specifies number of test iterations to detect memory leaks.
189
-
190
-
Reporting a issue
191
-
-----------------
192
-
Please attach the output of following information:
193
-
version of python-xmlsec
194
-
version of libxmlsec1
195
-
version of libxml2
196
194
197
-
output from command:
195
+
Env variable ``PYXMLSEC_TEST_ITERATIONS`` specifies number of
196
+
test iterations to detect memory leaks.
198
197
199
-
.. code-block:: bash
200
-
201
-
pkg-config --cflags xmlsec1
198
+
Reporting an issue
199
+
^^^^^^^^^^^^^^^^^^
202
200
201
+
Please attach the output of following information:
203
202
204
-
******************
205
-
Versions of python
206
-
******************
203
+
* version of ``xmlsec``
204
+
* version of ``libxmlsec1``
205
+
* version of ``libxml2``
206
+
* output from the command
207
207
208
-
The following versions of python is supported:
208
+
.. code-block:: bash
209
209
210
-
- python2.7
211
-
- python3.4
212
-
- python3.5 (required libxmlsec1 >= 1.2.18 and libxml2 >= 2.9.1)
213
-
- python3.6 (required libxmlsec1 >= 1.2.18 and libxml2 >= 2.9.1)
214
-
- python3.7 (required libxmlsec1 >= 1.2.18 and libxml2 >= 2.9.1)
210
+
pkg-config --cflags xmlsec1
215
211
216
-
*******
217
212
License
218
213
*******
219
214
220
-
Unless otherwise noted, all files contained within this project are liensed under the MIT opensource license.
221
-
See the included file LICENSE or visit `opensource.org <http://opensource.org/licenses/MIT>`_ for more information.
215
+
Unless otherwise noted, all files contained within this project are licensed under the MIT opensource license.
216
+
See the included ``LICENSE`` file or visit `opensource.org <http://opensource.org/licenses/MIT>`_ for more information.
0 commit comments