diff --git a/.github/workflows/release_pypi.yml b/.github/workflows/release_pypi.yml index 9e4a4c4..f06793a 100644 --- a/.github/workflows/release_pypi.yml +++ b/.github/workflows/release_pypi.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -31,17 +31,17 @@ jobs: needs: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install setuptools_scm[toml]>=3.4 setuptools>=42 wheel twine>=3.3.0 + python -m pip install "setuptools_scm[toml]>=10.3.4" "setuptools>=84.2.1" "wheel>=0.48.0" "twine>=7.0.0" "build>=1.6.1" - name: Build and publish env: TWINE_USERNAME: __token__ diff --git a/.github/workflows/test_all.yml b/.github/workflows/test_all.yml index 5e65c3c..93ac78c 100644 --- a/.github/workflows/test_all.yml +++ b/.github/workflows/test_all.yml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.readthedocs.yml b/.readthedocs.yml index bf0c88c..1d3d78f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -5,22 +5,18 @@ # Required version: 2 +build: + os: ubuntu-24.04 + tools: + python: "3.14" + # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py -# Build documentation with MkDocs -#mkdocs: -# configuration: mkdocs.yml - -# Optionally build your docs in additional formats such as PDF and ePub -# formats: all - # Optionally set the version of Python and requirements required to build your docs python: - version: 3.7 install: - requirements: docs/requirements.txt - method: setuptools path: . - diff --git a/README.md b/README.md index 35edf0c..69742b9 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Launch python interpreter and then type: #### Prerequisites: -1. *Python v3.7* or newer +1. *Python v3.11* or newer 2. *virtualenv* or *virtualenvwrapper* (We recommend ***virtualenvwrapper*** ) 3. To produce RESTful APIs documentation install *redoc-cli* and *npx*: diff --git a/almdrlib/session.py b/almdrlib/session.py index e125411..e865c96 100644 --- a/almdrlib/session.py +++ b/almdrlib/session.py @@ -9,7 +9,7 @@ import requests from requests.adapters import HTTPAdapter -from requests.packages.urllib3.util.retry import Retry +from urllib3.util.retry import Retry import re from almdrlib.config import Config diff --git a/docs/conf.py b/docs/conf.py index 451ece2..3b1996c 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,9 +19,9 @@ # import os import logging +from importlib.metadata import version as package_version import almdrlib from almdrlib.docs import make_documentation -from pkg_resources import get_distribution almdrlib.set_logger('almdrlib', logging.INFO) make_documentation(os.path.dirname(os.path.abspath(__file__))) @@ -66,7 +66,7 @@ # the built documents. # # The full version, including alpha/beta/rc tags. -release = get_distribution('alertlogic-sdk-python').version +release = package_version('alertlogic-sdk-python') version = '.'.join(release.split('.')[:3]) diff --git a/docs/requirements.txt b/docs/requirements.txt index d8153c4..d9c9ea4 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,6 +1,6 @@ -Sphinx==3.0.1 -m2r2==0.3.2 -sphinx_rtd_theme==0.4.3 -sphinxcontrib_contentui==0.2.4 -sphinx-paramlinks==0.4.1 +Sphinx>=9.2.0 +m2r2>=2.1.0 +sphinx_rtd_theme>=3.1.0 +sphinxcontrib_contentui>=0.2.5 +sphinx-paramlinks>=0.6 alertlogic-sdk-python diff --git a/pyproject.toml b/pyproject.toml index 93ca516..5b9a55a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [build-system] -requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4", "requests"] +requires = ["setuptools>=84.2.1", "wheel>=0.48.0", "setuptools_scm[toml]>=10.3.4", "requests"] +build-backend = "setuptools.build_meta" [tool.setuptools_scm] -write_to = "almdrlib/version.py" \ No newline at end of file +version_file = "almdrlib/version.py" diff --git a/requirements.txt b/requirements.txt index d931001..4baf068 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,10 @@ -setuptools>=42 -pip>=22.3.1 -requests>=2.22.0 -configparser==4.0.2 -pyyaml==5.4.1 +setuptools>=84.2.1 +pip>=26.2.2 +requests>=2.34.2 +urllib3>=2.8.0 +pyyaml>=6.0.3 jsonschema[format_nongpl]==3.2.0 -m2r2==0.3.2 -boto3>=1.16.57 -markupsafe==2.0.1 -sphinxcontrib-contentui -sphinx_paramlinks +m2r2>=2.1.0 +boto3>=1.43.118 +sphinxcontrib-contentui>=0.2.5 +sphinx-paramlinks>=0.6 diff --git a/requirements_dev.txt b/requirements_dev.txt index af776b6..9c1fdd1 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,21 +1,21 @@ -setuptools>=42 -pip>=22.3.1 -mock>=1.3.0 -wheel>=0.38.1 -flake8>=3.7.8 -tox>=3.14.0 -coverage>=6.5.0 -Sphinx>=3.0.1 -httpretty>=0.9.7 -requests>=2.22.0 -pycodestyle>=2.5.0 -twine>=1.13.0 -configparser>=4.0.2 -sphinx_rtd_theme>=0.4.3 -sphinxcontrib_contentui>=0.2.4 -sphinx-paramlinks>=0.5.4 -m2r2>=0.3.2 -boto3>=1.16.57 -pytest>=6.2.5 -build>=0.9.0 -alertlogic-sdk-definitions>=0.1.96 +setuptools>=84.2.1 +pip>=26.2.2 +wheel>=0.48.0 +mock>=5.2.0 +flake8>=7.4.1 +tox>=4.67.1 +coverage>=7.17.0 +Sphinx>=9.0.0 +httpretty>=1.1.4 +requests>=2.34.2 +urllib3>=2.8.0 +pycodestyle>=2.15.0 +twine>=7.0.0 +sphinx_rtd_theme>=3.1.0 +sphinxcontrib_contentui>=0.2.5 +sphinx-paramlinks>=0.6 +m2r2>=2.1.0 +boto3>=1.43.118 +pytest>=9.1.1 +build>=1.6.1 +alertlogic-sdk-definitions>=0.1.168 diff --git a/setup.py b/setup.py index 7a08523..0870f5e 100644 --- a/setup.py +++ b/setup.py @@ -46,12 +46,12 @@ def aggregate_release(lns, acc): definitions_dependency = 'alertlogic-sdk-definitions>=v0.0.74' requirements = [ - 'requests>=2.18', - 'configparser>=4.0.2', - 'pyyaml>=5.4.1', + 'requests>=2.34.2', + 'urllib3>=2.8.0', + 'pyyaml>=6.0.3', 'jsonschema[format_nongpl]==3.2.0', - 'm2r2==0.3.2', - 'boto3>=1.16.57', + 'm2r2>=2.1.0', + 'boto3>=1.43.118', definitions_dependency ] @@ -65,7 +65,7 @@ def aggregate_release(lns, acc): license='MIT license', author='Alert Logic Inc.', author_email='devsupport@alertlogic.com', - python_requires='>=3.6', + python_requires='>=3.11', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', @@ -74,9 +74,11 @@ def aggregate_release(lns, acc): 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8' + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', + 'Programming Language :: Python :: 3.15' ], description='Alert Logic Software Development Kit for Python.', long_description=readme + '\n\n' + history, @@ -91,10 +93,10 @@ def aggregate_release(lns, acc): install_requires=requirements, extras_require={ 'dev': [ - 'pytest>=3', - 'mock>=2.0.0', - 'httpretty>=0.8.14', - 'pycodestyle>=2.3.1', + 'pytest>=9.1.1', + 'mock>=5.2.0', + 'httpretty>=1.1.4', + 'pycodestyle>=2.15.0', 'jsonschema[format_nongpl]==3.2.0' ], }, diff --git a/tox.ini b/tox.ini index 21a5cd2..2895f35 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,5 @@ [tox] -envlist = py37, py38, py39, py310, flake8 - +envlist = py311, py312, py313, py314, py315, flake8 [travis] python = 3.10: py310