diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9f28e2b3..2bed2b59 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -7,13 +7,13 @@ on: - master jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"] + python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.10"] services: mariadb: - image: mariadb + image: mariadb:10.11 env: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes MARIADB_DATABASE: test @@ -21,7 +21,7 @@ jobs: - 3307:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 mysql: - image: mysql + image: mysql:8.1 env: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: test @@ -29,7 +29,7 @@ jobs: - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 postgres: - image: postgres + image: postgres:15.4 env: POSTGRES_PASSWORD: test POSTGRES_USER: test @@ -44,7 +44,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install lxml dependencies - if: ${{ matrix.python-version == 'pypy-3.7' }} + if: ${{ matrix.python-version == 'pypy-3.10' }} run: | sudo apt-get install libxml2-dev libxslt-dev - name: Install dependencies diff --git a/docs/installation.rst b/docs/installation.rst index 05651662..0610cbbd 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -7,9 +7,12 @@ Installation Install Python -------------- -OpenTAXII works with Python versions 3.6 - 3.10. You can download Python `here `_ or install it with your operating system’s package manager. +OpenTAXII works with Python versions 3.8 - 3.11. You can download Python +`here `_ or install it with your operating system’s +package manager. -You can verify that Python is installed by typing ``python`` or ``python3`` in your shell. You should see something like:: +You can verify that Python is installed by typing ``python`` or ``python3`` in your +shell. You should see something like:: $ python3 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 Install OpenTAXII ----------------- -To sandbox the project and protect system-wide python it is recommended to install OpenTAXII into a `virtual environment `_ (*virtualenv*). +To sandbox the project and protect system-wide python it is recommended to install +OpenTAXII into a +`virtual environment `_ +(*virtualenv*). Create a virtual environment named venv:: @@ -41,11 +47,14 @@ Without the virtual environment it's just:: $ pip install opentaxii .. note:: - Since OpenTAXII has `libtaxii `_ as a dependency, the system libraries - `libtaxii` will be installed. Check - `libtaxii documentation `_ for the details. + Since OpenTAXII has `libtaxii `_ as a + dependency, the system libraries `libtaxii` will be installed. Check + `libtaxii documentation + `_ for the + details. -To install OpenTAXII from source files: download tarball, unpack it and install it manually with:: +To install OpenTAXII from source files: download tarball, unpack it and install it +manually with:: $ python setup.py install @@ -53,11 +62,14 @@ To install OpenTAXII from source files: download tarball, unpack it and install Versioning ---------- -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. +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. .. rubric:: Next steps -Continue to :doc:`Configuration ` page to learn how to configure OpenTAXII. +Continue to :doc:`Configuration ` page to learn how to configure +OpenTAXII. .. vim: set spell spelllang=en: diff --git a/setup.py b/setup.py index edad9d65..01e11cdd 100644 --- a/setup.py +++ b/setup.py @@ -53,11 +53,10 @@ def get_file_contents(filename): 'Intended Audience :: Information Technology', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet', 'Topic :: Security', diff --git a/tox.ini b/tox.ini index dde27864..87223999 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,14 @@ [tox] skipsdist = True -envlist = py36-sqlalchemy{13,14}-werkzeuglt21-{sqlite,mysql,mariadb,postgres}, - py{37,38,39,310,py3,ston}-sqlalchemy{13,14}-werkzeug{lt21,gte21}-{sqlite,mysql,mariadb,postgres} +envlist = py{38,39,310,311,py3}-sqlalchemy{13,14}-werkzeug{lt21,gte21}-{sqlite,mysql,mariadb,postgres} [gh-actions] python = - 3.6: py36 - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 - pypy-3.7: pypy3 + 3.11: py311 + pypy-3.10: pypy3 [testenv] commands =