Skip to content

Commit 0bd9d8d

Browse files
committed
build: switch to poetry, bump version
1 parent 41f1c6b commit 0bd9d8d

7 files changed

Lines changed: 44 additions & 49 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ mnemonic.egg-info/
55
.tox/
66
.venv/
77
.python-version
8+
poetry.lock

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Marek Palatinus <marek@satoshilabs.com>
22
Pavol Rusnak <stick@satoshilabs.com>
3+
Jan Matejek <jan.matejek@satoshilabs.com>

MANIFEST.in

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

Makefile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
PYTHON=python3
2-
SETUP=$(PYTHON) setup.py
2+
POETRY=poetry
33

44
EXCLUDES=.vscode
55

6-
STYLE_TARGETS=src tests tools *.py
6+
STYLE_TARGETS=src tests tools
77

88
all: build
99

1010
build:
11-
$(SETUP) build
11+
$(POETRY) build
1212

1313
install:
14-
$(SETUP) install
15-
16-
dist: clean
17-
$(SETUP) sdist
18-
$(SETUP) bdist_wheel
14+
$(POETRY) install
1915

2016
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
2117

@@ -43,11 +39,12 @@ git-clean:
4339

4440
style:
4541
black $(STYLE_TARGETS)
42+
isort $(STYLE_TARGETS)
4643
make style_check
4744

4845
style_check:
4946
black --check $(STYLE_TARGETS)
5047
flake8 $(STYLE_TARGETS)
51-
mypy $(STYLE_TARGETS)
48+
pyright $(STYLE_TARGETS)
5249

5350
.PHONY: all build install clean style style_check git-clean clean-build clean-pyc clean-test

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[tool.poetry]
2+
name = "mnemonic"
3+
version = "0.21"
4+
description = "Implementation of Bitcoin BIP-0039"
5+
authors = ["Trezor <info@trezor.io>"]
6+
license = "MIT"
7+
readme = [
8+
"README.rst",
9+
"CHANGELOG.rst",
10+
]
11+
include = [
12+
{ path = "tests", format = "sdist" },
13+
{ path = "tools", format = "sdist" },
14+
{ path = "AUTHORS", format = "sdist" },
15+
{ path = "tox.ini", format = "sdist" },
16+
{ path = "vectors.json", format = "sdist" },
17+
]
18+
19+
[tool.poetry.dependencies]
20+
python = ">=3.8.1"
21+
22+
[tool.poetry.group.dev.dependencies]
23+
isort = "^5.13.2"
24+
black = "^23.12.1"
25+
pyright = "^1.1.344"
26+
flake8 = "^7.0.0"
27+
bip32utils = "^0.3.post4"
28+
tox = "^4.11.4"
29+
30+
[tool.isort]
31+
profile = "black"
32+
33+
[build-system]
34+
requires = ["poetry-core"]
35+
build-backend = "poetry.core.masonry.api"

setup.py

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

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py39,
66
py310,
77
py311,
8+
py312,
89
pypy,
910

1011
[testenv]

0 commit comments

Comments
 (0)