Skip to content

Commit 133a3f7

Browse files
Merge pull request #6 from anton-ptashnik/publish-getready
Prepare a package for publishing
2 parents 17620d6 + fcc36bb commit 133a3f7

File tree

4 files changed

+44
-12
lines changed

4 files changed

+44
-12
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflows uploads a Python Package using Flit when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
publish:
12+
name: Upload a release to PyPI
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: 3.9
21+
22+
- name: Install Flit
23+
run: |
24+
python -m pip install flit
25+
26+
- name: Publish
27+
env:
28+
FLIT_USERNAME: __token__
29+
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30+
run: python -m flit publish

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
Use the GoDice Python API to integrate GoDice functionality into your own Python applications
77

8+
![PyPI - Version](https://img.shields.io/pypi/v/godice)
9+
810
**Supported features:**
911

1012
* Turn ON/OFF GoDice RGB LEDs
@@ -15,20 +17,10 @@ Use the GoDice Python API to integrate GoDice functionality into your own Python
1517

1618
## Installation
1719

18-
- once deployed to PyPI
19-
2020
```
2121
pip install godice
2222
```
2323

24-
- meanwhile, to install a local copy
25-
1. Clone the repo
26-
2. cd into the root dir
27-
3. Install a local copy
28-
```
29-
pip install .
30-
```
31-
3224
## Demo
3325

3426
Package includes a demo script showing up API features. Command to run it:

godice/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
GoDice Python API
2+
Use the GoDice Python API to integrate GoDice functionality into your own Python applications
33
"""
44
__version__ = "0.1.0"
55

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "godice"
7-
authors = [{name = "Particula", email = "iavtomator@gmail.com"}]
7+
authors = [
8+
{name = "Guy Levi", email = "todo_update@it.com"},
9+
{name = "Anton Ptashnik", email = "iavtomator@gmail.com"},
10+
]
11+
license = {file = "LICENSE.md"}
12+
classifiers = [
13+
"Framework :: AsyncIO",
14+
"Operating System :: Microsoft :: Windows :: Windows 10",
15+
"Operating System :: POSIX :: Linux",
16+
"Operating System :: MacOS",
17+
]
818
readme = "README.md"
919
dynamic = ["version", "description"]
1020
dependencies = [

0 commit comments

Comments
 (0)