From 435b2c7052656c1154286e5ee3abc6cbca19f234 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Fri, 12 Apr 2024 12:58:18 +0800 Subject: [PATCH] Test/release against Python 3.12 (#339) Signed-off-by: Chad Wilson --- .github/workflows/release_on_pr.yml | 4 ++-- .github/workflows/tests.yml | 16 +++++++++------- python.json | 2 +- requirements.txt | 1 + setup.tmpl | 13 ++++--------- 5 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release_on_pr.yml b/.github/workflows/release_on_pr.yml index 187aa6c..3a333cf 100644 --- a/.github/workflows/release_on_pr.yml +++ b/.github/workflows/release_on_pr.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.12' cache: 'pip' # caching pip dependencies - name: Setup git diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72f2f5a..b4b9db2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [3.8, 3.11] + python-version: [3.8, 3.12] steps: - uses: actions/checkout@v4 @@ -37,18 +37,19 @@ jobs: functional-tests: needs: test - name: FTs ${{ matrix.os }} + name: FTs ${{ matrix.os }} ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: matrix: os: [windows-latest, ubuntu-latest] + python-version: [3.8, 3.12] steps: - uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '${{ matrix.python-version }}' cache: 'pip' # caching pip dependencies - name: Set up Go @@ -92,18 +93,19 @@ jobs: lsp-tests: needs: test - name: LSP Tests ${{ matrix.os }} + name: LSP Tests ${{ matrix.os }} ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: matrix: os: [windows-latest, ubuntu-latest] + python-version: [3.8, 3.12] steps: - uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '${{ matrix.python-version }}' cache: 'pip' # caching pip dependencies - name: Set up Nodejs diff --git a/python.json b/python.json index b0d40c9..2ae61b3 100644 --- a/python.json +++ b/python.json @@ -1,6 +1,6 @@ { "id": "python", - "version": "0.4.2", + "version": "0.4.3", "description": "Python support for gauge", "run": { "windows": [ diff --git a/requirements.txt b/requirements.txt index a4c22c8..5dd089e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,6 +25,7 @@ requests-toolbelt==1.0.0 rfc3986==2.0.0 rich==13.7.1 rply==0.7.8 +setuptools==69.2.0 six==1.16.0 twine==5.0.0 urllib3==2.2.1 diff --git a/setup.tmpl b/setup.tmpl index 59c6816..885821d 100644 --- a/setup.tmpl +++ b/setup.tmpl @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name='getgauge', @@ -6,21 +6,16 @@ setup( version='{0}', description='Enables Python support for Gauge', author='Gauge Team', - author_email='getgauge@outlook.com', + author_email='getgauge@googlegroups.com', url='https://github.com/getgauge/gauge-python', download_url='https://github.com/getgauge/gauge-python/archive/v{0}.zip', keywords=['testing', 'gauge', 'gauge-python', 'getgauge', 'automation'], license='MIT', classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3 :: Only', ], install_requires=['redBaron', 'debugpy', 'grpcio>=1.39.0', 'protobuf>=3.5.2'], extras_require={1},