Skip to content

Commit

Permalink
Merge pull request #345 from 1200wd/replace-setup-py
Browse files Browse the repository at this point in the history
Replace setup py
  • Loading branch information
mccwdev authored Nov 22, 2023
2 parents 5004062 + bfd39de commit bc23d8a
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 133 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/unittests-noscrypt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ jobs:
architecture: 'x64'
- name: Install dependencies
run: |
pip install coveralls
pip install psycopg2
pip install mysql-connector
pip install mysqlclient
pip install parameterized
pip install Cython
python setup.py install
python -m pip install .[dev]
pip uninstall -y scrypt
- name: Test with coverage
env:
BCL_CONFIG_FILE: config_encryption.ini.unittest
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@ jobs:
architecture: 'x64'
- name: Install dependencies
run: |
pip install coveralls
pip install psycopg2
pip install mysql-connector
pip install mysqlclient
pip install parameterized
pip install scrypt
pip install Cython
python setup.py install
python -m pip install .[dev]
- name: Test with coverage
env:
BCL_CONFIG_FILE: config.ini.unittest
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/unittests_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ jobs:
architecture: 'x64'
- name: Install dependencies
run: |
pip install win-unicode-console
pip install coveralls
pip install psycopg2
pip install mysql-connector
pip install mysqlclient
pip install parameterized
pip install scrypt
python setup.py install
python -m pip install .[dev]
- name: Test with coverage
env:
BCL_CONFIG_FILE: config.ini.unittest
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
version: 3.10
install:
- requirements: docs/requirements.txt
# - requirements: requirements.txt
# - requirements: requirements.txt
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
13 changes: 0 additions & 13 deletions requirements-dev.txt

This file was deleted.

14 changes: 12 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
requests>=2.25.0
fastecdsa>=2.2.1
SQLAlchemy>=1.4.24
numpy>=1.22.0
scrypt>=0.8.18
pycryptodome>=3.14.1
SQLAlchemy>=1.4.45
numpy>=1.22.0
sphinx>=4.3.1
coveralls>=3.0.1
psycopg2>=2.9.2
mysql-connector-python>=8.0.27
mysqlclient>=2.1.0
parameterized>=0.8.1
sphinx_rtd_theme>=1.0.0
Cython
win-unicode-console;platform_system=="Windows"
61 changes: 60 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,61 @@
[metadata]
description-file = README.rst
name = bitcoinlib
version = 0.6.12
url = http://github.com/1200wd/bitcoinlib
author = 1200wd
author_email = [email protected]
license= GNU3
description = Bitcoin cryptocurrency Library
long_description = file: README.rst
keywords = bitcoin library cryptocurrency wallet crypto keys segwit transactions blocks
classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Intended Audience :: Developers
Intended Audience :: Financial and Insurance Industry
Intended Audience :: Science/Research
Intended Audience :: Information Technology
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Natural Language :: English
Operating System :: OS Independent
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Security :: Cryptography
Topic :: Office/Business :: Financial :: Accounting

[options]
packages = find:
zip_safe = True
include_package_data = True
install_requires =
requests >= 2.25.0
fastecdsa >= 2.2.1;platform_system!="Windows"
ecdsa >= 0.17
pycryptodome >= 3.14.1
SQLAlchemy >= 1.4.28
numpy == 1.19.5;python_version<"3.9"
numpy >= 1.22.0;python_version>="3.9"

[options.extras_require]
dev =
scrypt >= 0.8.18
sphinx >= 4.3.1
coveralls >= 3.0.1
psycopg2 >= 2.9.2
mysql-connector-python >= 8.0.27
mysqlclient >= 2.1.0
parameterized >= 0.8.1
sphinx_rtd_theme >= 1.0.0
Cython
win-unicode-console;platform_system=="Windows"

[options.entry_points]
console_scripts =
cli-wallet = bitcoinlib.tools.clw:main
clw = bitcoinlib.tools.clw:main
92 changes: 0 additions & 92 deletions setup.py

This file was deleted.

0 comments on commit bc23d8a

Please sign in to comment.