File tree Expand file tree Collapse file tree 7 files changed +42
-11
lines changed Expand file tree Collapse file tree 7 files changed +42
-11
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,12 @@ jobs:
83
83
- name : Setup castxml config
84
84
if : matrix.compiler == 'gcc' && matrix.version == '7'
85
85
run : mv unittests/configs/gcc7.cfg unittests/xml_generator.cfg;
86
- - name : Setup Python test libs
86
+ - name : Install Python lib and test libs
87
87
run : |
88
- pip install coveralls
89
- pip install coverage
90
- pip install pycodestyle
88
+ pip install .[test]
91
89
- name : Run tests
92
90
run : |
93
91
export PATH=~/castxml/bin:$PATH
94
- python setup.py install
95
92
coverage run -m unittests.test_all
96
93
coverage combine
97
94
- name : Upload coverage to Codecov
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ docs/examples/caching/example.hpp.xml
16
16
test_cost.log
17
17
docs /apidocs
18
18
htmlcov
19
+ /venv /
Original file line number Diff line number Diff line change 22
22
# documentation root, use os.path.abspath to make it absolute, like shown here.
23
23
sys .path .insert (0 , os .path .abspath ('.' ) + "/../" )
24
24
25
- from .. release_utils import utils # nopep8
25
+ from release_utils import utils # nopep8
26
26
27
27
# -- General configuration ------------------------------------------------
28
28
Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ Building the documentation locally
7
7
You can build the documentation yourself. In order for this to work you need
8
8
sphinx doc (http://sphinx-doc.org) and the readthedocs theme:
9
9
10
- pip install sphinx
10
+ .. code-block :: shell
11
11
12
- pip install sphinx_rtd_theme
12
+ pip install .[docs]
13
13
14
14
Then just run the following command in the root folder:
15
15
16
+ .. code-block :: shell
17
+
16
18
make html
17
19
18
- This will build the documentation locally in the `docs/_build/html ` folder.
20
+ This will build the documentation locally in the `` docs/_build/html ` ` folder.
19
21
20
22
For each commit on the master and develop branches, the documentation is
21
23
automatically built and can be found here: https://readthedocs.org/projects/pygccxml/
Original file line number Diff line number Diff line change @@ -18,12 +18,28 @@ Installation of pygccxml
18
18
19
19
You can use pip to install pygccxml:
20
20
21
- pip install pygccxml
21
+ .. code-block :: shell
22
+
23
+ pip install pygccxml
22
24
23
25
To install from source, you can use the usual procedure:
24
26
27
+ .. code-block :: shell
28
+
25
29
python setup.py install
26
30
31
+ For development
32
+ %%%%%%%%%%%%%%%
33
+
34
+ You should use a ``virtualenv `` when possible. Example recipe:
35
+
36
+ .. code-block :: shell
37
+
38
+ cd pygccxml # git root
39
+ python -m virtualenv ./venv
40
+ source ./venv/bin/activate
41
+ pip install --editable .[test]
42
+
27
43
GCC-XML (Legacy)
28
44
----------------
29
45
Original file line number Diff line number Diff line change 9
9
10
10
version = utils .find_version ("../pygccxml/__init__.py" )
11
11
12
+ requirements_test = {
13
+ "coverage" ,
14
+ "coveralls" ,
15
+ "pycodestyle" ,
16
+ }
17
+ requirements_docs = {
18
+ "sphinx" ,
19
+ "sphinx_rtd_theme" ,
20
+ }
21
+
12
22
setup (name = "pygccxml" ,
13
23
version = version ,
14
24
author = "Roman Yakovenko" ,
25
35
"pygccxml.declarations" ,
26
36
"pygccxml.parser" ,
27
37
"pygccxml.utils" ],
38
+ extras_require = {
39
+ "test" : list (requirements_test ),
40
+ "docs" : list (requirements_docs ),
41
+ },
28
42
classifiers = [
29
43
"Development Status :: 5 - Production/Stable" ,
30
44
"Environment :: Console" ,
Original file line number Diff line number Diff line change 4
4
# See http://www.boost.org/LICENSE_1_0.txt
5
5
6
6
import os
7
- import pycodestyle
8
7
import unittest
9
8
import fnmatch
10
9
10
+ import pycodestyle
11
+
11
12
12
13
class Test (unittest .TestCase ):
13
14
You can’t perform that action at this time.
0 commit comments