Created build server configuration.

This commit is contained in:
retoor 2024-11-26 06:04:33 +01:00
parent 1ed30e0d80
commit 3bd46cb640
19 changed files with 61 additions and 3 deletions

View File

@ -0,0 +1,30 @@
name: RUpload build
run-name: RUpload build
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "Install dependencies."
- run: apt update
- run: apt install python3 python3-pip python3-venv make -y
- run: echo "Create environment."
- run: make ensure_env
- run: echo "Create build."
- run: make build
- run: echo "Install package."
- run: make install
- run: echo "Test installation."
- run: ./.venv/bin/rupload.serve --help
- run: git add .
- run: git config --global user.email "bot@molodetz.com"
- run: git config --global user.name "bot"
- run: git commit -a -m "Update build files."
- run: git push
- run: echo "This job's status is ${{ job.status }}."

View File

@ -1,4 +1,4 @@
all: ensure_env clean build serve
all: clean ensure_env build install serve
clean:
-@rm -rf src/rupload/__pycache__
@ -9,6 +9,8 @@ ensure_env:
build:
./.venv/bin/python -m pip install build
./.venv/bin/python -m build .
install:
./.venv/bin/python -m pip install -e .
serve:

BIN
dist/rupload-1.3.37-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/rupload-1.3.37.tar.gz vendored Normal file

Binary file not shown.

View File

@ -24,6 +24,32 @@ python3 -m venv .venv
```
## Usage
```
rupload.serve [host(127.0.0.1)] [port] [destination path for uploads] [max file size in bytes]
```bash
rupload.serve [-h]
[--hostname HOSTNAME]
[--port PORT]
[--upload_folder UPLOAD_FOLDER]
[--upload_url UPLOAD_URL]
[--max_file_size MAX_FILE_SIZE]
Start the file upload server.
options:
-h, --help show this help message
and exit
--hostname HOSTNAME The hostname for the
server.
--port PORT The port to bind the
server to.
--upload_folder UPLOAD_FOLDER
Directory to store
uploaded files.
--upload_url UPLOAD_URL
HTTP(S) URL where the
server will serve the
uploaded files.
--max_file_size MAX_FILE_SIZE
Maximum file size in
bytes (default is
50MB).
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
uploads/surf-2.1.tar.gz Normal file

Binary file not shown.