Skip to content

Commit

Permalink
Add pypi script (#24)
Browse files Browse the repository at this point in the history
* 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 <ksera@slack-corp.com>

* edit script to take out slack_bolt and replace with slack_discovery_sdk

Co-authored-by: Kazuhiro Sera <ksera@slack-corp.com>
  • Loading branch information
Horea Porutiu and seratch authored Nov 5, 2021
1 parent eb676be commit f936a17
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

> 🚨 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). 🚨
# Using the SDK

## Prerequisites For Using the SDK
* Python version 3.6 or greater
* Latest version of pip
* A token with discovery scopes (`discovery:read` and or `discovery:write`)
> 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.
## Using the SDK

Use pip to install the SDK.

Expand Down
14 changes: 14 additions & 0 deletions scripts/deploy_to_prod_pypi_org.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2021, Slack Technologies, LLC. All rights reserved.

#!/bin/bash

script_dir=`dirname $0`
cd ${script_dir}/..
rm -rf ./slack_discovery_sdk.egg-info

pip install -U pip && \
pip install twine wheel && \
rm -rf dist/ build/ slack_discovery_sdk.egg-info/ && \
python setup.py sdist bdist_wheel && \
twine check dist/* && \
twine upload dist/*
2 changes: 1 addition & 1 deletion slack_discovery_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright 2021, Slack Technologies, LLC. All rights reserved.

__version__ = "1.0.0"
__version__ = "1.0.1"

0 comments on commit f936a17

Please sign in to comment.