Skip to content

Commit ca27adf

Browse files
committed
remove cargo-specific pre-deploy since we want a wheel
1 parent c85ece6 commit ca27adf

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

MANIFEST.in

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
1414

1515
# we only want "release" artifacts, not "debug" artifacts
1616
recursive-include trust_pypi_example/rust/target/release/ *.so *.dylib *.dll *.lib
17+
recursive-include trust_pypi_example *.h
1718

18-
recursive-include trust_pypi_example *.h *.rs
19+
# inclusing the .rs and .toml files isn't necessary so feel free to remove them.
20+
# This may help if a source dist is needed.
21+
recursive-include trust_pypi_example *.rs *.toml

ci/before_deploy.sh

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# This script takes care of building your crate and packaging it for release
22

3+
# Since we are mostly concerned with building a wheel I don't even run this.
4+
35
set -ex
46

57
main() {
8+
# move into rust project subdir
9+
cd trust_pypi_example/rust/
10+
611
local src=$(pwd) \
712
stage=
813

@@ -17,17 +22,19 @@ main() {
1722

1823
test -f Cargo.lock || cargo generate-lockfile
1924

20-
# TODO Update this to build the artifacts that matter to you
21-
cross rustc --bin hello --target $TARGET --release -- -C lto
2225

23-
# TODO Update this to package the right artifacts
24-
cp target/$TARGET/release/hello $stage/
2526

26-
cd $stage
27-
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
28-
cd $src
27+
# # TODO Update this to build the artifacts that matter to you
28+
# cross rustc --bin hello --target $TARGET --release -- -C lto
29+
30+
# # TODO Update this to package the right artifacts
31+
# cp target/$TARGET/release/hello $stage/
32+
33+
# cd $stage
34+
# tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
35+
# cd $src
2936

30-
rm -rf $stage
37+
# rm -rf $stage
3138
}
3239

33-
main
40+
# main

0 commit comments

Comments
 (0)