Skip to content

Commit

Permalink
misc: Official release
Browse files Browse the repository at this point in the history
fixes docs and releases to official PyPI (instead of test PyPI)
  • Loading branch information
mgorsk1 authored Apr 11, 2021
1 parent 2ded3a9 commit b47698d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
fetch-depth: 0
- name: Build package
run: make build
- name: Publish dist to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
# - name: Publish dist to PyPI
# if: startsWith(github.ref, 'refs/tags')
# - name: Publish dist to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish dist to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 0 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
#### New Features

* initial development

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

### What is Snooker ?

@todo
Following [Wikipedia's definition](https://en.wikipedia.org/wiki/Snooker):

> Snooker (pronounced UK: /ˈsnuːkər/, US: /ˈsnʊkər/)[2][3] is a cue sport that was first played by British Army officers stationed in India in the second half of the 19th century. It is played on a rectangular table covered with a green cloth (or "baize"), with six pockets: one at each corner and one in the middle of each long side. Using a cue stick, the players[a] take turns to strike the white "cue ball" to pot the other twenty-one snooker balls in the correct sequence, accumulating points for each pot. An individual frame of snooker is won by the player who has scored the most points by the end of the frame. A snooker match ends with one of the players having won a predetermined number of frames, thus winning the match.
## Getting started

Expand Down Expand Up @@ -38,9 +40,7 @@ print(player)

Following [snooker.org API documentation](http://api.snooker.org/):

```baazar
If you plan to collect data automatically please contact us so we can agree on what you should put in the header. E.g. "X-Requested-By": "PetersAndroidApp".
```
> If you plan to collect data automatically please contact us so we can agree on what you should put in the header. E.g. "X-Requested-By": "PetersAndroidApp".
To achieve this, simply pass appropriate headers when instantiating the client:

Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
__version__ = '0.1.0'

requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
readme_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'README.md')

with open(requirements_path) as requirements_file:
requirements = requirements_file.readlines()

with open(readme_path) as readme_file:
long_description = readme_file.read()

setup(
name='snooker',
version=__version__,
description='Snooker Data API',
long_description=long_description,
url='https://www.github.com/mgorsk1/snooker',
maintainer='mgorsk1',
maintainer_email='[email protected]',
Expand Down

0 comments on commit b47698d

Please sign in to comment.