Skip to content

Commit

Permalink
Merge pull request #19 from openedx/usamasadiq/add-pypi-publish-workflow
Browse files Browse the repository at this point in the history
build: add pypi-publish workflow
  • Loading branch information
UsamaSadiq authored May 18, 2023
2 parents 615611b + 7bba4f6 commit fa8607d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish package to PyPI

on:
push:
tags:
- '*'

jobs:
push:
runs-on: ubuntu-20.04

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: setup python
uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Install pip
run: pip install -r requirements/pip.txt

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
"""

from setuptools import setup, find_packages
from setuptools import setup

LONG_DESCRIPTION = None
README_MARKDOWN = None
Expand Down Expand Up @@ -58,17 +58,15 @@ def is_requirement(line):
return line and not line.startswith(('-r', '#', '-e', 'git+', '-c'))

setup(
name='MongoDBProxy',
name='openedx-mongodbproxy',
py_modules=['mongodb_proxy'],
version='0.1.0+edx.2',
version='0.2.0',
description='Proxy around MongoDB connection that automatically handles AutoReconnect exceptions.',
author='Gustav Arngarden',
long_description=LONG_DESCRIPTION,
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit fa8607d

Please sign in to comment.