Skip to content

Commit 12bd0e6

Browse files
committed
merge default trunk into branch
2 parents 400cb69 + 0af4484 commit 12bd0e6

39 files changed

+552
-135
lines changed

.github/workflows/anchore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout the code
40-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
40+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4141
- name: Build the Docker image
4242
run: docker pull python:3-alpine; docker build . --file scripts/Docker/Dockerfile --tag localbuild/testimage:latest
4343
- name: List the Docker image

.github/workflows/ci-test.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ jobs:
9393
# if: {{ false }}
9494
# continue running if step fails
9595
# continue-on-error: true
96-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
96+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
9797

9898
# Setup version of Python to use
9999
- name: Set Up Python ${{ matrix.python-version }}
100-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
100+
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
101101
with:
102102
python-version: ${{ matrix.python-version }}
103103
allow-prereleases: true
@@ -184,16 +184,13 @@ jobs:
184184
185185
- name: Install xapian
186186
run: |
187+
set -xv
187188
sudo apt-get install libxapian-dev
188189
# Sphinx required to build the xapian python bindings. Use 1.8.5 on
189190
# older python and newest on newer.
190191
if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
191192
if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
192-
if [[ $PYTHON_VERSION == '3.12'* ]] ; then \
193-
XAPIAN_VER=1.4.22; \
194-
else
195-
XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER; \
196-
fi
193+
XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER;
197194
cd /tmp
198195
curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
199196
tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
@@ -204,8 +201,19 @@ jobs:
204201
# 3.11 or newer.
205202
# Change distutils.sysconfig... to just sysconfig and SO
206203
# to EXT_SUFFIX to get valid value.
207-
if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
208-
case "$PYTHON_VERSION" in nightly|3.12*) echo skipping xapian build;; *) make && sudo make install; esac
204+
if [[ $PYTHON_VERSION == "3."* ]]; then \
205+
cp configure configure.FCS; \
206+
sed -i \
207+
-e '/PYTHON3_SO=/s/distutils\.//g' \
208+
-e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' \
209+
-e '/PYTHON3_CACHE_TAG=/s/imp;print(imp.get_tag())/sys;print(sys.implementation.cache_tag)/' \
210+
-e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\.get_tag()/sys.implementation.cache_tag/g' \
211+
-e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\b/importlib/g' \
212+
configure; \
213+
diff -u configure.FCS configure || true; \
214+
./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; \
215+
fi
216+
case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
209217
210218
- name: Install pytest and other packages needed for running tests
211219
run: pip install flake8 mock pytest pytest-cov requests

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
steps:
5151
- name: Checkout repository
52-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2.6.0
52+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
5353

5454
# Initializes the CodeQL tools for scanning.
5555
- name: Initialize CodeQL

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535

3636
steps:
3737
- name: "Checkout code"
38-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.1.0
38+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
3939
with:
4040
persist-credentials: false
4141

4242
- name: "Run analysis"
43-
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
43+
uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 # v2.3.0
4444
with:
4545
results_file: results.sarif
4646
results_format: sarif

.grype.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ignore:
2+
- vulnerability: CVE-2018-20225
3+
- vulnerability: CVE-2018-20225-pip

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@ c90104abe508e3886917243e4acd069c8ef7a1a4 2.2.0
143143
239d9542b02062c56f88fd1de8b87c4d88d700ad 2.2.0
144144
51fc06fabcee043db116e2fbdcdcf5e86b67ed3d 2.3.0b2
145145
913a73b9fab58e9c7e43e1fad379b68cae6ee3ae 2.3.0
146+
d17e57220a62416fcd192199cf29ca48db3af1a4 2.3.1a0

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ install:
138138
- if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install mistune==0.8.4; fi
139139
- if [[ $TRAVIS_PYTHON_VERSION != "3.4"* && $TRAVIS_PYTHON_VERSION != "2."* ]]; then pip install Markdown; fi
140140
- pip install 'markdown2<=2.4.8'
141-
- pip install brotli
141+
- pip install brotli==1.0.9
142142
# zstd fails to build under python nightly aborting test.
143143
# allow testing to still happen if the optional package doesn't install.
144144
- pip install zstd || true
@@ -165,7 +165,7 @@ script:
165165
- PATH=$VIRTUAL_ENV/bin:$PATH
166166
- export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
167167
- python -c "import sys; print('python version ', sys.version)"
168-
- set -xv; if [[ "$TRAVIS_PYTHON_VERSION" != "2."* ]]; then
168+
- if [[ "$TRAVIS_PYTHON_VERSION" != "2."* ]]; then
169169
python -m pytest -r a \
170170
--durations=20 \
171171
-W default \
@@ -183,7 +183,7 @@ script:
183183

184184
after_success:
185185
# from https://docs.codecov.com/docs/codecov-uploader#integrity-checking-the-uploader
186-
- curl https://keybase.io/codecovsecurity/pgp_keys.asc |
186+
- curl https://keybase.io/codecovsecurity/pgp_keys.asc | \
187187
gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
188188
- curl -Os https://uploader.codecov.io/latest/linux/codecov
189189
- curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM

CHANGES.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,33 @@ Fixed:
4747
source install. (John Rouillard)
4848
- Document use of pyreadline3 to allow roundup-admin to have CLI editing
4949
on windows. (John Rouillard)
50+
- issue2551293 - remove schema_hook from Tracker instance. Looks like
51+
it was an obsolete hook used for testing. Never documented and not
52+
accessible from schema.py.
53+
- Fix roundup-admin security command. Lowercase its optional
54+
argument. Roles are indexed by lower case role name. So 'security
55+
User' and 'security user' should generate the same output. (John
56+
Rouillard from issue on mailing list by Chuck Cunningham)
57+
- make roundup-server exit more quickly on ^C. This seems to be
58+
limited to windows. (John Rouillard)
59+
- Fix error handling so failure during import of a non-user item
60+
doesn't cause a second traceback. (Found by Norbert Schlemmer, fix
61+
John Rouillard)
62+
- Handle out of memory error when importing large trackers in
63+
PostgreSQL. (Found by Norbert Schlemmer, extensive testing by
64+
Norbert, fix John Rouillard)
65+
- use unittest.mock rather than mock for
66+
test/test_hyperdbvals.py. (found by Ralf Schlatterbeck. Fix John
67+
Rouillard)
68+
- disable proxy with wget in roundup_healthcheck. (Norbert SCHLEMMER
69+
Noschvie on github.com)
70+
- support dicttoxml2.py for Roundup running on 3.7 and
71+
newer. dicttoxml uses a type alias: collection.Iterator that is
72+
dropped in Python 3.10. (found by Norbert SCHLEMMER, fix John
73+
Rouillard)
74+
- fix repeated password id with user.item.html in all templates except
75+
jinja2. (John Rouillard)
76+
- fix unclosed file when saving index in indexer_dbm.py. (John Rouillard)
5077

5178
Features:
5279

RELEASE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Roundup release checklist:
236236

237237
Also can scan (optionally) using trivy:
238238

239-
docker run --rm --volume \
239+
docker run -it --rm --volume \
240240
/var/run/docker.sock:/var/run/docker.sock \
241241
--name trivy aquasec/trivy:latest image rounduptracker/roundup:2.2.0
242242

doc/acknowledgements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ ideas and everything else that helped!
1616

1717
.. _`Announcement with changelog for current release.`: announcement.html
1818

19+
2.4
20+
---
21+
22+
2.4.0
23+
~~~~~
24+
25+
Maintainer: John Rouillard
26+
27+
Release Manager: John Rouillard
28+
29+
Developer activity by changesets::
30+
31+
TBD
32+
33+
Other contributers
34+
35+
Norbert Schlemmer
36+
1937
2.3
2038
---
2139

0 commit comments

Comments
 (0)