Skip to content

Commit 956a149

Browse files
authored
Merge branch 'main' into pyup-update-colorama-0.4.4-to-0.4.6
2 parents 8fa1fbf + f1b2f69 commit 956a149

249 files changed

Lines changed: 9970 additions & 2662 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: furlongm
2+
patreon: furlongm

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ name: "Code Scanning - Action"
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
7-
branches: [master]
7+
branches: [main]
88

99
jobs:
1010
CodeQL-Build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: Initialize CodeQL
16-
uses: github/codeql-action/init@v1
16+
uses: github/codeql-action/init@v3
1717
- name: Autobuild
18-
uses: github/codeql-action/autobuild@v1
18+
uses: github/codeql-action/autobuild@v3
1919
- name: Perform CodeQL Analysis
20-
uses: github/codeql-action/analyze@v1
20+
uses: github/codeql-action/analyze@v3

.github/workflows/create-release-and-upload-assets.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
create-release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
14-
ref: master
14+
ref: main
1515
- name: git fetch --all
1616
run: |
1717
git fetch --all
@@ -29,18 +29,18 @@ jobs:
2929
run: |
3030
echo "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt
3131
- name: Upload upload_url artifact
32-
uses: actions/upload-artifact@v1
32+
uses: actions/upload-artifact@v4
3333
with:
3434
name: upload_url.txt
3535
path: upload_url.txt
3636
update-version-and-changelog:
3737
needs: create-release
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
43-
ref: master
43+
ref: main
4444
- name: git fetch --all
4545
run: |
4646
git fetch --all
@@ -50,6 +50,7 @@ jobs:
5050
git config user.name 'Marcus Furlong'
5151
- name: Install dependencies
5252
run: |
53+
sudo apt update
5354
sudo apt -y install python3-setuptools debhelper dh-exec dh-python git-buildpackage
5455
- name: Update repo version if required
5556
env:
@@ -61,21 +62,22 @@ jobs:
6162
echo "${{ github.ref }}" | cut -dv -f2 > VERSION.txt
6263
git add VERSION.txt
6364
git diff --quiet && git diff --staged --quiet || git commit -m "${COMMIT_MSG}"
64-
git push origin master
65+
git push origin main
6566
- name: Update debian changelog
6667
env:
68+
EMAIL: furlongm@gmail.com
6769
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6870
COMMIT_MSG: |
6971
auto-commit to update debian changelog
7072
skip-checks: true
7173
run: |
7274
gbp dch --new-version=$(cat VERSION.txt)-1 --release --distribution=stable --spawn-editor=never --commit --commit-msg="${COMMIT_MSG}"
73-
git push origin master
75+
git push origin main
7476
build-and-upload-deb-assets:
7577
needs: update-version-and-changelog
7678
runs-on: ubuntu-latest
7779
container:
78-
image: debian:buster
80+
image: debian:bookworm
7981
steps:
8082
- name: Install build dependencies
8183
run: |
@@ -86,19 +88,20 @@ jobs:
8688
run: |
8789
rm /bin/sh
8890
ln -sf /bin/bash /bin/sh
89-
- uses: actions/checkout@v2
91+
- uses: actions/checkout@v4
9092
with:
9193
fetch-depth: 0
92-
ref: master
94+
ref: main
9395
- name: git fetch --all
9496
run: |
97+
git config --global --add safe.directory /__w/patchman/patchman
9598
git fetch --all
9699
- name: Get version
97100
run: |
98101
export version=$(echo "${{ github.ref }}" | cut -dv -f2)
99102
echo "version=${version}" >> $GITHUB_ENV
100103
- name: Download upload_url artifact
101-
uses: actions/download-artifact@v1
104+
uses: actions/download-artifact@v4
102105
with:
103106
name: upload_url.txt
104107
path: /home/runner/work/patchman/patchman
@@ -109,6 +112,7 @@ jobs:
109112
echo "upload_url=${upload_url}" >> $GITHUB_ENV
110113
- name: Build deb packages
111114
env:
115+
EMAIL: furlongm@gmail.com
112116
COMMIT_MSG: |
113117
auto-commit
114118
skip-checks: true
@@ -122,7 +126,7 @@ jobs:
122126
git tag v${version}
123127
gbp buildpackage --git-upstream-tree=${{ github.ref }} -uc -us
124128
- name: Upload python3-patchman deb
125-
uses: actions/upload-release-asset@v1.0.1
129+
uses: actions/upload-release-asset@v1
126130
env:
127131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128132
with:
@@ -131,7 +135,7 @@ jobs:
131135
asset_path: ../${{ format('python3-patchman_{0}-1_all.deb', env.version) }}
132136
asset_content_type: application/vnd.debian.binary-package
133137
- name: Upload patchman-client deb
134-
uses: actions/upload-release-asset@v1.0.1
138+
uses: actions/upload-release-asset@v1
135139
env:
136140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137141
with:
@@ -143,25 +147,26 @@ jobs:
143147
needs: update-version-and-changelog
144148
runs-on: ubuntu-latest
145149
container:
146-
image: quay.io/centos/centos:stream8
150+
image: quay.io/centos/centos:stream9
147151
steps:
148152
- name: Install build dependencies
149153
run: |
150154
dnf -y install epel-release
151155
dnf -y install rpm-build python3 python3-setuptools git
152-
- uses: actions/checkout@v2
156+
- uses: actions/checkout@v4
153157
with:
154158
fetch-depth: 0
155-
ref: master
159+
ref: main
156160
- name: git fetch --all
157161
run: |
162+
git config --global --add safe.directory /__w/patchman/patchman
158163
git fetch --all
159164
- name: Get version
160165
run: |
161166
export version=$(echo "${{ github.ref }}" | cut -dv -f2)
162167
echo "version=${version}" >> $GITHUB_ENV
163168
- name: Download upload_url artifact
164-
uses: actions/download-artifact@v1
169+
uses: actions/download-artifact@v4
165170
with:
166171
name: upload_url.txt
167172
path: /home/runner/work/patchman/patchman
@@ -175,7 +180,7 @@ jobs:
175180
python3 setup.py bdist_rpm --python=/usr/bin/python3
176181
rpmbuild -bb patchman-client.spec
177182
- name: Upload patchman rpm
178-
uses: actions/upload-release-asset@v1.0.1
183+
uses: actions/upload-release-asset@v1
179184
env:
180185
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181186
with:
@@ -184,7 +189,7 @@ jobs:
184189
asset_path: ${{ format('dist/patchman-{0}-1.noarch.rpm', env.version) }}
185190
asset_content_type: application/x-rpm
186191
- name: Upload patchman-client rpm
187-
uses: actions/upload-release-asset@v1.0.1
192+
uses: actions/upload-release-asset@v1
188193
env:
189194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190195
with:
@@ -196,9 +201,9 @@ jobs:
196201
needs: update-version-and-changelog
197202
runs-on: ubuntu-latest
198203
steps:
199-
- uses: actions/checkout@v2
204+
- uses: actions/checkout@v4
200205
- name: Set up python
201-
uses: actions/setup-python@v1
206+
uses: actions/setup-python@v5
202207
with:
203208
python-version: '3.x'
204209
- name: Set version

.github/workflows/lint-and-test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ jobs:
88
lint-and-test:
99
runs-on: ubuntu-latest
1010
strategy:
11-
max-parallel: 4
11+
max-parallel: 5
1212
matrix:
13-
python-version: [3.6, 3.7, 3.8]
13+
python-version: ['3.x']
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --upgrade pip
22+
sudo apt update
23+
sudo apt -y install libxslt-dev libxml2-dev
24+
python -m pip install --upgrade pip setuptools
2325
pip install -r requirements.txt
2426
- name: Lint with flake8
2527
run: |
@@ -29,4 +31,6 @@ jobs:
2931
- name: Set secret key
3032
run: ./sbin/patchman-set-secret-key
3133
- name: Test with django
32-
run: ./manage.py test
34+
run: |
35+
pip install legacy-cgi
36+
./manage.py test

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ tmp*
99
.svn
1010
.tox
1111
patchman.egg-info
12+
build
13+
dist
14+
run
15+
pyvenv.cfg
16+
.vscode
17+
.venv
18+
*.xml

BUILD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ git tag v${version}
1111
# Build DEB package
1212

1313
```shell
14-
sudo apt -y install python-setuptools debhelper dh-exec dh-python git-buildpackage
14+
sudo apt -y install python3-setuptools debhelper dh-exec dh-python git-buildpackage
1515
gbp dch --commit
1616
gbp buildpackage -uc -us
1717
```

0 commit comments

Comments
 (0)