-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
232 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ __pycache__ | |
|
||
index-v2.json | ||
sourceCodes.txt | ||
success_repos.txt | ||
success_repos.txt | ||
|
||
.pdm-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,2 @@ | ||
# F-Droid_src | ||
# fdroid-push-swh | ||
|
||
## Install | ||
|
||
```shell | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
|
||
```shell | ||
python3 main.py --help | ||
``` | ||
|
||
```shell | ||
usage: main.py [-h] [--refresh] [--swh-token SWH_TOKEN] [--list-only] | ||
|
||
options: | ||
-h, --help show this help message and exit | ||
--refresh Redownload index-v2.json | ||
--swh-token SWH_TOKEN | ||
--list-only Only list repos to sourceCodes.txt, do not submit to SWH | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[project] | ||
name = "fdroid_push_swh" | ||
version = "0.1.0" | ||
description = "aaaa" | ||
authors = [ | ||
{name = "yzqzss", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"requests", | ||
"tqdm", | ||
"httpx", | ||
] | ||
requires-python = ">=3.12" | ||
readme = "README.md" | ||
license = {text = "AGPL"} | ||
|
||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
|
||
[project.scripts] | ||
fdroid-push-swh = "fdroid_push_swh:main" | ||
|
||
[tool.pdm] | ||
distribution = true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import logging | ||
from fdroid_push_swh.main import main as lib_main | ||
|
||
import asyncio | ||
|
||
def main(): | ||
logging.basicConfig(level=logging.INFO) | ||
asyncio.run(lib_main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.