Skip to content

Commit

Permalink
Edits to upload v3.3.6 to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
AWhetter committed Sep 30, 2023
1 parent 1f132f8 commit a9aa414
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on: push

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
version='3.3.6',
description='Shotgun Python API ',
long_description=readme,
long_description_content_type='text/markdown',
author='Shotgun Software',
author_email='https://developer.shotgridsoftware.com',
url='https://github.com/shotgunsoftware/python-api',
license=license,
packages=find_packages(exclude=('tests',)),
Expand Down

0 comments on commit a9aa414

Please sign in to comment.