Hans-Christoph Steiner
864ccb560b
Merge branch 'pydocfix' into 'master'
...
🪐 fix pydoc link in hooks/pre-commit
See merge request fdroid/fdroidserver!1612
2025-03-12 09:17:58 +00:00
Michael Pöhn
14e13b4f4a
🪐 fix pydoc link in hooks/pre-commit
...
updated pydoc linter flags based on how it's used in .gitlab-ci.yml
2025-03-12 10:04:46 +01:00
Michael Pöhn
1521d5c659
Merge branch 'YAML-1.2' into 'master'
...
standardize config on ruamel.yaml with a YAML 1.2 config
See merge request fdroid/fdroidserver!1611
2025-03-10 08:34:06 +00:00
Hans-Christoph Steiner
3ab2baf542
_yaml.config_dump() for writing out config
...
This outputs YAML in a string that is suitable for use in regexps
and string replacements, as well as complete files. It is therefore
explicitly set up to avoid writing out headers and footers.
2025-03-10 08:49:18 +01:00
Hans-Christoph Steiner
2f47938dbf
standardize config on ruamel.yaml with a YAML 1.2 config
...
This is a key piece of the ongoing `PUBLISH` _config.yml_ migration. There was uneven implementation of which YAML parser to use, and that could lead to bugs where one parser might read a value one way, and a different parser will read the value a different way. I wanted to be sure that YAML 1.2 would always work.
This makes all code that handles config files use the same `ruamel.yaml` parsers. This only touches other usages of YAML parsers when there is overlap. This does not port all of _fdroidserver_ to `ruamel.yaml` and YAML 1.2. The metadata files should already be YAML 1.2 anyway.
# Conflicts:
# fdroidserver/lint.py
2025-03-10 08:48:58 +01:00
Hans-Christoph Steiner
53b62415d3
load lint_licenses where it is needed to avoid circular imports
...
This is the only thing that common.py imports from lint.py.
2025-03-07 14:52:23 +01:00
Jochen Sprickerhof
16fb0fbe91
Merge branch 'purge-config.py' into 'master'
...
purge config.py
See merge request fdroid/fdroidserver!1607
2025-03-05 14:42:01 +00:00
Hans-Christoph Steiner
3cc6c09ffc
use common var for 'config.yml', standarize on UTF-8
...
This makes it easy to track all the places that use config.yml, and
hopefully makes things feel cleaner. This also standardizes all places
where config.yml is written out to use UTF-8 as the file encoding.
This also includes a lot of black code format fixes.
2025-03-05 12:20:32 +01:00
Hans-Christoph Steiner
1f96a84f9a
gitlab-ci: add yamllint job
2025-02-26 17:28:01 +01:00
Hans-Christoph Steiner
642499ec94
purge config.py handling, it is no longer supported
2025-02-26 17:27:58 +01:00
Hans-Christoph Steiner
cb9533bd74
Merge branch 'gradle-release-checksums.py' into 'master'
...
update to gradle v8.13
See merge request fdroid/fdroidserver!1609
2025-02-26 12:39:57 +00:00
fdroid-bot
a37c409c74
gradle v8.13
2025-02-26 10:19:22 +00:00
Michael Pöhn
0f5a1a0bfb
Merge branch 'lint-config.yml' into 'master'
...
Lint config.yml
See merge request fdroid/fdroidserver!1606
2025-02-26 10:18:47 +00:00
Hans-Christoph Steiner
1ee9ea8cf9
lint: implement for config.yml
2025-02-24 19:07:27 +01:00
Hans-Christoph Steiner
695d97e103
fix: "no new line character at the end of file"
...
If yamllint is installed `fdroid lint` will run it, and what will output
the (new-line-at-end-of-file) warning message.
2025-02-24 18:13:13 +01:00
Hans-Christoph Steiner
56865f9ba6
checkupdates: remove auto_author: config, it is no longer used
...
checkupdates-runner sets the required values anyway.
fe3cb890db/.gitlab-ci.yml (L35)
2025-02-24 11:58:56 +01:00
Hans-Christoph Steiner
ecdf47d893
update: do not crash on {env: } in paths in config.yml
2025-02-22 23:32:29 +01:00
Hans-Christoph Steiner
4d66f30faf
Merge branch 'skip-test-on-macOS' into 'master'
...
skip test with mystery failure only on macOS
See merge request fdroid/fdroidserver!1605
2025-02-14 10:15:17 +00:00
Hans-Christoph Steiner
f92542c7ea
skip test with mystery failure only on macOS
...
https://gitlab.com/fdroid/fdroidserver/-/merge_requests/1587#note_2273747610
This happened when this test was a shell script as well:
https://gitlab.com/fdroid/fdroidserver/-/blob/2.3.5/tests/run-tests#L1244
2025-02-14 11:12:22 +01:00
Hans-Christoph Steiner
dde1942520
Merge branch 'migrate-integration-tests-to-python' into 'master'
...
Migrate integration tests from Bash to Python
See merge request fdroid/fdroidserver!1587
2025-02-13 20:40:35 +00:00
Hans-Christoph Steiner
1694966455
gpg requires a short path to the socket to talk to gpg-agent
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
efda0f5d6c
skip gpgsign test if gpg is not availabe on the PATH
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
b7c5233668
test_integration: stop trying to handle proxy errors
...
I don't think it is possible to automatically handle those cases, because
proxy setups can be so widely varied and can have privacy ramifications.
The person running the test who hits proxy errors will need to handle them
manually.
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
efce0ce0e4
use shared test function to replicate .testfiles setup
...
* It should include a subdir named after the test case.
* self.testdir is the common var name for this.
* tmp_repo is not a repo/ subdir, but instead the root of the whole repo
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
820abbc876
'archive/' dir might have been locally created
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
7a21c24e45
test_integration: add docstring comments
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
b933043ca1
new helpers: get_output_extension() & get_release_apk_filename()
...
This also moves to the standard var names: appid & versionCode
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
8b52740636
use for f in files var name; avoid using keyword as var name
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
1720a51e9e
replace := walrus operator usages
2025-02-13 17:56:30 +01:00
mindston
1cbd68af84
Ignore bandit insecure usage of tmp dir warnings
2025-02-13 17:56:30 +01:00
mindston
565ae02678
Remove macOS exceptions
2025-02-13 17:56:30 +01:00
mindston
fa4ff197aa
Force C.UTF-8 locale for messages instead of en_US.UTF-8
2025-02-13 17:56:30 +01:00
mindston
aeb6c612e9
Set configuration variables for tests that run Git
2025-02-13 17:56:30 +01:00
mindston
96f9d7fdf8
Fix androguard import for versions <4
2025-02-13 17:56:30 +01:00
mindston
385832c1fd
Fix usage of removed $WORKSPACE variable in run-tests
2025-02-13 17:56:30 +01:00
mindston
62b4af4f19
Fix UTC timezone import to work on Python <3.11
2025-02-13 17:56:30 +01:00
mindston
9201b3ca94
Migrate integration tests from Bash to Python
2025-02-13 17:56:30 +01:00
Hans-Christoph Steiner
49697d1479
Merge branch 'error-on-duplicate-files' into 'master'
...
index: error if duplicate package files are in repo
See merge request fdroid/fdroidserver!1602
2025-02-13 16:56:08 +00:00
Hans-Christoph Steiner
f7dc89e9ba
index: error if duplicate package files are in repo
...
Looks like the ~index-v2 work removed this error case, and the old bash
integration test case failed to catch it. This reestablishes this error.
@mindston's refactoring of the old bash test suite caught this issue, e.g.
!1587
2025-02-12 18:38:05 +01:00
Jochen Sprickerhof
6df9d0ecba
Merge branch 'autoname' into 'master'
...
checkupdates: sort the order of dirs when finding autoname
See merge request fdroid/fdroidserver!1601
2025-02-07 17:26:17 +00:00
linsui
a7e56598d6
checkupdates: sort the order of dirs when finding autoname
2025-02-07 22:16:18 +08:00
Hans-Christoph Steiner
9215f5e4b1
Merge branch 'triple-t' into 'master'
...
update.py: fix triple-t metadata extract when there is no subdir
See merge request fdroid/fdroidserver!1599
2025-01-27 13:49:11 +00:00
linsui
2b725a5966
update.py: fix triple-t metadata extract when there is no subdir
2025-01-27 13:47:36 +00:00
Hans-Christoph Steiner
7c376209e0
Merge branch 'testcommon-rename-to-shared_test_code' into 'master'
...
tests: rename testcommon module to shared_test_code
See merge request fdroid/fdroidserver!1583
2025-01-27 10:21:58 +00:00
Hans-Christoph Steiner
66d220bd9f
tests: rename testcommon module to shared_test_code
...
This name always confuses me, since there is also test_common.py. And this
module is not actually a test suite, even though it starts with "test".
This also makes for better tab completion, e.g.
python3 -m unittest tests/te[Tab] -> tests/test_
2025-01-27 10:11:19 +00:00
linsui
f9431aaf0f
Merge branch 'gradle' into 'master'
...
gradle v8.12.1
See merge request fdroid/fdroidserver!1598
2025-01-26 04:20:00 +00:00
linsui
0c6e976a01
gradle v8.12.1
2025-01-26 12:09:54 +08:00
Hans-Christoph Steiner
6e1c1f4cc0
make -C locale update
2025-01-21 17:03:56 +01:00
Hans-Christoph Steiner
f719efcba0
version 2.3.5
2025-01-21 16:43:22 +01:00
Hans-Christoph Steiner
e45709beef
update CHANGELOG.md
2025-01-21 16:43:16 +01:00