From ab6244c170d7afbbbad7b95582d6d811bbf02ed8 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 20 Aug 2021 11:06:50 +0800 Subject: [PATCH] Fix package name --- .github/workflows/Release.yml | 20 ++++++++++---------- Cargo.toml | 6 +++++- LICENSE | 21 +++++++++++++++++++++ README.md | 10 ++++++++++ pyproject.toml | 6 ++++++ 5 files changed, 52 insertions(+), 11 deletions(-) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 pyproject.toml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index cb6b5ecec3..06a4a08c77 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -27,16 +27,16 @@ jobs: args: --release --out dist - name: Install built wheel - x86_64 run: | - pip install aliyunwebdrive-webdav --no-index --find-links dist --force-reinstall - aliyunwebdrive-webdav --help + pip install aliyundrive-webdav --no-index --find-links dist --force-reinstall + aliyundrive-webdav --help - name: Build wheels - universal2 uses: messense/maturin-action@v1 with: args: --release --universal2 --out dist --no-sdist - name: Install built wheel - universal2 run: | - pip install aliyunwebdrive-webdav --no-index --find-links dist --force-reinstall - aliyunwebdrive-webdav --help + pip install aliyundrive-webdav --no-index --find-links dist --force-reinstall + aliyundrive-webdav --help - name: Upload wheels uses: actions/upload-artifact@v2 with: @@ -45,15 +45,15 @@ jobs: - name: Archive binary run: | cd target/release - tar czvf aliyunwebdrive-webdav.tar.gz aliyunwebdrive-webdav + tar czvf aliyundrive-webdav.tar.gz aliyundrive-webdav cd - - name: Upload binary to GitHub Release uses: svenstaro/upload-release-action@v2 if: "startsWith(github.ref, 'refs/tags/')" with: repo_token: ${{ secrets.GITHUB_TOKEN }} - asset_name: aliyunwebdrive-webdav-apple-darwin.tar.gz - file: target/release/aliyunwebdrive-webdav.tar.gz + asset_name: aliyundrive-webdav-apple-darwin.tar.gz + file: target/release/aliyundrive-webdav.tar.gz tag: ${{ github.ref }} linux: @@ -87,15 +87,15 @@ jobs: - name: Archive binary run: | cd target/${{ matrix.platform.target }}/release - tar czvf aliyunwebdrive-webdav.tar.gz aliyunwebdrive-webdav + tar czvf aliyundrive-webdav.tar.gz aliyundrive-webdav cd - - name: Upload binary to GitHub Release uses: svenstaro/upload-release-action@v2 if: "startsWith(github.ref, 'refs/tags/')" with: repo_token: ${{ secrets.GITHUB_TOKEN }} - asset_name: aliyunwebdrive-webdav-${{ matrix.platform.target }}.tar.gz - file: target/${{ matrix.platform.target }}/release/aliyunwebdrive-webdav.tar.gz + asset_name: aliyundrive-webdav-${{ matrix.platform.target }}.tar.gz + file: target/${{ matrix.platform.target }}/release/aliyundrive-webdav.tar.gz tag: ${{ github.ref }} release: diff --git a/Cargo.toml b/Cargo.toml index 68bc764e27..a4e36ccb9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,10 @@ name = "aliyundrive-webdav" version = "0.1.0" edition = "2018" +description = "WebDAV server for AliyunDrive" +license = "MIT" +repository = "https://github.com/messense/aliyundrive-webdav.git" +readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -23,4 +27,4 @@ tokio = { version = "1.10.0", features = ["full"] } webdav-handler = { version = "0.2.0", features = ["hyper"] } [patch.crates-io] -webdav-handler = { git = "https://github.com/messense/webdav-handler-rs.git", branch = "read-buf-size" } \ No newline at end of file +webdav-handler = { git = "https://github.com/messense/webdav-handler-rs.git", branch = "read-buf-size" } diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000..173cc46bab --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021-present Messense Lv + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000000..5cee6ff882 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# aliyundrive-webdav + +[![GitHub Actions](https://github.com/messense/aliyundrive-webdav/workflows/CI/badge.svg)](https://github.com/messense/aliyundrive-webdav/actions?query=workflow%3ACI) +[![PyPI](https://img.shields.io/pypi/v/aliyundrive-webdav.svg)](https://pypi.org/project/aliyundrive-webdav) + +阿里云盘 WebDav 服务 + +## License + +This work is released under the MIT license. A copy of the license is provided in the [LICENSE](../LICENSE) file. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..17aa41a10b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = ["maturin"] +build-backend = "maturin" + +[tool.maturin] +bindings = "bin"