Skip to content

Commit

Permalink
Merge pull request #17 from knst/improve-python3-support
Browse files Browse the repository at this point in the history
feat: improved support of python3
  • Loading branch information
PastaPastaPasta committed May 10, 2023
2 parents be32713 + 542f1e8 commit 7af3873
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.10' ]
os: ['ubuntu-20.04', 'ubuntu-latest']
exclude:
- python-version: 3.5
os: ubuntu-latest
- python-version: 3.6
os: ubuntu-latest
runs-on: ${{ matrix.os }}
name: Build and test with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
Expand All @@ -16,5 +22,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- run: |
python setup.py install
python -m pip install -r requirements.txt .
python test.py
yes | python -m pip uninstall dash-hash
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
build
dash_hash.egg-info/
dist
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2023 The Dash Core developers
Copyright (c) 2014-2015 The Dash (Darkcoin) Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dash_hash (python) v1.3.2
dash_hash (python) v1.4.0
===========================

Python module for Dash's X11 hashing.
Expand All @@ -7,17 +7,20 @@ Python module for Dash's X11 hashing.
Install
-------

Python 2.7+ or 3.5+ and the associated development package (e.g., `python2-dev`) is required as well as a gcc.

$ sudo python setup.py install
Python 3.5+ or 2.7+ and the associated development package (e.g., `python3-dev`) is required as well as a gcc.

$ pip3 install -r requirements.txt .

Test
-------

After installation, test hash.

$ python test.py
$ python3 test.py

Uninstall
-------
$ pip3 uninstall dash_hash

Credits
-------
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
setuptools
wheel
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup, Extension
from setuptools import setup, Extension

dash_hash_module = Extension('dash_hash',
sources = ['dashmodule.c',
Expand All @@ -17,6 +17,6 @@
include_dirs=['.', './sha3'])

setup (name = 'dash_hash',
version = '1.3.2',
version = '1.4.0',
description = 'Binding for Dash X11 proof of work hashing.',
ext_modules = [dash_hash_module])

0 comments on commit 7af3873

Please sign in to comment.