Skip to content

Commit 8c0d368

Browse files
committed
Refine workflow and add documentation and changelog #1351
Signed-off-by: tdruez <[email protected]>
1 parent 29e2322 commit 8c0d368

File tree

5 files changed

+40
-11
lines changed

5 files changed

+40
-11
lines changed

Diff for: .github/workflows/pypi-release-aboutcode-pipeline.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build aboutcode.pipeline Python distributions and publish on PyPI
22

33
on:
44
workflow_dispatch:
5-
# push:
6-
# tags:
7-
# - "aboutcode.pipeline/v*.*.*"
5+
push:
6+
tags:
7+
- "aboutcode.pipeline/*"
88

99
jobs:
1010
build-and-publish:
@@ -36,9 +36,3 @@ jobs:
3636
with:
3737
name: pypi_archives
3838
path: dist/*
39-
40-
- name: Create a GitHub release
41-
uses: softprops/action-gh-release@v1
42-
with:
43-
draft: false
44-
files: dist/*

Diff for: aboutcode/pipeline/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## Release 0.1.0 (August 9, 2023)
4+
5+
* Initial release of the `aboutcode.pipeline` library. [Issue #1351](https://github.com/nexB/scancode.io/issues/1351)

Diff for: aboutcode/pipeline/RELEASE.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Release instructions for `aboutcode.pipeline`
2+
3+
### Automated release workflow
4+
5+
- Create a new `aboutcode.pipeline-release-x.x.x` branch
6+
- Update the version in:
7+
- `pipeline-pyproject.toml`
8+
- `aboutcode/pipeline/__init__.py`
9+
- Commit and push this branch
10+
- Create a PR and merge once approved
11+
- Tag and push to trigger the `pypi-release-aboutcode-pipeline.yml` workflow that
12+
takes care of building the distribution archives and upload those to pypi::
13+
```
14+
VERSION=x.x.x # <- Set the new version here
15+
TAG=aboutcode.pipeline/$VERSION
16+
git tag -a $TAG -m ""
17+
git push origin $TAG
18+
```
19+
20+
### Manual build
21+
22+
```
23+
cd scancode.io
24+
source .venv/bin/activate
25+
pip install flot
26+
flot --pyproject pipeline-pyproject.toml --sdist --wheel --output-dir dist/
27+
```
28+
29+
The distribution archives will be available in the local `dist/` directory.

Diff for: aboutcode/pipeline/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
module_logger = logging.getLogger(__name__)
3232

33-
__version__ = "0.1"
33+
__version__ = "0.1.0"
3434

3535

3636
class PipelineDefinition:

Diff for: pipeline-pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flot.buildapi"
44

55
[project]
66
name = "aboutcode.pipeline"
7-
version = "0.1"
7+
version = "0.1.0"
88
description = "AboutCode Pipeline library. Execute code in steps."
99
license = { text = "Apache-2.0" }
1010
readme = "aboutcode/pipeline/README.md"
@@ -31,6 +31,7 @@ classifiers = [
3131
[project.urls]
3232
Homepage = "https://github.com/nexB/scancode.io"
3333
Documentation = "https://scancodeio.readthedocs.io/"
34+
Changelog = "https://github.com/nexB/scancode.io/tree/main/aboutcode/pipeline/CHANGELOG.md"
3435
Repository = "https://github.com/nexB/scancode.io/tree/main/aboutcode/pipeline"
3536
Issues = "https://github.com/nexB/scancode.io/issues"
3637

0 commit comments

Comments
 (0)