File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ # Python
2+ __pycache__ /
3+ * .pyc
4+ dist /
5+ build /
6+ * .egg-info /
7+
8+ # Editor
9+ .vscode /
10+
11+ # OS
12+ .DS_Store
Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 1+ """LNMP SDK Python - minimal initializer
2+ """
3+
4+ __version__ = "0.1.0"
5+
6+ def version ():
7+ return __version__
Original file line number Diff line number Diff line change 1+ from lnmp_sdk_python import version
2+
3+
4+ def test_version ():
5+ assert version () == '0.1.0'
You can’t perform that action at this time.
0 commit comments