Skip to content

Commit 0e389ab

Browse files
committed
Add Python package long description
1 parent 109dc5a commit 0e389ab

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
8+
109
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-python@v1
13-
with:
14-
python-version: 3.7
15-
- uses: dschep/install-pipenv-action@v1
16-
- name: Install dependencies
17-
run: |
18-
sudo apt install protobuf-compiler
19-
pipenv install --dev
20-
- name: Run tests
21-
run: |
22-
pipenv run generate
23-
pipenv run test
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.7
14+
- uses: dschep/install-pipenv-action@v1
15+
- name: Install dependencies
16+
run: |
17+
sudo apt install protobuf-compiler
18+
pipenv install --dev
19+
- name: Run tests
20+
run: |
21+
pipenv run generate
22+
pipenv run test
23+
- name: Build package
24+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
25+
run: pipenv run python setup.py sdist
26+
- name: Publish package
27+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
28+
uses: pypa/gh-action-pypi-publish@master
29+
with:
30+
user: __token__
31+
password: ${{ secrets.pypi }}

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
setup(
44
name="betterproto",
5-
version="1.0",
5+
version="1.0.1",
66
description="A better Protobuf / gRPC generator & library",
7+
long_description=open("README.md", "r").read(),
8+
long_description_content_type="text/markdown",
79
url="http://github.com/danielgtaylor/python-betterproto",
810
author="Daniel G. Taylor",
911
author_email="[email protected]",

0 commit comments

Comments
 (0)