Skip to content

Commit ed3a8d8

Browse files
authored
luno-python: add PyPI description and update README badges (#80)
* docs: add PyPI long description and update README badges * fix: use main branch in licence badge URL * feat: add SonarCloud badges and Python classifiers to fix missing badge * feat: support Python 3.11-3.14, update test matrix * docs: separate Sonar badges onto own line, link to dashboard * docs: remove coverage badge (no data in SonarCloud)
1 parent 002cdde commit ed3a8d8

4 files changed

Lines changed: 30 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: [ "3.12", "3.13" ]
16+
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
1717

1818
steps:
1919

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<img src="https://d32exi8v9av3ux.cloudfront.net/static/images/luno-email-336.png">
22

3-
# Luno API [![Build Status](https://travis-ci.org/luno/luno-python.svg?branch=master)](https://travis-ci.org/luno/luno-python)
3+
# Luno Python SDK
4+
5+
[![Run Tests](https://github.com/luno/luno-python/actions/workflows/test.yml/badge.svg)](https://github.com/luno/luno-python/actions/workflows/test.yml)
6+
[![PyPI version](https://img.shields.io/pypi/v/luno-python.svg)](https://pypi.org/project/luno-python/)
7+
[![Python Versions](https://img.shields.io/pypi/pyversions/luno-python.svg)](https://pypi.org/project/luno-python/)
8+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/luno/luno-python/blob/main/LICENSE.txt)
9+
10+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=alert_status)](https://sonarcloud.io/dashboard?id=luno_luno-python)
11+
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=bugs)](https://sonarcloud.io/dashboard?id=luno_luno-python)
12+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=security_rating)](https://sonarcloud.io/dashboard?id=luno_luno-python)
13+
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=luno_luno-python)
14+
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=luno_luno-python)
415

516
This Python package provides a wrapper for the [Luno API](https://www.luno.com/api).
617

@@ -28,6 +39,8 @@ except Exception as e:
2839
print(e)
2940
```
3041

42+
For more examples, see the [examples](./examples) folder.
43+
3144
### License
3245

33-
[MIT](https://github.com/luno/luno-python/blob/master/LICENSE.txt)
46+
[MIT](https://github.com/luno/luno-python/blob/main/LICENSE.txt)

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ skip_gitignore = true
2222
exclude_dirs = ["tests", "env", "build"]
2323
skips = [
2424
"B101", # Skip assert_used check (common in tests)
25-
"B107", # Skip hardcoded_password_default (empty string defaults are acceptable for optional credentials)
2625
]
2726

2827
[tool.pytest.ini_options]

setup.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Setup script for luno-python package."""
22

3+
from pathlib import Path
4+
35
from setuptools import find_packages, setup
46

57
from luno_python import VERSION
@@ -8,13 +10,24 @@
810
name="luno-python",
911
version=VERSION,
1012
packages=find_packages(exclude=["tests"]),
11-
description="A Luno API client for Python",
13+
description="A Python client for the Luno cryptocurrency exchange API",
14+
long_description=(Path(__file__).parent / "README.md").read_text(encoding="utf-8"),
15+
long_description_content_type="text/markdown",
1216
author="Neil Garb",
1317
author_email="[email protected]",
1418
install_requires=["requests>=2.18.4", "six>=1.11.0"],
1519
license="MIT",
1620
url="https://github.com/luno/luno-python",
1721
download_url=f"https://github.com/luno/luno-python/tarball/{VERSION}",
22+
python_requires=">=3.11",
23+
classifiers=[
24+
"License :: OSI Approved :: MIT License",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
30+
],
1831
keywords="Luno API Bitcoin Ethereum",
1932
test_suite="tests",
2033
setup_requires=["pytest-runner"],

0 commit comments

Comments
 (0)