Skip to content

Commit f936a17

Browse files
Horea Porutiuseratch
andauthored
Add pypi script (#24)
* patch bump, and also added deploy to pypi script * add in discovery token as a prereq, and point to oauth guide to get one * Update README.md Co-authored-by: Kazuhiro Sera <[email protected]> * edit script to take out slack_bolt and replace with slack_discovery_sdk Co-authored-by: Kazuhiro Sera <[email protected]>
1 parent eb676be commit f936a17

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44

55
> 🚨 Note: This SDK is only accessible to customer developers with access to the Discovery API (Enterprise accounts) or partners who have been onboarded to the Security and Compliance partner program. To learn more about the Discovery APIs, please [visit our help center](https://slack.com/help/articles/360002079527-A-guide-to-Slacks-Discovery-APIs). 🚨
66
7-
# Using the SDK
7+
8+
## Prerequisites For Using the SDK
9+
* Python version 3.6 or greater
10+
* Latest version of pip
11+
* A token with discovery scopes (`discovery:read` and or `discovery:write`)
12+
> Note: Please see the [OAuth guide](https://api.slack.com/enterprise/discovery/oauth-guide) on how to get this token if you don't already have one.
13+
14+
## Using the SDK
815

916
Use pip to install the SDK.
1017

scripts/deploy_to_prod_pypi_org.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2021, Slack Technologies, LLC. All rights reserved.
2+
3+
#!/bin/bash
4+
5+
script_dir=`dirname $0`
6+
cd ${script_dir}/..
7+
rm -rf ./slack_discovery_sdk.egg-info
8+
9+
pip install -U pip && \
10+
pip install twine wheel && \
11+
rm -rf dist/ build/ slack_discovery_sdk.egg-info/ && \
12+
python setup.py sdist bdist_wheel && \
13+
twine check dist/* && \
14+
twine upload dist/*

slack_discovery_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Copyright 2021, Slack Technologies, LLC. All rights reserved.
22

3-
__version__ = "1.0.0"
3+
__version__ = "1.0.1"

0 commit comments

Comments
 (0)