Skip to content

Commit

Permalink
[-] Add dr apps to pypi (#63)
Browse files Browse the repository at this point in the history
* [-] Add dr apps to pypi

* Add long desc datatype

* change long desc
  • Loading branch information
ben-cutler-datarobot authored Dec 6, 2024
1 parent 4db4557 commit a940146
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/push-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dr-apps
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
setup(
name=NAME,
description='CLI client for custom application in Data Robot',
long_description=open(path.join(path.dirname(__file__), 'README.md')).read(),
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Data Robot',
url='https://github.com/datarobot/{}'.format(REPO_NAME),
packages=find_packages(exclude=['examples']),
Expand Down

0 comments on commit a940146

Please sign in to comment.