-
Notifications
You must be signed in to change notification settings - Fork 4
/
release
executable file
·40 lines (35 loc) · 930 Bytes
/
release
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
35
36
37
38
39
#!/bin/bash
# 1. Run all examples
# 2. Update verison number in railib/__init__.py
# 3. Tag the repo with the version number:
# $ git tag <version>
# $ git push origin --tags
# 4. Run ./release-build, make sure no issues
# 5. Run this script
# 6. Verify that the expected version appears on https://pypi.org
#
# In order to upload to PyPI you will need to login to https://pypi.org,
# using credentials that IT can provide, and create an API Token in the
# rai-sdk project. Then you need to create a $HOME/.pypirc file that looks
# like the following:
#
# ~~~
# [distutils]
# index-servers =
# pypi
#
# [pypi]
# username = __token__
# password = <API Token>
# [rai-sdk]
# username = __token__
# password = <API Token>
# ~~~
#
# The upload script will error on the .egg file, you you can ignore, the error
# is benign.
#
# Note, the script requires twine: `pip install twine`
set -ex
./release-build
./release-upload