diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 836b0b5..6a63841 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -175,6 +175,21 @@ jobs: name: wheels path: dist + sdist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build sdist + uses: PyO3/maturin-action@v1 + with: + command: sdist + args: --out dist + - name: Upload sdist + uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist + release: name: Release runs-on: ubuntu-latest @@ -186,6 +201,7 @@ jobs: - linux - linux-cross - pypy + - sdist if: startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 diff --git a/Cargo.lock b/Cargo.lock index f33cc7f..1cea7b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,7 +210,7 @@ dependencies = [ [[package]] name = "rs_chardet" -version = "0.2.1" +version = "0.2.2" dependencies = [ "chardetng", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index 36f45b7..c6de56d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rs_chardet" -version = "0.2.1" +version = "0.2.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/flake.nix b/flake.nix index 2da14d1..2424bb3 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ overlays = [inputs.rust-overlay.overlays.default]; }; project_name = "rs_chardet"; - project_version = "0.2.1"; + project_version = "0.2.2"; python_version = pkgs.python310; buildPythonPackage = pkgs.python310Packages.buildPythonPackage; in rec { diff --git a/nix/package.nix b/nix/package.nix index 9b7f622..ee0b1a2 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-g4KGycMxV3+It/MkmG+jPK95NvpW1sf2UtzeGHTFvBY="; + hash = "sha256-RodHVLdtEim/LuqP2pc4DWLQmkXXYhlHNU3G927YG4Q="; }; nativeBuildInputs = with rustPlatform; [cargoSetupHook maturinBuildHook];