File: release.md

package info (click to toggle)
anta 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,048 kB
  • sloc: python: 48,164; sh: 28; javascript: 9; makefile: 4
file content (63 lines) | stat: -rw-r--r-- 1,451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Notes

Notes regarding how to release anta package

## Package requirements

- `bumpver`

Also, [Github CLI](https://cli.github.com/) can be helpful and is recommended

## Bumping version

In a branch specific for this, use the `bumpver` tool.
It is configured to update:

- pyproject.toml
- docs/contribution.md
- docs/requirements-and-installation.md

For instance to bump a patch version:

```
bumpver update --patch
```

and for a minor version

```
bumpver update --minor
```

Tip: It is possible to check what the changes would be using `--dry`

```
bumpver update --minor --dry
```

## Creating release on Github

Create the release on Github with the appropriate tag `vx.x.x`

## Release version `x.x.x`

`x.x.x` is the version to be released

When publishing a version the workflow `release.yml` is run.

The workflow works as follow:

1. First build the wheel and the sdist for the package.
2. Release to test pypi using trusted publisher (it needs to be approved in GitHub UI).
3. Download the wheel from test pypi and run the tests by checking them out (testing on Linux, OSX and Windows).
4. Release to Pypi (it needs to be approved in Github UI).
5. Build and publish the doc.
6. Publish docker containers.

### Tips

#### Install from test pypi to run local tests between steps 2 and 4

   ```bash
   # In a brand new venv
   pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --no-cache anta[cli]