Skip to content

Commit 0b44437

Browse files
committed
Release 0.0.137
1 parent aa5a133 commit 0b44437

File tree

6 files changed

+36
-12
lines changed

6 files changed

+36
-12
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,27 @@ jobs:
3535

3636
- name: Test
3737
run: poetry run pytest -rP .
38+
39+
publish:
40+
needs: [compile, test]
41+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- name: Checkout repo
45+
uses: actions/checkout@v3
46+
- name: Set up python
47+
uses: actions/setup-python@v4
48+
with:
49+
python-version: 3.8
50+
- name: Bootstrap poetry
51+
run: |
52+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
53+
- name: Install dependencies
54+
run: poetry install
55+
- name: Publish to pypi
56+
run: |
57+
poetry config repositories.remote https://upload.pypi.org/legacy/
58+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
59+
env:
60+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
61+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Speechifyinc Python Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fspeechifyinc%2Fspeechify-api-sdk-python)
4-
[![pypi](https://img.shields.io/pypi/v/speechifyinc)](https://pypi.python.org/pypi/speechifyinc)
4+
[![pypi](https://img.shields.io/pypi/v/speechify-api)](https://pypi.python.org/pypi/speechify-api)
55

66
The Speechifyinc Python library provides convenient access to the Speechifyinc API from Python.
77

88
## Installation
99

1010
```sh
11-
pip install speechifyinc
11+
pip install speechify-api
1212
```
1313

1414
## Reference

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
2-
name = "speechifyinc"
2+
name = "speechify-api"
33

44
[tool.poetry]
5-
name = "speechifyinc"
6-
version = "0.0.0"
5+
name = "speechify-api"
6+
version = "0.0.137"
77
description = ""
88
readme = "README.md"
99
authors = []

src/speechifyinc/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def __init__(
2121
def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
2323
"X-Fern-Language": "Python",
24-
"X-Fern-SDK-Name": "speechifyinc",
25-
"X-Fern-SDK-Version": "0.0.0",
24+
"X-Fern-SDK-Name": "speechify-api",
25+
"X-Fern-SDK-Version": "0.0.137",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_token()}"
2828
return headers

src/speechifyinc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from importlib import metadata
22

3-
__version__ = metadata.version("speechifyinc")
3+
__version__ = metadata.version("speechify-api")

0 commit comments

Comments
 (0)