diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..0d69a4b --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 }}." diff --git a/Makefile b/Makefile index 58cdb9f..6d18bb4 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/dist/rupload-1.3.37-py3-none-any.whl b/dist/rupload-1.3.37-py3-none-any.whl new file mode 100644 index 0000000..f705d10 Binary files /dev/null and b/dist/rupload-1.3.37-py3-none-any.whl differ diff --git a/dist/rupload-1.3.37.tar.gz b/dist/rupload-1.3.37.tar.gz new file mode 100644 index 0000000..1935605 Binary files /dev/null and b/dist/rupload-1.3.37.tar.gz differ diff --git a/src/rupload.egg-info/PKG-INFO b/src/rupload.egg-info/PKG-INFO index 193d726..25df069 100644 --- a/src/rupload.egg-info/PKG-INFO +++ b/src/rupload.egg-info/PKG-INFO @@ -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). ``` diff --git a/uploads/Screenshot_2024-09-29_19-35-09.png b/uploads/Screenshot_2024-09-29_19-35-09.png new file mode 100644 index 0000000..467b422 Binary files /dev/null and b/uploads/Screenshot_2024-09-29_19-35-09.png differ diff --git a/uploads/Screenshot_2024-10-05_23-59-34.png b/uploads/Screenshot_2024-10-05_23-59-34.png new file mode 100644 index 0000000..a1fee5f Binary files /dev/null and b/uploads/Screenshot_2024-10-05_23-59-34.png differ diff --git a/uploads/Screenshot_2024-10-08_02-37-43.png b/uploads/Screenshot_2024-10-08_02-37-43.png new file mode 100644 index 0000000..094a375 Binary files /dev/null and b/uploads/Screenshot_2024-10-08_02-37-43.png differ diff --git a/uploads/Screenshot_2024-10-12_21-14-34.png b/uploads/Screenshot_2024-10-12_21-14-34.png new file mode 100644 index 0000000..2fb8d60 Binary files /dev/null and b/uploads/Screenshot_2024-10-12_21-14-34.png differ diff --git a/uploads/Screenshot_2024-10-20_15-05-23.png b/uploads/Screenshot_2024-10-20_15-05-23.png new file mode 100644 index 0000000..4cfd48e Binary files /dev/null and b/uploads/Screenshot_2024-10-20_15-05-23.png differ diff --git a/uploads/Screenshot_2024-10-21_16-41-37.png b/uploads/Screenshot_2024-10-21_16-41-37.png new file mode 100644 index 0000000..0dfd1e7 Binary files /dev/null and b/uploads/Screenshot_2024-10-21_16-41-37.png differ diff --git a/uploads/Screenshot_2024-10-24_13-46-00.png b/uploads/Screenshot_2024-10-24_13-46-00.png new file mode 100644 index 0000000..ee6aa2d Binary files /dev/null and b/uploads/Screenshot_2024-10-24_13-46-00.png differ diff --git a/uploads/Screenshot_2024-11-16_01-23-07.png b/uploads/Screenshot_2024-11-16_01-23-07.png new file mode 100644 index 0000000..c1290cc Binary files /dev/null and b/uploads/Screenshot_2024-11-16_01-23-07.png differ diff --git a/uploads/Screenshot_2024-11-22_17-09-54.png b/uploads/Screenshot_2024-11-22_17-09-54.png new file mode 100644 index 0000000..afe073c Binary files /dev/null and b/uploads/Screenshot_2024-11-22_17-09-54.png differ diff --git a/uploads/Screenshot_2024-11-22_18-02-11.png b/uploads/Screenshot_2024-11-22_18-02-11.png new file mode 100644 index 0000000..524ee25 Binary files /dev/null and b/uploads/Screenshot_2024-11-22_18-02-11.png differ diff --git a/uploads/Screenshot_2024-11-23_22-55-35.png b/uploads/Screenshot_2024-11-23_22-55-35.png new file mode 100644 index 0000000..3a02264 Binary files /dev/null and b/uploads/Screenshot_2024-11-23_22-55-35.png differ diff --git a/uploads/Screenshot_2024-11-26_00-31-53.png b/uploads/Screenshot_2024-11-26_00-31-53.png new file mode 100644 index 0000000..01a5885 Binary files /dev/null and b/uploads/Screenshot_2024-11-26_00-31-53.png differ diff --git a/uploads/screenshot-splash.png b/uploads/screenshot-splash.png new file mode 100644 index 0000000..c577c4e Binary files /dev/null and b/uploads/screenshot-splash.png differ diff --git a/uploads/surf-2.1.tar.gz b/uploads/surf-2.1.tar.gz new file mode 100644 index 0000000..3a9b6f0 Binary files /dev/null and b/uploads/surf-2.1.tar.gz differ