File tree 2 files changed +7
-16
lines changed
2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
10
10
steps :
11
- - name : Setup Python
12
- uses : actions/setup-python@v2
13
-
14
11
- name : Check out code
15
12
uses : actions/checkout@v2
16
13
Original file line number Diff line number Diff line change @@ -12,26 +12,18 @@ yum -y install tar git
12
12
# build the docs
13
13
deploy::build-docs
14
14
15
- # NB(directxman12): this is a *terrible* hack, but basically,
16
- # `twine` gets called like this:
17
- # - python setup.py $PYPI_DISTRIBUTIONS
18
- # - twine upload -r pypi dist/*
19
- # - [some other stuff]
20
- #
21
- # so if we set $PYPI_DISTRIBUTIONS to something harmless, like `check`,
22
- # and then build the dist ourselves (and save it from the cleanup),
23
- # dpl will upload that
24
-
25
- # build the sdist
15
+ # build the sdist and save the dirs before the clean
26
16
python setup.py sdist
27
17
mv dist dist_saved
18
+ mv .venv .venv_saved
28
19
29
20
# for the tarball upload
30
21
# clean up
31
- git clean -Xdf
22
+ git clean -Xdf --exclude .venv
32
23
33
- # restore the saved "dist" directory
24
+ # restore the saved "dist"/".venv" directory
34
25
mv dist_saved dist
26
+ mv .venv_saved .venv
35
27
36
28
# make the dir
37
29
rm -rf ./tag_build || true
@@ -53,6 +45,7 @@ tar -cvf ./tag_build/${PKG_NAME_VER}.tar \
53
45
--exclude=' tag_build' \
54
46
--exclude=' .git' \
55
47
--exclude=' travis_docs_build' \
48
+ --exclude=' .venv' \
56
49
--exclude=' README.rst' \
57
50
--transform=" s,^\.,${PKG_NAME_VER} ," .
58
51
67
60
gzip ./tag_build/${PKG_NAME_VER} .tar
68
61
69
62
sha512sum --binary ./tag_build/${PKG_NAME_VER} .tar.gz > ./tag_build/${PKG_NAME_VER} .sha512sum
63
+
You can’t perform that action at this time.
0 commit comments