diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 55cae98..761799b 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -25,9 +25,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest setuptools wheel twine + pip install pytest setuptools wheel twine build if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Build and test run: | - python setup.py install sdist bdist_wheel + python -m build + pip install dist/article_parser-*.whl pytest --disable-warnings diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a4e93de..567b4ba 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.7"] + python-version: ["3.8"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -25,11 +25,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest setuptools wheel twine + pip install pytest setuptools wheel twine build if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Build and test run: | - python setup.py build sdist bdist_wheel + python -m build + pip install dist/article_parser-*.whl pytest --disable-warnings # - name: Test Publish # uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/setup.py b/setup.py index 4a9aeb4..914791a 100644 --- a/setup.py +++ b/setup.py @@ -28,14 +28,15 @@ def read_file(filename): "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "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 :: 3.12", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation", ], - python_requires='>=3.7', + python_requires='>=3.8', version_config={ "template": "{tag}", "dirty_template": "{tag}",