Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit b9004b6

Browse files
committed
Removing use of poetry.
1 parent 87033dd commit b9004b6

7 files changed

Lines changed: 43 additions & 1134 deletions

File tree

.github/workflows/run-tests.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,11 @@ jobs:
4343
python-version: ${{ matrix.python-version }}
4444
architecture: ${{ matrix.architecture }}
4545

46-
- name: Install Poetry
47-
uses: snok/install-poetry@v1
48-
with:
49-
virtualenvs-create: true
50-
virtualenvs-in-project: true
51-
installer-parallel: true
52-
53-
- name: Configure Cache
54-
id: cached-poetry-dependencies
55-
uses: actions/cache@v3
56-
with:
57-
path: .venv
58-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
59-
60-
- name: Install dependencies
61-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
62-
run: poetry install --no-interaction --no-root
46+
- name: Install depenencies
47+
run: |
48+
python -m pip install --upgrade pip
49+
python -m pip install .
6350
6451
- name: Run tests
6552
run: |
66-
source $VENV
6753
python -m pytest tests/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ logs/
99
dist/
1010
build/
1111
bin/
12+
*.egg-info
1213

1314
# PyCharm Projects
1415
.idea/

.readthedocs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ build:
1313
os: ubuntu-22.04
1414
tools:
1515
python: "3.11"
16-
jobs:
17-
post_install:
18-
- pip install poetry
19-
- poetry config virtualenvs.create false
20-
- poetry install --with docs
2116

2217
# Build documentation in the docs/ directory with Sphinx
2318
sphinx:
2419
configuration: docs/conf.py
20+
21+
python:
22+
install:
23+
- method: pip
24+
path: .

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 0.7.0
2+
-------------
3+
4+
:Date: TBC
5+
6+
* Removing use of poetry.
7+
18
Version 0.6.0
29
-------------
310

poetry.lock

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

pyproject.toml

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
26
name = "uos-hardware"
3-
version = "0.6.0"
7+
version = "0.7.0"
48
description = "A hardware abstraction layer for microcontrollers running UOS compliant firmware."
5-
authors = ["nulltek <steve.public@nulltek.xyz>"]
6-
license = "MIT"
9+
authors = [
10+
{ name = "CreatingNull (Steve Richardson)", email="steve.public@nulltek.xyz" }
11+
]
12+
license = { text = "MIT License" }
713
readme = "README.md"
8-
homepage = "https://github.com/CreatingNull/UOS-Hardware"
9-
documentation = "https://uos-hardware.nulltek.xyz"
10-
packages = [
11-
{ include = "uoshardware" }
14+
requires-python = ">=3.10"
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
]
18+
dependencies = [
19+
"pyserial",
1220
]
1321

14-
[tool.poetry.dependencies]
15-
# Note if changing project python versions considerations should be made for github workflow version.
16-
python = "^3.10"
17-
pyserial = "^3.5"
18-
19-
[tool.poetry.group.dev.dependencies]
20-
coverage = {extras = ["toml"], version = "^7.0.3"}
21-
pytest = "^7.2.0"
22-
pre-commit = "^2.21.0"
23-
pylint = "^2.15.9"
24-
tox = "^4.2.5"
25-
26-
[tool.poetry.group.docs.dependencies]
27-
Sphinx = "^5.3.0"
28-
sphinx-rtd-theme = "^1.1.1"
22+
[project.urls]
23+
homepage = "https://github.com/CreatingNull/UOS-Hardware"
24+
documentation = "https://uos-hardware.nulltek.xyz"
2925

30-
[build-system]
31-
requires = ["poetry-core>=1.0.0"]
32-
build-backend = "poetry.core.masonry.api"
26+
[tool.setuptools]
27+
packages = ["uoshardware", "uoshardware.devices", "uoshardware.interface"]
3328

3429
[tool.coverage.run]
3530
branch = true

requirements-dev.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage
2+
pytest
3+
pre-commit
4+
tox
5+
pylint

0 commit comments

Comments
 (0)