From e8f294f821ed7de5931c6dc43295882a04ce679b Mon Sep 17 00:00:00 2001 From: msinkec Date: Sun, 15 Sep 2024 14:31:51 +0200 Subject: [PATCH 1/3] unify dependency definitions in setup.cfg --- requirements.txt | 13 ------------- setup.cfg | 11 ++++++----- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 149c48f..0000000 --- a/requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ -pycryptodomex==3.20.0 -coincurve==19.0.1 -requests==2.32.0 - -pytest==8.1.1 -pytest-asyncio==0.23.7 -pytest-cov==5.0.0 -ecdsa==0.19.0 - -build==1.2.1 -twine==5.0.00 -aiohttp==3.10.2 - diff --git a/setup.cfg b/setup.cfg index 25e7593..4814519 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,12 +24,13 @@ keywords = python_requires = >=3.9 include_package_data = True install_requires = - pycryptodomex - coincurve - requests + pycryptodomex>=3.20.0 + coincurve>=20.0.0 + requests>=2.32.3 + aiohttp>=3.10.5 tests_require = - pytest - ecdsa + pytest>=8.3.3 + ecdsa>=0.19.0 [options.package_data] * = hd/wordlist/*.txt From 3178cb814955140d0c42b95cfe71ebc7e18520bc Mon Sep 17 00:00:00 2001 From: msinkec Date: Sun, 15 Sep 2024 14:42:24 +0200 Subject: [PATCH 2/3] Update setup.cfg and fix github CI workflow. --- .github/workflows/build.yml | 4 ++-- setup.cfg | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c206377..fcdcb60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install flake8 + pip install '.[test]' - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/setup.cfg b/setup.cfg index 4814519..73d6a0e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,9 +28,11 @@ install_requires = coincurve>=20.0.0 requests>=2.32.3 aiohttp>=3.10.5 -tests_require = + +[options.extras_require] +test = pytest>=8.3.3 + pytest-asyncio>=0.24.0 ecdsa>=0.19.0 [options.package_data] -* = hd/wordlist/*.txt From e0a31f62436132f17105102bc79cd3b86893b454 Mon Sep 17 00:00:00 2001 From: msinkec Date: Sun, 15 Sep 2024 14:50:09 +0200 Subject: [PATCH 3/3] Add missing package data to setup.cfg. --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 73d6a0e..d9acb69 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,3 +36,4 @@ test = ecdsa>=0.19.0 [options.package_data] +* = hd/wordlist/*.txt