proletarius101
1c33e481e5
test(deploy): fix directory exists error when running tests the second time
2024-06-07 12:48:04 +02:00
proletarius101
80e57f5fb3
test(deploy): fix No such file or directory
2024-06-07 12:48:04 +02:00
proletarius101
eb930c6aab
test(deploy): fix typo in rclone test cases
2024-06-07 12:48:04 +02:00
proletarius101
452b1bf3aa
fix(deploy): fix errors introduced by merging
2024-06-07 12:48:04 +02:00
proletarius101
4bb4fde8ed
feat(deploy): add index-only mode to the rclone deployment method
2024-06-07 12:48:04 +02:00
proletarius101
04a584eff8
style(deploy): fix pyflake
2024-06-07 12:48:04 +02:00
proletarius101
52e3585297
fix(deploy): all files are uploaded if the index only mode deployment follows a full mode one
...
switch the branch before rsyncing
2024-06-07 12:48:04 +02:00
proletarius101
88239fe6fb
test(deploy): make sure the APK file is not uploaded in the index only mode
2024-06-07 12:48:04 +02:00
proletarius101
eef97456ea
fix(deploy): local files are not synced to the local git repo
2024-06-07 12:48:04 +02:00
proletarius101
c2d192024a
fix(deploy): files are not pushed to the remote
2024-06-07 12:48:04 +02:00
proletarius101
c8880f31be
test(deploy): fix fdroidserver.deploy.options is None
2024-06-07 12:48:04 +02:00
proletarius101
a1c225c50d
test(deploy): fix errors
2024-06-07 12:48:04 +02:00
proletarius101
44530a7272
fix(deploy): don't recreate the branches
2024-06-07 12:48:04 +02:00
Hans-Christoph Steiner
0db842881d
fix: avoid making the parent directory redundantly in test case
2024-06-07 12:48:04 +02:00
proletarius101
ad83e1b880
fix: ModuleNotFoundError
2024-06-07 12:48:04 +02:00
proletarius101
ef589531aa
lint: fix black formatting
2024-06-07 12:48:04 +02:00
proletarius101
4c15cea78a
fix(deploy): remove the index-only mode from elsewhere except the config file
...
To enable per-remote configuration
2024-06-07 12:48:04 +02:00
proletarius101
12c1cde4f9
style: fix lint
2024-06-07 12:48:04 +02:00
proletarius101
649559b84c
style: fix lint
2024-06-07 12:48:04 +02:00
proletarius101
f06acc5973
refactor: use _get_index_file_paths() instead of this mix of --include/--exclude
2024-06-07 12:48:04 +02:00
proletarius101
76d16ecb81
refactor: remove the support of the index only mode when syncing to the local filesystem
2024-06-07 12:48:04 +02:00
proletarius101
bbd6f37746
feat(deploy): add index only mode in update_servergitmirrors
2024-06-07 12:48:04 +02:00
proletarius101
b7a07af49c
style(deploy): remove unused imports
2024-06-07 12:48:04 +02:00
proletarius101
cd2a17b527
test(deploy): add test cases for update_awsbucket_libcloud and fix errors
2024-06-07 12:48:04 +02:00
proletarius101
d5d2b5368a
test(deploy): add test cases for update_awsbucket_s3cmd
2024-06-07 12:48:04 +02:00
proletarius101
7c1dc60928
fix(deploy): add test cases for local copy mode and fix issues
2024-06-07 12:48:04 +02:00
proletarius101
70fd68f1c6
fix(deploy): add test cases for server webroot mode and fix issues
2024-06-07 12:48:04 +02:00
proletarius101
2958b3be4c
test(deploy): properly test non-index-only mode
2024-06-07 12:48:04 +02:00
paul mayero
7aabfbcbf0
Adding rclone as an option to fdroid deploy
2024-05-29 14:08:07 +00:00
Hans-Christoph Steiner
18f3acc32e
split out options from read_config()
...
There is no longer any reason for these to be intertwined.
This deliberately avoids touching some files as much as possible because
they are super tangled and due to be replaced. Those files are:
* fdroidserver/build.py
* fdroidserver/update.py
# Conflicts:
# tests/testcommon.py
# Conflicts:
# fdroidserver/btlog.py
# fdroidserver/import_subcommand.py
2024-05-08 16:26:46 +02:00
Hans-Christoph Steiner
1e5699e90c
remove all references to optparse (deprecated since Python 3.2)
2024-05-08 16:19:27 +02:00
Michael Pöhn
f2118b35a3
🏟️ fix ci
2024-04-23 16:06:10 +02:00
proletarius101
947217549a
feat: add servergitmirrors as a dict support
2024-02-14 16:50:39 +00:00
Hans-Christoph Steiner
810387a009
deploy: update_serverwebroots() for testable logic
...
This moves all of the serverwebroot: logic into a function, and adds tests.
I did this because I ran into issues in the logic in main():
Traceback (most recent call last):
File "/builds/eighthave/fdroidserver/fdroid", line 22, in <module>
fdroidserver.__main__.main()
File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 230, in main
raise e
File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 211, in main
mod.main()
File "/builds/eighthave/fdroidserver/fdroidserver/deploy.py", line 753, in main
s = serverwebroot.rstrip('/').split(':')
AttributeError: 'dict' object has no attribute 'rstrip'
2024-01-23 18:49:12 +01:00
Hans-Christoph Steiner
fbf097d390
deploy: update_serverwebroot() works w/o options/config
...
Since update_serverwebroot() is part of the public API, this function should
work without setting `fdroidserver.deploy.options` or
`fdroidserver.deploy.config`.
2024-01-23 17:48:47 +01:00
Hans-Christoph Steiner
7a656d45e3
config: convert serverwebroot: to list-of-dicts format
...
This allows for more metadata about the server and deploy mode.
2024-01-22 22:11:49 +01:00
Hans-Christoph Steiner
00aa595f37
deploy: give useful error if rsync is not installed
2023-09-08 10:42:27 +02:00
Hans-Christoph Steiner
7641c30389
add real test of moving files with deploy.update_serverwebroot()
2023-04-24 11:08:42 +02:00
Hans-Christoph Steiner
b92e280eab
fix code format for new black rule
2023-03-20 14:47:48 +01:00
Hans-Christoph Steiner
01f7dfd0b3
index-v2.jar is not a valid file, remove references
...
entry.jar is the signed file, it references index-v2.json.
2022-11-15 13:22:09 +00:00
Hans-Christoph Steiner
2448f070e9
fix tests and docstring error
2022-05-23 15:34:30 +02:00
Hans-Christoph Steiner
707cd7addb
publish index-v1.json and include a gpg signature
...
This gives a more flexible and direct way for many clients to consume the
index file. #969
2022-02-22 22:58:09 +01:00
Hans-Christoph Steiner
d05ff9db1d
easy changes to black code format in test cases
...
This does not change areas of code that should be manually reformatted.
2021-06-07 11:53:58 +02:00
Hans-Christoph Steiner
17f6a778ba
deploy: move server.py to deploy.py and remove aliases
...
closes #832
2020-10-21 11:38:49 +02:00