Skip to content

Commit 7dfa42c

Browse files
committed
Migrate to pyproject.toml from setup.py / requirements.txt
1 parent c5fff3d commit 7dfa42c

File tree

5 files changed

+36
-56
lines changed

5 files changed

+36
-56
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,8 @@ jobs:
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
- name: Install pip and setuptools
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install setuptools
31-
- name: On MacOS, install coincurve's dependencies and install it from wheels # FIXME: installing from source fails for some reason.
32-
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
33-
run: |
34-
brew install autoconf automake libffi libtool pkg-config python
35-
pip install -r requirements.txt
27+
- name: Upgrade pip
28+
run: python -m pip install --upgrade pip
3629
- name: Install python-bip32 from source
3730
run: pip install .
3831
- name: Test with pytest

bip32/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from .bip32 import BIP32, PrivateDerivationError, InvalidInputError
22
from .utils import BIP32DerivationError, HARDENED_INDEX
33

4-
__version__ = "4.0"
5-
64
__all__ = [
75
"BIP32",
86
"BIP32DerivationError",

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "bip32"
7+
version = "4.0.0"
8+
dependencies = [
9+
"coincurve>=15.0,<21",
10+
]
11+
requires-python = ">=3.8"
12+
authors = [
13+
{name = "Antoine Poinsot", email = "[email protected]"},
14+
]
15+
maintainers = [
16+
{name = "Antoine Poinsot", email = "[email protected]"},
17+
]
18+
description = "Minimalistic implementation of BIP32 (Bitcoin HD wallets)"
19+
readme = "README.md"
20+
license = "BSD-3-Clause"
21+
license-files = ["LICENCE"]
22+
keywords = ["bitcoin", "key derivation", "HD wallet"]
23+
classifiers = [
24+
"Programming Language :: Python :: 3",
25+
"Operating System :: OS Independent",
26+
"Topic :: Security :: Cryptography",
27+
]
28+
29+
[project.urls]
30+
Homepage = "https://github.com/darosior/python-bip32"
31+
Repository = "https://github.com/darosior/python-bip32"
32+
Issues = "https://github.com/darosior/python-bip32/issues"
33+
"Bug Tracker" = "https://github.com/darosior/python-bip32/issues"
34+
Changelog = "https://github.com/darosior/python-bip32/tree/master/CHANGELOG.md"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

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

0 commit comments

Comments
 (0)