From 0e389abbefa9ff935942dea4d31bf786d7f785b8 Mon Sep 17 00:00:00 2001 From: "Daniel G. Taylor" Date: Tue, 22 Oct 2019 21:31:42 -0700 Subject: [PATCH] Add Python package long description --- .github/workflows/ci.yml | 38 +++++++++++++++++++++++--------------- setup.py | 4 +++- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59abee4..8da479d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,20 +4,28 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - + steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - uses: dschep/install-pipenv-action@v1 - - name: Install dependencies - run: | - sudo apt install protobuf-compiler - pipenv install --dev - - name: Run tests - run: | - pipenv run generate - pipenv run test + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: 3.7 + - uses: dschep/install-pipenv-action@v1 + - name: Install dependencies + run: | + sudo apt install protobuf-compiler + pipenv install --dev + - name: Run tests + run: | + pipenv run generate + pipenv run test + - name: Build package + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + run: pipenv run python setup.py sdist + - name: Publish package + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi }} diff --git a/setup.py b/setup.py index e3894d2..8e74191 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,10 @@ from setuptools import setup, find_packages setup( name="betterproto", - version="1.0", + version="1.0.1", description="A better Protobuf / gRPC generator & library", + long_description=open("README.md", "r").read(), + long_description_content_type="text/markdown", url="http://github.com/danielgtaylor/python-betterproto", author="Daniel G. Taylor", author_email="danielgtaylor@gmail.com",