Skip to content

Commit 6447ad9

Browse files
committed
chore: initial commit
0 parents  commit 6447ad9

6 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI - Python SDK
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python: [3.11]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python }}
21+
- name: Install
22+
run: python -m pip install -U pip setuptools wheel
23+
- name: Run tests
24+
run: python -m pytest -q

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Python
2+
__pycache__/
3+
*.pyc
4+
dist/
5+
build/
6+
*.egg-info/
7+
8+
# Editor
9+
.vscode/
10+
11+
# OS
12+
.DS_Store

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# LNMP SDK - Python
2+
3+
This repository holds the Python SDK for LNMP (legacy `lnmo` naming kept for
4+
compatibility with previous packaging). Rename / consolidate if needed.
5+
6+
Quickstart:
7+
8+
```bash
9+
python -m pytest -q
10+
```

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "lnmp-sdk-python"
7+
version = "0.1.0"
8+
description = "Python SDK for LNMP"
9+
authors = [ { name = "LNMP Contributors" } ]
10+
classifiers = [ "Programming Language :: Python :: 3" ]

src/lnmp_sdk_python/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""LNMP SDK Python - minimal initializer
2+
"""
3+
4+
__version__ = "0.1.0"
5+
6+
def version():
7+
return __version__

tests/test_version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from lnmp_sdk_python import version
2+
3+
4+
def test_version():
5+
assert version() == '0.1.0'

0 commit comments

Comments
 (0)