Skip to content

Commit

Permalink
Fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Aug 20, 2021
1 parent 5d33eea commit ab6244c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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" }
webdav-handler = { git = "https://github.com/messense/webdav-handler-rs.git", branch = "read-buf-size" }
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = ["maturin"]
build-backend = "maturin"

[tool.maturin]
bindings = "bin"

0 comments on commit ab6244c

Please sign in to comment.