Skip to content

Commit 8d29b88

Browse files
committed
pipeline
1 parent b56b896 commit 8d29b88

5 files changed

Lines changed: 19 additions & 36 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Build & Publish to PyPI
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*'
67

78
jobs:
89
build-and-publish:
910
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
1013
permissions:
1114
contents: read
1215
id-token: write # Required for PyPI Trusted Publishing (OIDC)
@@ -18,7 +21,7 @@ jobs:
1821
- name: Set up Python
1922
uses: actions/setup-python@v5
2023
with:
21-
python-version: '3.11'
24+
python-version: '3.12'
2225

2326
- name: Install build tools
2427
run: |
@@ -28,7 +31,6 @@ jobs:
2831
run: |
2932
python -m build
3033
31-
# Optional: quick sanity check of wheel METADATA before publishing
3234
- name: Show wheel METADATA (debug)
3335
run: |
3436
python - <<'PY'
@@ -41,15 +43,13 @@ jobs:
4143
print(z.read(metas[0]).decode().splitlines()[:12])
4244
PY
4345
44-
- name: Publish to PyPI (Trusted Publishing)
46+
- name: pypi-publish
4547
uses: pypa/gh-action-pypi-publish@v1.10.3
4648
with:
4749
packages-dir: dist
48-
# skip-existing: true # uncomment to avoid failing when files already exist
49-
50-
# ---- If you need to publish to TestPyPI instead, use this step instead of the one above ----
51-
# - name: Publish to TestPyPI (Trusted Publishing)
52-
# uses: pypa/gh-action-pypi-publish@v1.10.3
53-
# with:
54-
# packages-dir: dist
55-
# repository-url: https://test.pypi.org/legacy/
50+
repository-url: https://upload.pypi.org/legacy/
51+
user: __token__
52+
password: ${{ secrets.PYPI_TOKEN }}
53+
skip-existing: true
54+
verify-metadata: false
55+
verbose: true

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ venv/
55
__pycache__/
66
*.pyc
77
*.pyo
8-
dist/
98
build/
109
*.egg-info/

client.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=68", "wheel", "build"]
2+
requires = ["setuptools >= 77.0.3"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "haveno-client" # distribution name (hyphen OK)
6+
dynamic = ["version"]
7+
name = "haveno-client"
78
version = "0.2.1"
89
description = "A client for interacting with the Haveno daemon."
910
readme = "README.md"
10-
requires-python = ">=3.8" # matches classifiers below
11-
license = { text = "AGPL-3.0-or-later" }
11+
license = { file = "LICENSE" }
1212
authors = [ { name = "Kewbit", email = "support@haveno.app" } ]
1313
keywords = ["haveno", "monero", "p2p", "exchange"]
1414
classifiers = [
@@ -29,7 +29,8 @@ classifiers = [
2929
# Runtime dependencies (only what end users need at install time)
3030
dependencies = [
3131
"grpcio",
32-
"socks",
32+
"pysocks",
33+
"protobuf"
3334
]
3435

3536
[project.optional-dependencies]

0 commit comments

Comments
 (0)