diff --git a/.github/workflows/release-cpan.yaml b/.github/workflows/release-cpan.yaml deleted file mode 100644 index a96e20e38..000000000 --- a/.github/workflows/release-cpan.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Release Perl/CPAN - -on: - push: - branches: [release/*] - -jobs: - create-perl-release: - name: Publish to CPAN - runs-on: ubuntu-latest - environment: Release - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - uses: cucumber/action-publish-cpan@v1.0.0 - with: - cpan-user: ${{ secrets.CPAN_USER }} - cpan-password: ${{ secrets.CPAN_PASSWORD }} - working-directory: 'perl' diff --git a/.github/workflows/release-github.yaml b/.github/workflows/release-github.yaml deleted file mode 100644 index 88b128a59..000000000 --- a/.github/workflows/release-github.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release GitHub - -on: - push: - branches: [release/*] - -jobs: - create-github-release: - name: Create GitHub Release and Git tag - runs-on: ubuntu-latest - environment: Release - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - uses: cucumber/action-create-github-release@v1.1.0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-go.yml b/.github/workflows/release-go.yml deleted file mode 100644 index 0061856f8..000000000 --- a/.github/workflows/release-go.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release Go - -on: - push: - branches: [release/*] - -jobs: - publish-go-subrepo: - name: Publish to cucumber/messages-go subrepo - runs-on: ubuntu-latest - environment: Release - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - uses: cucumber/action-publish-subrepo@v1.1.0 - with: - working-directory: go - github-token: ${{ secrets.CUKEBOT_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-hex.yaml b/.github/workflows/release-hex.yaml deleted file mode 100644 index a25b78435..000000000 --- a/.github/workflows/release-hex.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Release Elixir hex package - -on: - push: - branches: [release/*] - -jobs: - create-hex-release: - name: Publish to hex.pm - runs-on: ubuntu-latest - environment: Release - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - - uses: erlef/setup-beam@v1 - with: - otp-version: '22.2' - elixir-version: '1.10.x' - - - name: Install Protoc - uses: arduino/setup-protoc@v1 - - - uses: cucumber/action-publish-hex@v1.0.0 - with: - hex-api-key: ${{ secrets.HEX_API_KEY }} - working-directory: 'elixir' diff --git a/.github/workflows/release-mvn.yml b/.github/workflows/release-mvn.yml deleted file mode 100644 index 50f5ba889..000000000 --- a/.github/workflows/release-mvn.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release Maven - -on: - push: - branches: [release/*] - -jobs: - publish-mvn: - name: Publish Maven Package - runs-on: ubuntu-latest - environment: Release - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '11' - cache: 'maven' - - uses: cucumber/action-publish-mvn@v2.0.0 - with: - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - nexus-username: cukebot - nexus-password: ${{ secrets.SONATYPE_PASSWORD }} - working-directory: java diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml deleted file mode 100644 index b027774af..000000000 --- a/.github/workflows/release-npm.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Release NPM - -on: - push: - branches: [release/*] - -jobs: - publish-npm: - name: Publish NPM module - runs-on: ubuntu-latest - environment: Release - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '16' - cache: 'npm' - cache-dependency-path: javascript/package-lock.json - - run: npm install-test - working-directory: javascript - - uses: cucumber/action-publish-npm@v1.1.0 - with: - npm-token: ${{ secrets.NPM_TOKEN }} - working-directory: javascript diff --git a/.github/workflows/release-nuget.yaml b/.github/workflows/release-nuget.yaml deleted file mode 100644 index 0c8da484f..000000000 --- a/.github/workflows/release-nuget.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Release NuGet - -on: - push: - branches: - - "release/*" - -jobs: - publish-nuget: - name: Publish package to NuGet.org - runs-on: ubuntu-latest - environment: Release - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 6.0.x - - uses: cucumber/action-publish-nuget@v1.0.0 - with: - nuget-api-key: ${{ secrets.NUGET_API_KEY }} - working-directory: "dotnet" diff --git a/.github/workflows/release-php.yaml b/.github/workflows/release-php.yaml deleted file mode 100644 index 9c29970bf..000000000 --- a/.github/workflows/release-php.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release PHP - -on: - push: - branches: [release/*] - -jobs: - publish-php-subrepo: - name: Publish to cucumber/php-go subrepo - runs-on: ubuntu-latest - environment: Release - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - uses: cucumber/action-publish-subrepo@v1.1.0 - with: - working-directory: php - github-token: ${{ secrets.CUKEBOT_GITHUB_TOKEN }} diff --git a/.github/workflows/release-pypi.yaml b/.github/workflows/release-pypi.yaml new file mode 100644 index 000000000..f5afed0d6 --- /dev/null +++ b/.github/workflows/release-pypi.yaml @@ -0,0 +1,43 @@ +name: Release Python + +on: + push: + branches: [release/*] + +jobs: + release: + name: Release + runs-on: ubuntu-latest + environment: Release + permissions: + id-token: write + defaults: + run: + working-directory: python + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Show Python version + run: python --version + + - name: Install Python package dependencies + run: | + python -m pip install -U pip setuptools wheel twine + pip install -e . + + - name: Build dist + run: python setup.py sdist bdist_wheel + + - name: Check dist + run: twine check dist/* + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: python/dist/ diff --git a/.github/workflows/release-rubygem.yml b/.github/workflows/release-rubygem.yml deleted file mode 100644 index 54149566c..000000000 --- a/.github/workflows/release-rubygem.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release RubyGems - -on: - push: - branches: [release/*] - -jobs: - publish-rubygem: - name: Publish Ruby Gem - runs-on: ubuntu-latest - environment: Release - steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.0.2' - bundler-cache: true - - uses: cucumber/action-publish-rubygem@v1.0.0 - with: - rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }} - working_directory: ruby diff --git a/python/setup.py b/python/setup.py index 466965778..6dc093fa0 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,5 +1,5 @@ # coding: utf-8 -from distutils.core import setup +from setuptools import setup setup(name="gherkin-official", packages=["gherkin", "gherkin.pickles", "gherkin.stream"], version="25.0.2",