Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 383601b

Browse files
committed
Use build as frontend and setuptools as backend to handle ci-environment
1 parent b6198b8 commit 383601b

File tree

7 files changed

+20
-16
lines changed

7 files changed

+20
-16
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set unique package version
2222
id: set-version
2323
run: |
24-
sed -i -e "s/\(version *= *\"[0-9]*\.[0-9]*\)\.[0-9]*\(\"\)/\1.${{ github.run_number }}\2/" setup.py
24+
sed -i -e "s/\(version *= *\"[0-9]*\.[0-9]*\)\.[0-9]*\(\"\)/\1.${{ github.run_number }}\2/" pyproject.toml
2525
shell: bash
2626
working-directory: "test/cucumber-test-release-automation"
2727
- name: Test the action

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Changed
10+
- Change to build as build frontend and setuptools as build backend. This is to adapt to the setup in cucumber/ci-environment.
911

1012
## [2.0.0] - 2024-01-15
1113
### Changed

action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ runs:
1010
steps:
1111
- name: Install Python package dependencies
1212
run: |
13-
python -m pip install -U pip setuptools wheel twine
13+
python -m pip install -U pip setuptools wheel twine build
1414
pip install -e .
1515
shell: bash
1616
working-directory: ${{ inputs.working-directory }}
1717
- name: Build dist
18-
run: python setup.py sdist bdist_wheel
18+
run: python -m build
1919
shell: bash
2020
working-directory: ${{ inputs.working-directory }}
2121
- name: Check dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Cucumber Test Release Automation
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = ["setuptools", "wheel"]
4+
5+
[project]
6+
name = "cucumber-test-release-automation"
7+
version = "0.0.1"
8+
description = ""
9+
authors = [
10+
{name = "Matt Wynne", email = "[email protected]"}
11+
]
12+
readme = {file = "README.md", content-type = "text/markdown"}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[options]
2+
include_package_data = True

test/cucumber-test-release-automation/setup.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)