mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-18 08:35:19 +00:00
Drop support for Python < 3.4.
This commit is contained in:
parent
58f62bf627
commit
e292a77c52
@ -5,11 +5,9 @@
|
||||
language: python
|
||||
|
||||
python:
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
- "2.7"
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
@ -14,10 +14,9 @@ SETools uses the Python setuptools build system to build, and install.
|
||||
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 2.7 or 3.3+
|
||||
* Python 3.4+
|
||||
* NetworkX 1.8+
|
||||
* setuptools
|
||||
* enum34 (on Python 2.7 and 3.3 only)
|
||||
* libselinux Python bindings (optional but recommended)
|
||||
|
||||
To run SETools graphical tools, the following packages are also required:
|
||||
@ -35,7 +34,6 @@ addition to the development packages from the above list:
|
||||
|
||||
To run SETools unit tests, the following packages are required, in
|
||||
addition to the above dependencies:
|
||||
* mock (on Python 2.7 only)
|
||||
* tox (optional)
|
||||
|
||||
### Obtaining SETools
|
||||
|
2
apol
2
apol
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2015, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
2
sediff
2
sediff
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2015-2016, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
2
sedta
2
sedta
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2014-2015, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
2
seinfo
2
seinfo
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2014-2015, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2014-2015, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
2
sesearch
2
sesearch
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2014-2015, Tresys Technology, LLC
|
||||
#
|
||||
# This file is part of SETools.
|
||||
|
2
setup.py
2
setup.py
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
from __future__ import print_function
|
||||
import glob
|
||||
from setuptools import setup
|
||||
|
10
tox.ini
10
tox.ini
@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
minversion = 1.4
|
||||
envlist = py27, py33, py34, py35
|
||||
envlist = py34, py35, py36
|
||||
# Using site packages is not optimal,
|
||||
# but libselinux bindings are not
|
||||
# available via PyPI.
|
||||
@ -18,21 +18,16 @@ commands = pep8 --version
|
||||
pep8 setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff --statistics
|
||||
|
||||
[testenv:coverage]
|
||||
basepython = python3.3
|
||||
deps = networkx==1.9
|
||||
coverage
|
||||
enum34
|
||||
commands = coverage --version
|
||||
coverage erase
|
||||
coverage run setup.py test
|
||||
coverage report
|
||||
|
||||
[testenv:lint]
|
||||
basepython = python3.3
|
||||
deps = pylint
|
||||
networkx==1.9
|
||||
mock
|
||||
enum34
|
||||
commands = {envpython} setup.py build_ext -i
|
||||
pylint --version
|
||||
pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch sediff
|
||||
@ -41,8 +36,5 @@ commands = {envpython} setup.py build_ext -i
|
||||
|
||||
[testenv]
|
||||
deps = networkx==1.9
|
||||
py27: mock
|
||||
py27: enum34
|
||||
py33: enum34
|
||||
commands = {envpython} setup.py test
|
||||
recreate = True
|
||||
|
Loading…
Reference in New Issue
Block a user