Skip to content

Commit 5a8db6c

Browse files
authored
Move to uv for manage the project (#162)
* Move to uv for manage the project * Fix `tox`, use `uv`, not `poetry`
1 parent b019c10 commit 5a8db6c

File tree

6 files changed

+1143
-1412
lines changed

6 files changed

+1143
-1412
lines changed

.release-it.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
"tagAnnotation": "Release ${version}",
1818
"tagArgs": [],
1919
"push": true,
20-
"pushArgs": [
21-
"--follow-tags"
22-
],
20+
"pushArgs": ["--follow-tags"],
2321
"pushRepo": "",
2422
"changelog": "git log --no-merges --pretty=format:\"* %s (%h) by %an on %as\" ${from}...${to}"
2523
},
@@ -40,8 +38,11 @@
4038
},
4139
"plugins": {
4240
"@release-it/bumper": {
43-
"in": "VERSION",
44-
"out": "VERSION"
41+
"in": "pyproject.toml",
42+
"out": { "file": "pyproject.toml", "path": "project.version" }
4543
}
44+
},
45+
"hooks": {
46+
"after:bump": "uv sync"
4647
}
4748
}

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
# python-utility-scripts
2+
23
Repository for various python utility scripts
3-
* [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
4-
* [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
54

6-
## Installation
5+
- [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
6+
- [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
7+
- [pyutils-jira](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/jira_utils/README.md)
8+
- [pyutils-polarion-set-automated](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
79

8-
```bash
9-
pip3 install python-utility-scripts --user
10-
```
10+
## Installation
1111

12-
## Local run
13-
* Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
12+
using [uv](https://github.com/astral-sh/uv)
1413

1514
```bash
16-
git clone https://github.com/RedHatQE/python-utility-scripts.git
15+
uv tool install python-utility-scripts
1716
```
1817

19-
* Install [poetry](https://github.com/python-poetry/poetry)
18+
## Local run
2019

21-
```bash
22-
poetry install
23-
```
20+
- Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
2421

2522
## Config file
23+
2624
A config yaml file for various utilities of this repository should be added to
2725
`~/.config/python-utility-scripts/config.yaml`. Script specific config section details can be found in associated script README.md
2826

29-
3027
## Release new version
31-
### requirements:
32-
* Export GitHub token
28+
29+
### requirements
30+
31+
- Export GitHub token
3332

3433
```bash
3534
export GITHUB_TOKEN=<your_github_token>
3635
```
3736

38-
* [release-it](https://github.com/release-it/release-it)
37+
- [release-it](https://github.com/release-it/release-it)
3938

40-
* Run the following once (execute outside repository dir for example `~/`):
39+
- Run the following once (execute outside repository dir for example `~/`):
4140

4241
```bash
4342
sudo npm install --global release-it
4443
npm install --save-dev @j-ulrich/release-it-regex-bumper
4544
rm -f package.json package-lock.json
4645
```
4746

48-
### usage:
49-
* Create a release, run from the relevant branch.
50-
To create a new release, run:
47+
### usage
48+
49+
- Create a release, run from the relevant branch.
50+
To create a new release, run:
5151

5252
```bash
5353
git checkout main

0 commit comments

Comments
 (0)