forked from kyocum/disdat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-dist.sh
executable file
·35 lines (25 loc) · 1.04 KB
/
build-dist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
echo "Building Disdat package for local installation or PyPi . . ."
# Bump version up -- Can use release or patch or major or minor
# bumpversion --dry-run --verbose release disdat/VERSION
# Now bump version for real
# and git commit -am "<version>"
# git tag <version>
# Remove the prior tar ball from the context.template
rm -rf disdat/infrastructure/dockerizer/context.template/disdat-*.tar.gz
rm -rf dist/disdat-*.tar.gz
# Create a new sdist
python setup.py sdist
# Copy over to the context.template.
cp dist/disdat-*.tar.gz disdat/infrastructure/dockerizer/context.template/.
# Create a new sdist that will have that tar.gz in the template
python setup.py sdist
# publish to test pypi
if false; then
echo "Uploading to PYPI test and real"
#twine upload --repository-url https://test.pypi.org/legacy/ dist/disdat-*.tar.gz
# Test: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple disdat
# now do it for real
twine upload dist/disdat-*.tar.gz
fi
echo "Finished"