Skip to content

Commit 69679f7

Browse files
authored
Merge branch 'master' into pyup-update-django-extensions-3.1.5-to-3.2.3
2 parents 9f26b1e + bb0fc18 commit 69679f7

240 files changed

Lines changed: 9697 additions & 2519 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@v3
14+
uses: actions/checkout@v4
1515
- name: Initialize CodeQL
16-
uses: github/codeql-action/init@v2
16+
uses: github/codeql-action/init@v3
1717
- name: Autobuild
18-
uses: github/codeql-action/autobuild@v2
18+
uses: github/codeql-action/autobuild@v3
1919
- name: Perform CodeQL Analysis
20-
uses: github/codeql-action/analyze@v2
20+
uses: github/codeql-action/analyze@v3

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

Lines changed: 23 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@v3
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@v3
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,7 +62,7 @@ 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:
6768
EMAIL: furlongm@gmail.com
@@ -71,12 +72,12 @@ jobs:
7172
skip-checks: true
7273
run: |
7374
gbp dch --new-version=$(cat VERSION.txt)-1 --release --distribution=stable --spawn-editor=never --commit --commit-msg="${COMMIT_MSG}"
74-
git push origin master
75+
git push origin main
7576
build-and-upload-deb-assets:
7677
needs: update-version-and-changelog
7778
runs-on: ubuntu-latest
7879
container:
79-
image: debian:buster
80+
image: debian:bookworm
8081
steps:
8182
- name: Install build dependencies
8283
run: |
@@ -87,10 +88,10 @@ jobs:
8788
run: |
8889
rm /bin/sh
8990
ln -sf /bin/bash /bin/sh
90-
- uses: actions/checkout@v3
91+
- uses: actions/checkout@v4
9192
with:
9293
fetch-depth: 0
93-
ref: master
94+
ref: main
9495
- name: git fetch --all
9596
run: |
9697
git config --global --add safe.directory /__w/patchman/patchman
@@ -100,7 +101,7 @@ jobs:
100101
export version=$(echo "${{ github.ref }}" | cut -dv -f2)
101102
echo "version=${version}" >> $GITHUB_ENV
102103
- name: Download upload_url artifact
103-
uses: actions/download-artifact@v1
104+
uses: actions/download-artifact@v4
104105
with:
105106
name: upload_url.txt
106107
path: /home/runner/work/patchman/patchman
@@ -111,6 +112,7 @@ jobs:
111112
echo "upload_url=${upload_url}" >> $GITHUB_ENV
112113
- name: Build deb packages
113114
env:
115+
EMAIL: furlongm@gmail.com
114116
COMMIT_MSG: |
115117
auto-commit
116118
skip-checks: true
@@ -124,7 +126,7 @@ jobs:
124126
git tag v${version}
125127
gbp buildpackage --git-upstream-tree=${{ github.ref }} -uc -us
126128
- name: Upload python3-patchman deb
127-
uses: actions/upload-release-asset@v1.0.1
129+
uses: actions/upload-release-asset@v1
128130
env:
129131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130132
with:
@@ -133,7 +135,7 @@ jobs:
133135
asset_path: ../${{ format('python3-patchman_{0}-1_all.deb', env.version) }}
134136
asset_content_type: application/vnd.debian.binary-package
135137
- name: Upload patchman-client deb
136-
uses: actions/upload-release-asset@v1.0.1
138+
uses: actions/upload-release-asset@v1
137139
env:
138140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139141
with:
@@ -145,16 +147,16 @@ jobs:
145147
needs: update-version-and-changelog
146148
runs-on: ubuntu-latest
147149
container:
148-
image: quay.io/centos/centos:stream8
150+
image: quay.io/centos/centos:stream9
149151
steps:
150152
- name: Install build dependencies
151153
run: |
152154
dnf -y install epel-release
153155
dnf -y install rpm-build python3 python3-setuptools git
154-
- uses: actions/checkout@v3
156+
- uses: actions/checkout@v4
155157
with:
156158
fetch-depth: 0
157-
ref: master
159+
ref: main
158160
- name: git fetch --all
159161
run: |
160162
git config --global --add safe.directory /__w/patchman/patchman
@@ -164,7 +166,7 @@ jobs:
164166
export version=$(echo "${{ github.ref }}" | cut -dv -f2)
165167
echo "version=${version}" >> $GITHUB_ENV
166168
- name: Download upload_url artifact
167-
uses: actions/download-artifact@v1
169+
uses: actions/download-artifact@v4
168170
with:
169171
name: upload_url.txt
170172
path: /home/runner/work/patchman/patchman
@@ -178,7 +180,7 @@ jobs:
178180
python3 setup.py bdist_rpm --python=/usr/bin/python3
179181
rpmbuild -bb patchman-client.spec
180182
- name: Upload patchman rpm
181-
uses: actions/upload-release-asset@v1.0.1
183+
uses: actions/upload-release-asset@v1
182184
env:
183185
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184186
with:
@@ -187,7 +189,7 @@ jobs:
187189
asset_path: ${{ format('dist/patchman-{0}-1.noarch.rpm', env.version) }}
188190
asset_content_type: application/x-rpm
189191
- name: Upload patchman-client rpm
190-
uses: actions/upload-release-asset@v1.0.1
192+
uses: actions/upload-release-asset@v1
191193
env:
192194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
193195
with:
@@ -199,9 +201,9 @@ jobs:
199201
needs: update-version-and-changelog
200202
runs-on: ubuntu-latest
201203
steps:
202-
- uses: actions/checkout@v3
204+
- uses: actions/checkout@v4
203205
- name: Set up python
204-
uses: actions/setup-python@v4
206+
uses: actions/setup-python@v5
205207
with:
206208
python-version: '3.x'
207209
- 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.7, 3.8]
13+
python-version: ['3.x']
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
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)