Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
cfdd135
raise timeout
Jan 8, 2018
287bdf7
Added requirements.txt.
starforever Jun 13, 2019
a58eb06
Updated spec
starforever Jun 13, 2019
d02263d
Improved update_version.sh for better automation of SDK release.
starforever Jun 13, 2019
7952ef8
Added comment for `update_version.sh`.
starforever Jun 13, 2019
908508c
Updated requirements.txt with new packages.
starforever Jun 14, 2019
aebacf8
Merge pull request #137 from aaronstaley/higher_timeout
risforrob Jul 15, 2019
fdeb3c5
Link to pip in README
greg-db Aug 14, 2019
6289b86
Spec Update
Mar 20, 2020
8d2866b
bump six requirement to >=1.12.0
Mar 29, 2020
906d102
Merge pull request #184 from SamSchott/patch-1
rogebrd Mar 30, 2020
82a0efa
Add Support for Short-Lived Tokens (#183)
rogebrd Mar 30, 2020
129035e
Add Support for Scopes (#185)
rogebrd Apr 1, 2020
4f39e3d
Create PyPi Upload Action (#186)
rogebrd Apr 1, 2020
9c3302a
Add Support for PKCE (#187)
rogebrd Apr 2, 2020
cc8dbb7
Fix source build condition (#188)
rogebrd Apr 7, 2020
4471b7e
Update Readme (#189)
rogebrd Apr 16, 2020
d53cc31
Spec Update (#190)
rogebrd Apr 16, 2020
13ec3ac
Add timeout to refresh token calls (#192)
rogebrd Apr 21, 2020
417ab9c
Expiration bug fix (#195)
rogebrd May 7, 2020
2c5595b
Update Spec (#200)
rogebrd May 27, 2020
2ec7d02
add_oauth_to_readme (#202)
rogebrd Jun 4, 2020
29b7c6d
Fix error message for non-UTF8 strings (#205)
emmaworley Jun 30, 2020
51b8d3a
Make with_path_root() update existing headers rather than overwrite t…
karandeep-johar Jul 7, 2020
7b111c5
Add Close() method to _DropboxTransport to cleanup any network resour…
karandeep-johar Jul 7, 2020
ebfa77d
Add default timeout to oauth flow finish calls (#208)
karandeep-johar Jul 7, 2020
5ef55be
Remove beta feature comments per GA (#211)
rogebrd Aug 10, 2020
80e7bbd
Update README.rst
BastianZim Aug 25, 2020
cbd9332
Merge pull request #216 from Lucurus/patch-1
greg-db Aug 25, 2020
5ef1a2a
Remove Stone Submodule (#217)
rogebrd Aug 27, 2020
c2d568d
Fix Tox tags & update dropbox copy client (#218)
rogebrd Aug 28, 2020
0646925
Add Coverage.py and codecov functionality (#219)
rogebrd Sep 1, 2020
0ce9ba9
Add 3.9-dev to travis and add codecov.yaml (#220)
rogebrd Sep 1, 2020
901a0a1
Add basic test to test codecov (#221)
rogebrd Sep 1, 2020
bd6c303
Add github action for publishing master branch coverage (#222)
rogebrd Sep 1, 2020
7b75667
Update tox to not run codecov as github action takes care of it (#224)
rogebrd Sep 1, 2020
d634791
Update OAuth.py Formatting (#226)
BastianZim Sep 9, 2020
ef9397f
Fix lists introduced in #226 (#228)
BastianZim Sep 9, 2020
2166a56
Run CodeCov through github actions and remove Tox (#225)
rogebrd Sep 15, 2020
c41c2c8
Add github action to auto update spec (#232)
rogebrd Sep 18, 2020
da092ea
Updated sphinx syntax (#231)
BastianZim Sep 18, 2020
62f6539
File update (#229)
rogebrd Sep 22, 2020
47110a5
Update actions/setup-python requirement to v2.1.2 (#238)
dependabot[bot] Sep 22, 2020
28ac7ad
Bump peter-evans/create-pull-request from v3.3.0 to v3.4.0 (#239)
dependabot[bot] Sep 23, 2020
3fc6ca0
Fix arguments in OAuth2FlowResult.__repr__ return value (#247)
emmaworley Sep 24, 2020
ee66d74
Added "of" to Question / Help Template (#245)
BastianZim Sep 25, 2020
6105d87
Add local build for docs to contributing (#249)
rogebrd Sep 25, 2020
849c595
Add release scripts (#256)
rogebrd Sep 30, 2020
efc224b
Bump actions/setup-python from v2.1.2 to v2.1.3 (#258)
dependabot[bot] Oct 2, 2020
da7b033
Automated Spec Update (#263)
rogebrd Oct 5, 2020
e03567f
Bump peter-evans/create-pull-request from v3.4.0 to v3.4.1 (#268)
dependabot[bot] Oct 12, 2020
fdd342b
Automated Spec Update (#267)
rogebrd Oct 12, 2020
b6eafc0
Bump actions/setup-python from v2.1.3 to v2.1.4 (#270)
dependabot[bot] Oct 20, 2020
c9edff2
Bump codecov/codecov-action from v1.0.13 to v1.0.14 (#276)
dependabot[bot] Oct 20, 2020
f4ca18f
Automated Spec Update
rogebrd Oct 21, 2020
43f7191
Fix default in getAuthenticationUrl to pass if requested (#271)
rogebrd Oct 21, 2020
359ba96
Update dispatch on spec update workflow (#280)
rogebrd Oct 27, 2020
d5179c3
Automated Spec Update (#281)
DropboxBot Oct 28, 2020
063aea5
Migrate primary branch to `main`
rogebrd Nov 3, 2020
ef994be
Migrate references of master to main (#282)
rogebrd Nov 3, 2020
3d378fd
Automated Spec Update (#284)
DropboxBot Nov 10, 2020
86e77a8
Automated Spec Update (#288)
DropboxBot Nov 13, 2020
ddad5dc
remove auto generated stone_fixtures.py (#292)
yuxiang-he Nov 17, 2020
50f1d99
Bump codecov/codecov-action from v1.0.14 to v1.0.15 (#290)
dependabot[bot] Nov 17, 2020
0f1ad58
Regenerate client using Stone 3.2.0 (#291)
yuxiang-he Nov 18, 2020
7177fd1
change update_version.sh to reflect the renaming of dropbox/dropbox.p…
yuxiang-he Nov 19, 2020
c671897
Bump peter-evans/create-pull-request from v3.4.1 to v3.5.1 (#297)
dependabot[bot] Dec 3, 2020
84448bb
Fix links in release notes to be absolute (#287)
rogebrd Dec 3, 2020
81950ab
Automated Spec Update (#296)
DropboxBot Dec 3, 2020
2293afa
Add stone to setup.py (#300)
rogebrd Dec 4, 2020
5af34a4
Fix CI matrix Python version (#311)
yuxiang-he Dec 24, 2020
b21934d
Reorganize test directory (#312)
yuxiang-he Dec 29, 2020
9204111
Add support for app authentication (#305)
yuxiang-he Dec 30, 2020
fc481ae
Convert integration tests to use pytest instead of unittest (#313)
yuxiang-he Jan 6, 2021
d09e69c
Bump actions/setup-python from v2.1.4 to v2.2.1 (#306)
dependabot[bot] Jan 25, 2021
f8a7f01
Bump codecov/codecov-action from v1.0.15 to v1.2.1 (#315)
dependabot[bot] Jan 25, 2021
e6cda9a
Automated Spec Update (#317)
DropboxBot Jan 25, 2021
6afe7d8
Bump peter-evans/create-pull-request from v3.5.1 to v3.7.0 (#318)
dependabot[bot] Jan 26, 2021
472ba20
Bump peter-evans/create-pull-request from v3.7.0 to v3.8.2 (#322)
dependabot[bot] Feb 10, 2021
250b116
Automated Spec Update (#323)
DropboxBot Feb 10, 2021
b817a01
Automated Spec Update (#324)
DropboxBot Feb 19, 2021
e6c5930
Fix DropboxOAuth2Flow Documentation Parameters (#325)
mtruong-dbx Feb 23, 2021
073f079
Fix and update build step for Python2.7 (#326)
eugeneyche Feb 24, 2021
0968271
Update dropbox reference to link to the new name to fix documentation…
rogebrd Feb 26, 2021
74e51e1
Automated Spec Update (#330)
DropboxBot Mar 3, 2021
1569026
Move requirements.txt and test/requirements.txt as source of truth (#…
rogebrd Mar 5, 2021
dff9e02
Fix setup.py dependencies by removing pull from requirements.txt (#333)
rogebrd Mar 9, 2021
3f8c7aa
Fix status classifier in setup.py (#334)
rogebrd Mar 9, 2021
fc72aaa
Automated Spec Update (#337)
DropboxBot Mar 24, 2021
68f9345
Automated Spec Update (#340)
DropboxBot Apr 8, 2021
a812d56
Update Release Notes Generator to Fetch Latest Tags (#341)
mtruong-dbx Apr 8, 2021
c081d1f
Bump codecov/codecov-action from v1.2.1 to v1.3.2 (#339)
dependabot[bot] Apr 14, 2021
9ad41fb
Bump actions/setup-python from v2.2.1 to v2.2.2 (#342)
dependabot[bot] Apr 14, 2021
0ed9550
Automated Spec Update (#344)
DropboxBot Apr 14, 2021
de474e1
Automated Spec Update (#351)
DropboxBot May 7, 2021
7cdab3c
Refresh access token when using a very old short-lived access token w…
Brent1LT May 7, 2021
d81a234
Automated Spec Update (#354)
DropboxBot May 12, 2021
13bf198
Automated Spec Update (#362)
DropboxBot May 26, 2021
7b52312
Automated Spec Update (#365)
DropboxBot Jun 16, 2021
22561b7
Automated Spec Update (#366)
DropboxBot Jun 23, 2021
4ed8237
Automated Spec Update (#368)
DropboxBot Jul 1, 2021
cdccfc5
Automated Spec Update (#370)
DropboxBot Jul 2, 2021
a529561
Automated Spec Update (#372)
DropboxBot Jul 8, 2021
fa606b8
Automated Spec Update (#373)
DropboxBot Jul 14, 2021
10d92da
Add Support for Multi-Auth (#371)
mtruong-dbx Jul 21, 2021
f17bc14
Automated Spec Update (#376)
DropboxBot Jul 29, 2021
17a4f59
Add integration tests to the test suite (#377)
rogebrd Aug 2, 2021
fb80ea3
Automated Spec Update (#378)
DropboxBot Aug 11, 2021
cc8b186
Automated Spec Update (#379)
DropboxBot Aug 18, 2021
6f03744
Automated Spec Update (#382)
DropboxBot Aug 26, 2021
5070697
Automated Spec Update (#383)
DropboxBot Sep 8, 2021
d1fcec4
Automated Spec Update (#386)
DropboxBot Sep 22, 2021
45ccf50
Automated Spec Update (#388)
DropboxBot Sep 29, 2021
2dc18a1
Fix CI test environment (#391)
Brent1LT Oct 15, 2021
0f71807
Automated Spec Update (#392)
DropboxBot Oct 21, 2021
0eddf8b
Automated Spec Update (#394)
DropboxBot Nov 3, 2021
cc17caf
Automated Spec Update (#396)
DropboxBot Nov 17, 2021
34f276e
Automated Spec Update (#398)
DropboxBot Nov 24, 2021
0154374
[Dependabot] Reduce frequency to monthly to reduce noise (#400)
rogebrd Dec 8, 2021
62e49c1
Ensure Dropbox error is thrown in refresh access token (#407)
Brent1LT Jan 19, 2022
2f8899f
Add scope to client docs (#408)
sderickson Jan 25, 2022
09d9ef7
[Setup] Update deprecated description-file to use description_file (#…
rogebrd Jan 31, 2022
cc10efb
Automated Spec Update (#412)
DropboxBot Feb 2, 2022
735e077
Fix spec update action (#413)
sderickson Feb 9, 2022
7435005
Automated Spec Update (#418)
DropboxBot Mar 3, 2022
5c7dfbf
add GitHub URL for PyPi (#417)
andriyor Mar 3, 2022
aa3543e
Automated Spec Update (#421)
DropboxBot Mar 30, 2022
c371d43
Automated Spec Update (#424)
DropboxBot Apr 20, 2022
005a750
Automated Spec Update (#430)
DropboxBot May 18, 2022
3fa08e5
Automated Spec Update (#435)
DropboxBot Jun 15, 2022
f3f8729
Add ca_certs argument for oauth and dropbox client (#385)
stanislau-arkhipenka Jun 30, 2022
4a3c7f5
Automated Spec Update (#439)
DropboxBot Jul 13, 2022
e1bee85
Added _ca_certs property to _SSLAdapter to properly support pickling …
dennissiemensma Aug 4, 2022
93435f7
Automated Spec Update (#448)
DropboxBot Oct 11, 2022
7425dc4
11.35.0 release
Oct 11, 2022
23bf66e
Added require_role and force_reapprove parameters to DropboxOAuth2Flo…
aviv-barel-pp Dec 20, 2020
682833d
Merge branch 'master' into PM-966-dropbox-pp-package-verify-and-appro…
bityob Oct 20, 2022
a5fc045
Version 11.35.1+pp
bityob Oct 20, 2022
49880cc
Update .gitignore
bityob Oct 20, 2022
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
branch = True
source = dropbox/
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "\U0001F41B Bug report"
about: Create a report to help us improve the SDK
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of the bug.

**To Reproduce**
The steps to reproduce the behavior

**Expected Behavior**
A clear description of what you expected to happen.

**Actual Behavior**
A clear description of what actually happened

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Versions**
* What version of the SDK are you using?
* What version of the language are you using?
* What platform are you using? (if applicable)

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F680 Feature Request"
about: Suggest an idea for this SDK
title: ''
labels: enhancement
assignees: ''

---

**Why is this feature valuable to you? Does it solve a problem you're having?**
A clear and concise description of why this feature is valuable. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered. (if applicable)

**Additional context**
Add any other context or screenshots about the feature request here.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/question_help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "\U0001F4AC Questions / Help"
about: Get help with issues you are experiencing
title: ''
labels: help-wanted, question
assignees: ''

---

**Before you start**
Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help?

**What is your question?**
A clear and concise description of the question.

**Screenshots**
If applicable, add screenshots to help explain your question.

**Versions**
* What version of the SDK are you using?
* What version of the language are you using?
* What platform are you using? (if applicable)

**Additional context**
Add any other context about the question here.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
Thank you for your pull request. Please provide a description below.
-->

## **Checklist**
<!-- For completed items, change [ ] to [x]. -->

**General Contributing**
- [ ] Have you read the Code of Conduct and signed the [CLA](https://opensource.dropbox.com/cla/)?

**Is This a Code Change?**
- [ ] Non-code related change (markdown/git settings etc)
- [ ] SDK Code Change
- [ ] Example/Test Code Change

**Validation**
- [ ] Does `tox` pass?
- [ ] Do the tests pass?
104 changes: 104 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: CI
on:
pull_request:

jobs:
CI:
continue-on-error: true
runs-on: ${{ matrix.os }}
# Supported Versions:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
strategy:
matrix:
os: [macos-latest, windows-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy-3.7]
exclude:
- os: windows-latest
python-version: 3.6
include:
- os: ubuntu-latest
python-version: 3.7
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Run Linter
run: |
flake8 setup.py dropbox example test
- name: Run Unit Tests
run: |
pytest test/unit/test_dropbox_unit.py
Docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: actions/setup-python@v2.2.2
with:
python-version: '3.7'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install twine sphinx
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Test Doc Generation
run: |
sphinx-build -b html docs build/html
- name: Test Dist Generation
run: |
python setup.py sdist bdist_wheel
twine check dist/*
Integration:
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy-3.7]
exclude:
- os: windows-latest
python-version: 3.6
include:
- os: ubuntu-latest
python-version: 3.7
steps:
- uses: actions/checkout@v2.3.4
- name: Setup Python environment
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Run Integration Tests
env:
LEGACY_USER_DROPBOX_TOKEN: ${{ secrets.LEGACY_USER_DROPBOX_TOKEN }}
LEGACY_USER_CLIENT_ID: ${{ secrets.LEGACY_USER_CLIENT_ID }}
LEGACY_USER_CLIENT_SECRET: ${{ secrets.LEGACY_USER_CLIENT_SECRET }}
LEGACY_USER_REFRESH_TOKEN: ${{ secrets.LEGACY_USER_REFRESH_TOKEN }}
SCOPED_USER_DROPBOX_TOKEN: ${{ secrets.SCOPED_USER_DROPBOX_TOKEN }}
SCOPED_USER_CLIENT_ID: ${{ secrets.SCOPED_USER_CLIENT_ID }}
SCOPED_USER_CLIENT_SECRET: ${{ secrets.SCOPED_USER_CLIENT_SECRET }}
SCOPED_USER_REFRESH_TOKEN: ${{ secrets.SCOPED_USER_REFRESH_TOKEN }}
SCOPED_TEAM_DROPBOX_TOKEN: ${{ secrets.SCOPED_TEAM_DROPBOX_TOKEN }}
SCOPED_TEAM_CLIENT_ID: ${{ secrets.SCOPED_TEAM_CLIENT_ID }}
SCOPED_TEAM_CLIENT_SECRET: ${{ secrets.SCOPED_TEAM_CLIENT_SECRET }}
SCOPED_TEAM_REFRESH_TOKEN: ${{ secrets.SCOPED_TEAM_REFRESH_TOKEN }}
DROPBOX_SHARED_LINK: ${{ secrets.DROPBOX_SHARED_LINK }}
run: |
pytest test/integration/test_dropbox.py
72 changes: 72 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Coverage
on:
push:
branches:
- main
pull_request:
schedule:
- cron: 0 0 * * *

jobs:
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: actions/setup-python@v2.2.2
with:
python-version: '3.7'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install coverage pytest
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Generate Unit Test Coverage
run: |
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
coverage xml
- name: Publish Coverage
uses: codecov/codecov-action@v1.3.2
with:
flags: unit
fail_ci_if_error: true
IntegrationCoverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: actions/setup-python@v2.2.2
with:
python-version: '3.7'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install coverage pytest
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Generate Unit Test Coverage
env:
LEGACY_USER_DROPBOX_TOKEN: ${{ secrets.LEGACY_USER_DROPBOX_TOKEN }}
LEGACY_USER_CLIENT_ID: ${{ secrets.LEGACY_USER_CLIENT_ID }}
LEGACY_USER_CLIENT_SECRET: ${{ secrets.LEGACY_USER_CLIENT_SECRET }}
LEGACY_USER_REFRESH_TOKEN: ${{ secrets.LEGACY_USER_REFRESH_TOKEN }}
SCOPED_USER_DROPBOX_TOKEN: ${{ secrets.SCOPED_USER_DROPBOX_TOKEN }}
SCOPED_USER_CLIENT_ID: ${{ secrets.SCOPED_USER_CLIENT_ID }}
SCOPED_USER_CLIENT_SECRET: ${{ secrets.SCOPED_USER_CLIENT_SECRET }}
SCOPED_USER_REFRESH_TOKEN: ${{ secrets.SCOPED_USER_REFRESH_TOKEN }}
SCOPED_TEAM_DROPBOX_TOKEN: ${{ secrets.SCOPED_TEAM_DROPBOX_TOKEN }}
SCOPED_TEAM_CLIENT_ID: ${{ secrets.SCOPED_TEAM_CLIENT_ID }}
SCOPED_TEAM_CLIENT_SECRET: ${{ secrets.SCOPED_TEAM_CLIENT_SECRET }}
SCOPED_TEAM_REFRESH_TOKEN: ${{ secrets.SCOPED_TEAM_REFRESH_TOKEN }}
DROPBOX_SHARED_LINK: ${{ secrets.DROPBOX_SHARED_LINK }}
run: |
coverage run --rcfile=.coveragerc -m pytest test/integration/test_dropbox.py
coverage xml
- name: Publish Coverage
uses: codecov/codecov-action@v1.3.2
with:
flags: integration
fail_ci_if_error: true
39 changes: 39 additions & 0 deletions .github/workflows/pypiupload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish to PyPi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.x]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py bdist_wheel
- name: Build Sources (3.x)
run: python setup.py sdist
if: matrix.python-version == '3.x'
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_secret }}
run: |
twine check dist/*
twine upload dist/*
Loading