Created build server configuration.
30
.gitea/workflows/build.yaml
Normal 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 }}."
|
4
Makefile
@ -1,4 +1,4 @@
|
|||||||
all: ensure_env clean build serve
|
all: clean ensure_env build install serve
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@rm -rf src/rupload/__pycache__
|
-@rm -rf src/rupload/__pycache__
|
||||||
@ -9,6 +9,8 @@ ensure_env:
|
|||||||
build:
|
build:
|
||||||
./.venv/bin/python -m pip install build
|
./.venv/bin/python -m pip install build
|
||||||
./.venv/bin/python -m build .
|
./.venv/bin/python -m build .
|
||||||
|
|
||||||
|
install:
|
||||||
./.venv/bin/python -m pip install -e .
|
./.venv/bin/python -m pip install -e .
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
|
BIN
dist/rupload-1.3.37-py3-none-any.whl
vendored
Normal file
BIN
dist/rupload-1.3.37.tar.gz
vendored
Normal file
@ -24,6 +24,32 @@ python3 -m venv .venv
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```
|
```bash
|
||||||
rupload.serve [host(127.0.0.1)] [port] [destination path for uploads] [max file size in bytes]
|
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).
|
||||||
```
|
```
|
||||||
|
BIN
uploads/Screenshot_2024-09-29_19-35-09.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
uploads/Screenshot_2024-10-05_23-59-34.png
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
uploads/Screenshot_2024-10-08_02-37-43.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
uploads/Screenshot_2024-10-12_21-14-34.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
uploads/Screenshot_2024-10-20_15-05-23.png
Normal file
After Width: | Height: | Size: 214 KiB |
BIN
uploads/Screenshot_2024-10-21_16-41-37.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
uploads/Screenshot_2024-10-24_13-46-00.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
uploads/Screenshot_2024-11-16_01-23-07.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
uploads/Screenshot_2024-11-22_17-09-54.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
uploads/Screenshot_2024-11-22_18-02-11.png
Normal file
After Width: | Height: | Size: 112 KiB |
BIN
uploads/Screenshot_2024-11-23_22-55-35.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
uploads/Screenshot_2024-11-26_00-31-53.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
uploads/screenshot-splash.png
Normal file
After Width: | Height: | Size: 110 KiB |