Skip to content

Commit 4051636

Browse files
authored
Merge pull request #25 from poing/0.0.7
0.0.7
2 parents 8c2630f + 3ecf7b9 commit 4051636

54 files changed

Lines changed: 8680 additions & 438 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
per-file-ignores =
3+
js2pysecrets/settings.py:E731
4+
js2pysecrets/base.py:E203

.github/workflows/main.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: [3.9]
21+
python-version: [3.11]
2222
os: [ubuntu-latest]
2323
runs-on: ${{ matrix.os }}
2424
steps:
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
python-version: [3.9]
39+
python-version: [3.11]
4040
node-version: [latest]
4141
os: [ubuntu-latest]
4242
runs-on: ${{ matrix.os }}
@@ -72,7 +72,7 @@ jobs:
7272
strategy:
7373
fail-fast: false
7474
matrix:
75-
python-version: [3.9]
75+
python-version: [3.11]
7676
node-version: [latest]
7777
os: [macos-latest]
7878
runs-on: ${{ matrix.os }}
@@ -92,29 +92,29 @@ jobs:
9292
- name: Run tests
9393
run: make test
9494

95-
tests_win:
96-
needs: linter
97-
strategy:
98-
fail-fast: false
99-
matrix:
100-
python-version: [3.9]
101-
node-version: [latest]
102-
os: [windows-latest]
103-
runs-on: ${{ matrix.os }}
104-
steps:
105-
- uses: actions/checkout@v4
106-
- uses: actions/setup-python@v5
107-
with:
108-
python-version: ${{ matrix.python-version }}
109-
- uses: actions/setup-node@v4
110-
with:
111-
node-version: ${{ matrix.node-version }}
112-
cache: npm
113-
- name: Install Node dependencies
114-
run: npm install
115-
- name: Install Pip
116-
run: pip install --user --upgrade pip
117-
- name: Install project
118-
run: pip install -e .[test]
119-
- name: run tests
120-
run: pytest -s -vvvv -l --tb=long tests
95+
# tests_win:
96+
# needs: linter
97+
# strategy:
98+
# fail-fast: false
99+
# matrix:
100+
# python-version: [3.11]
101+
# node-version: [latest]
102+
# os: [windows-latest]
103+
# runs-on: ${{ matrix.os }}
104+
# steps:
105+
# - uses: actions/checkout@v4
106+
# - uses: actions/setup-python@v5
107+
# with:
108+
# python-version: ${{ matrix.python-version }}
109+
# - uses: actions/setup-node@v4
110+
# with:
111+
# node-version: ${{ matrix.node-version }}
112+
# cache: npm
113+
# - name: Install Node dependencies
114+
# run: npm install
115+
# - name: Install Pip
116+
# run: pip install --user --upgrade pip
117+
# - name: Install project
118+
# run: pip install -e .[test]
119+
# - name: run tests
120+
# run: pytest -s -vvvv -l --tb=long tests

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ lint: ## Run pep8, black, mypy linters.
3838
$(ENV_PREFIX)mypy --ignore-missing-imports js2pysecrets/
3939

4040
.PHONY: test
41-
test: lint ## Run tests and generate coverage report.
42-
$(ENV_PREFIX)pytest -v --cov-config .coveragerc --cov=js2pysecrets -l --tb=short --maxfail=1 tests/
41+
test: lint ## Run tests and generate coverage report. Add -s for print
42+
$(ENV_PREFIX)pytest -s -v --cov-config .coveragerc --cov=js2pysecrets -l --tb=short --maxfail=1 tests/
4343
$(ENV_PREFIX)coverage xml
4444
$(ENV_PREFIX)coverage html
4545

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[![codecov](https://codecov.io/gh/poing/JS2PySecrets/branch/main/graph/badge.svg?token=JS2PySecrets_token_here)](https://codecov.io/gh/poing/JS2PySecrets)
44
[![CI](https://github.com/poing/JS2PySecrets/actions/workflows/main.yml/badge.svg)](https://github.com/poing/JS2PySecrets/actions/workflows/main.yml)
5+
[![Built with Material for MkDocs](https://img.shields.io/badge/Material_for_MkDocs-526CFE?logo=MaterialForMkDocs&logoColor=white)](https://squidfunk.github.io/mkdocs-material/)
6+
7+
[![JS2PySecrets Documentation](https://img.shields.io/badge/Documentation-white?labelColor=3F00FF&logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJiIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDEuNTUgMTUwLjUiPjxnIGlkPSJjIj48cGF0aCBkPSJNOTEuMy4yNWw1OC4yOC4wOGM2LjQ3LDAsMTEuNzIsNS4yNiwxMS43MiwxMS43M2gwYzAsNS4zLTIuMTEsMTAuMzktNS44NiwxNC4xNGwtMy41LDMuNWMtNi4wMyw2LjAzLTYuNDYsMTUuNjYtMS4wMSwyMi4yMWgwYzgsOS42LDIyLjczLDkuNiwzMC43MywwaDBjNS40Ni02LjU1LDUuMDItMTYuMTgtMS4wMS0yMi4yMWwtMy41LTMuNWMtMy43NS0zLjc1LTUuODYtOC44NC01Ljg2LTE0LjE0aDBjMC02LjQ3LDUuMjQtMTEuNzIsMTEuNzItMTEuNzNsNTguMjgtLjA4YzAsODIuMjktNjcuNzEsMTUwLTE1MCwxNTAtMjYuMzMsMC01Mi4yLTYuOTMtNzUtMjAuMWwyOS4xNy01MC41MmMzLjI0LTUuNiwxLjMyLTEyLjc3LTQuMjktMTZoMGMtNC41OS0yLjY1LTEwLjA1LTMuMzctMTUuMTgtMmwtNC43OCwxLjI4Yy04LjIzLDIuMjEtMTYuNzktMi4yMy0xOS43My0xMC4yM2gwYy00LjMxLTExLjcyLDMuMDYtMjQuNDgsMTUuMzYtMjYuNjFoMGM4LjQtMS40NSwxNi41MiwzLjc0LDE4LjczLDExLjk4bDEuMjgsNC43OGMxLjM3LDUuMTIsNC43Miw5LjQ5LDkuMzIsMTIuMTRoMGM1LjYsMy4yNCwxMi43NywxLjMyLDE2LTQuMjlMOTEuMy4yNVoiIHN0eWxlPSJmaWxsOiNmZmZmZmY7ICIvPjwvZz48L3N2Zz4=)](https://poing.github.io/JS2PySecrets/)
8+
59

610

711
This is a `Python` implementation of [Shamir's threshold secret sharing scheme](http://en.wikipedia.org/wiki/Shamir's_Secret_Sharing), based **and compatible with** the `JavaScript` fork of `secrets.js` [*maintained by `grempe`*](https://github.com/grempe/secrets.js). Which is orginally based on the code created by `amper5and` on Github. The [original secrets.js can be found there](https://github.com/amper5and/secrets.js/).

0 commit comments

Comments
 (0)