diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..7a82425 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* \ No newline at end of file diff --git a/README.md b/README.md index e03969e..1a3fe3f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ 1. 创建配置文件**config.yaml**,内容参照**config(demo).yaml**(或可调整配置后直接修改文件名) 2. 安装 __FFmpeg__, __pip__ 3. 安装 __biliup__: -`pip3 install git+https://github.com/ForgQi/bilibiliupload.git` +`pip3 install biliup` #### Linux: > 启动: biliup start > diff --git a/requirements.txt b/requirements.txt index 4593c62..eb0e526 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,5 @@ aiohttp[speedups] Requests>=2.20.0 PyYAML>=4.2b1 streamlink>=0.14.2 -git+https://github.com/zhangn1985/ykdl.git +ykdl >= 1.7.1 rsa>=4.6 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 9d43b9d..8911197 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = biliup -version = 0.0.1 +version = 0.0.2 author = ForgQi url = https://github.com/ForgQi/bilibiliupload description = stream download and upload @@ -21,7 +21,7 @@ install_requires = Requests >= 2.20.0 PyYAML >= 4.2b1 streamlink >= 0.14.2 - ykdl @ git+https://github.com/zhangn1985/ykdl.git + ykdl >= 1.7.1 rsa >= 4.6 [options.package_data]