tests.yml: Enable Python 3.9 testing.

This requires NetworkX 2.6.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2021-07-28 13:55:51 -04:00
parent 7acb17d530
commit 562a181110
4 changed files with 10 additions and 6 deletions

View File

@ -17,11 +17,12 @@ jobs:
- {python: 3.6, tox: py36}
- {python: 3.7, tox: py37}
- {python: 3.8, tox: py38}
- {python: 3.9, tox: py39}
- {python: 3.6, tox: pep8}
- {python: 3.6, tox: lint}
- {python: 3.6, tox: mypy}
#- {python: 3.6, tox: coverage}
steps:
- uses: actions/checkout@v2

View File

@ -14,7 +14,7 @@ As such it contains a setup.py script that will install the tools.
To run SETools command line tools, the following packages are required:
* Python 3.6+
* NetworkX 2.0+
* NetworkX 2.0+ (2.6+ for Python 3.9+)
* setuptools
* libselinux
* libsepol 3.2+
@ -27,7 +27,7 @@ To run SETools graphical tools, the following packages are also required:
To build SETools, the following development packages are required, in
addition to the development packages from the above list:
* gcc
* cython 0.27+ (0.29.14+ for Python 3.8)
* cython 0.27+ (0.29.14+ for Python 3.8+)
To run SETools unit tests, the following packages are required, in
addition to the above dependencies:
@ -108,7 +108,7 @@ be compiled.
```
This feature assumes that the directory structure at $USERSPACE_SRC is the
same as the SELinux userspace code checked out from GitHub.
same as the SELinux userspace code checked out from GitHub.
Since SETools is dynamically linked to libsepol and libselinux, you must
specify the path to the libsepol/src and libselinux/src directories by

View File

@ -159,7 +159,7 @@ setup(name='setools',
'Topic :: Utilities',
],
keywords='SELinux SETools policy analysis tools seinfo sesearch sediff sedta seinfoflow apol',
python_requires='>=3.4',
python_requires='>=3.6',
# setup also requires libsepol and libselinux
# C libraries and headers to compile.
setup_requires=['setuptools', 'Cython>=0.27'],

View File

@ -46,7 +46,10 @@ commands = mypy -p setools
[testenv]
passenv = USERSPACE_SRC
deps = networkx==2.0
deps = networkx>=2.0
cython>=0.27
py38: cython>=0.29.14
py39: networkx>=2.6
py39: cython>=0.29.14
commands_pre = {envpython} setup.py build_ext -i
commands = {envpython} setup.py test -q