Skip to content

Commit 463e197

Browse files
committed
chore: rename package and add PyPI release workflow
1 parent ebf7f65 commit 463e197

4 files changed

Lines changed: 49 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
release:
13+
name: release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v6
18+
with:
19+
persist-credentials: false
20+
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: 3.9
24+
25+
- run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -e .
29+
30+
- name: Run Tests
31+
run: make test
32+
33+
- name: Install build tooling
34+
run: |
35+
pip install build
36+
37+
- name: Build sdist and wheel
38+
env:
39+
PACKAGE_VERSION: ${{ github.ref_name }}
40+
run: python -m build
41+
42+
- name: Publish to PyPI
43+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
## Kuest CLOB Python order-utils
22

3-
<a href='https://pypi.org/project/py-order-utils'>
4-
<img src='https://img.shields.io/pypi/v/py-order-utils.svg' alt='PyPI'/>
3+
<a href='https://pypi.org/project/kuest-py-order-utils'>
4+
<img src='https://img.shields.io/pypi/v/kuest-py-order-utils.svg' alt='PyPI'/>
55
</a>
66

77
Python utilities used to generate and sign orders for the Kuest CTF Exchange
88

99
### Install
1010

1111
```bash
12-
pip install py-order-utils
12+
pip install kuest-py-order-utils
1313
```
1414

1515
### Usage

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
eth-account===0.13.0
22
eth-utils===4.1.1
3-
kuest_eip712_structs @ git+https://github.com/kuestcom/py-eip712-structs@main
3+
kuest-py-eip712-structs==0.0.1
44
pytest==8.2.2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
long_description = fh.read()
55

66
setuptools.setup(
7-
name="py_order_utils",
7+
name="kuest-py-order-utils",
88
version="0.3.2",
99
author="Kuest Engineering",
1010
author_email="engineering@kuest.com",
@@ -17,7 +17,7 @@
1717
install_requires=[
1818
"eth-utils>=4.1.1",
1919
"eth-account>=0.13.0",
20-
"kuest-eip712-structs",
20+
"kuest-py-eip712-structs==0.0.1",
2121
"pytest",
2222
],
2323
package_data={

0 commit comments

Comments
 (0)