Skip to content

Commit 02c5032

Browse files
committed
Update Pythons, pin Ubuntu and service database images
1 parent aea56b7 commit 02c5032

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

.github/workflows/tox.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ on:
77
- master
88
jobs:
99
test:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
13-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.10"]
1414
services:
1515
mariadb:
16-
image: mariadb
16+
image: mariadb:10.11
1717
env:
1818
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
1919
MARIADB_DATABASE: test
2020
ports:
2121
- 3307:3306
2222
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2323
mysql:
24-
image: mysql
24+
image: mysql:8.1
2525
env:
2626
MYSQL_ALLOW_EMPTY_PASSWORD: yes
2727
MYSQL_DATABASE: test
2828
ports:
2929
- 3306:3306
3030
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
3131
postgres:
32-
image: postgres
32+
image: postgres:15.4
3333
env:
3434
POSTGRES_PASSWORD: test
3535
POSTGRES_USER: test
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646
- name: Install lxml dependencies
47-
if: ${{ matrix.python-version == 'pypy-3.7' }}
47+
if: ${{ matrix.python-version == 'pypy-3.10' }}
4848
run: |
4949
sudo apt-get install libxml2-dev libxslt-dev
5050
- name: Install dependencies

docs/installation.rst

+21-9
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ Installation
77
Install Python
88
--------------
99

10-
OpenTAXII works with Python versions 3.6 - 3.10. You can download Python `here <http://www.python.org/download/>`_ or install it with your operating system’s package manager.
10+
OpenTAXII works with Python versions 3.8 - 3.11. You can download Python
11+
`here <http://www.python.org/download/>`_ or install it with your operating system’s
12+
package manager.
1113

12-
You can verify that Python is installed by typing ``python`` or ``python3`` in your shell. You should see something like::
14+
You can verify that Python is installed by typing ``python`` or ``python3`` in your
15+
shell. You should see something like::
1316

1417
$ python3
1518
Python 3.10.1 (main, Dec 11 2021, 17:22:55) [GCC 11.1.0] on linux
@@ -18,7 +21,10 @@ You can verify that Python is installed by typing ``python`` or ``python3`` in y
1821

1922
Install OpenTAXII
2023
-----------------
21-
To sandbox the project and protect system-wide python it is recommended to install OpenTAXII into a `virtual environment <https://virtualenv.pypa.io/en/latest/installation.html>`_ (*virtualenv*).
24+
To sandbox the project and protect system-wide python it is recommended to install
25+
OpenTAXII into a
26+
`virtual environment <https://virtualenv.pypa.io/en/latest/installation.html>`_
27+
(*virtualenv*).
2228

2329
Create a virtual environment named venv::
2430

@@ -41,23 +47,29 @@ Without the virtual environment it's just::
4147
$ pip install opentaxii
4248

4349
.. note::
44-
Since OpenTAXII has `libtaxii <https://github.com/TAXIIProject/libtaxii>`_ as a dependency, the system libraries
45-
`libtaxii` will be installed. Check
46-
`libtaxii documentation <http://libtaxii.readthedocs.org/en/latest/installation.html#dependencies>`_ for the details.
50+
Since OpenTAXII has `libtaxii <https://github.com/TAXIIProject/libtaxii>`_ as a
51+
dependency, the system libraries `libtaxii` will be installed. Check
52+
`libtaxii documentation
53+
<http://libtaxii.readthedocs.org/en/latest/installation.html#dependencies>`_ for the
54+
details.
4755

48-
To install OpenTAXII from source files: download tarball, unpack it and install it manually with::
56+
To install OpenTAXII from source files: download tarball, unpack it and install it
57+
manually with::
4958

5059
$ python setup.py install
5160

5261

5362
Versioning
5463
----------
5564

56-
Releases of OpenTAXII are given major.minor.revision version numbers, where major and minor correspond to the roadmap EclecticIQ has. The revision number is used to indicate a bug fix only release.
65+
Releases of OpenTAXII are given major.minor.revision version numbers, where major and
66+
minor correspond to the roadmap EclecticIQ has. The revision number is used to indicate
67+
a bug fix only release.
5768

5869

5970
.. rubric:: Next steps
6071

61-
Continue to :doc:`Configuration <configuration>` page to learn how to configure OpenTAXII.
72+
Continue to :doc:`Configuration <configuration>` page to learn how to configure
73+
OpenTAXII.
6274

6375
.. vim: set spell spelllang=en:

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ def get_file_contents(filename):
5353
'Intended Audience :: Information Technology',
5454
'License :: OSI Approved :: BSD License',
5555
'Programming Language :: Python',
56-
'Programming Language :: Python :: 3.6',
57-
'Programming Language :: Python :: 3.7',
5856
'Programming Language :: Python :: 3.8',
5957
'Programming Language :: Python :: 3.9',
6058
'Programming Language :: Python :: 3.10',
59+
'Programming Language :: Python :: 3.11',
6160
'Programming Language :: Python :: Implementation :: PyPy',
6261
'Topic :: Internet',
6362
'Topic :: Security',

tox.ini

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
[tox]
22
skipsdist = True
3-
envlist = py36-sqlalchemy{13,14}-werkzeuglt21-{sqlite,mysql,mariadb,postgres},
4-
py{37,38,39,310,py3,ston}-sqlalchemy{13,14}-werkzeug{lt21,gte21}-{sqlite,mysql,mariadb,postgres}
3+
envlist = py{38,39,310,311,py3}-sqlalchemy{13,14}-werkzeug{lt21,gte21}-{sqlite,mysql,mariadb,postgres}
54

65
[gh-actions]
76
python =
8-
3.6: py36
9-
3.7: py37
107
3.8: py38
118
3.9: py39
129
3.10: py310
13-
pypy-3.7: pypy3
10+
3.11: py311
11+
pypy-3.10: pypy3
1412

1513
[testenv]
1614
commands =

0 commit comments

Comments
 (0)