Skip to content

Commit 932adef

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/pyinstaller/electron/json-schema-and-jsprim-0.4.0
2 parents 152d68c + a00c736 commit 932adef

File tree

222 files changed

+9688
-2870
lines changed

Some content is hidden

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

222 files changed

+9688
-2870
lines changed

.github/workflows/zblack.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-python@v2
11-
- uses: psf/black@stable # https://black.readthedocs.io/en/stable/integrations/github_actions.html
11+
# This version should match what you can find in .pre-commit-config.yaml
12+
- uses: psf/[email protected] # https://black.readthedocs.io/en/stable/integrations/github_actions.html
13+
with:
14+
options: "--check --verbose"
15+
src: "./src"
16+
version: "22.3.0"

.gitlab-ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ check:
5959
- pip3 install -e .
6060
- pip3 install -r test_requirements.txt
6161
- python3 setup.py install # compiles babel stuff as well (might make pip install obsolete)
62-
# pytest --docker not working? Uncomment this for better debugging:
63-
# - python3 tests/conftest.py
64-
- py.test --cov-report term --cov cryptoadvance --docker
62+
- py.test --cov-report term --cov cryptoadvance
6563

6664
.test-cypress:
6765
image: registry.gitlab.com/cryptoadvance/specter-desktop/cypress-python-jammy:v9.7.0
@@ -122,12 +120,24 @@ release_binary_windows:
122120
tags:
123121
- windows
124122
before_script:
123+
- whoami
125124
- python -V
126-
- pip3 install virtualenv
125+
- pip3 --version
126+
- pip install virtualenv
127127
- virtualenv --python=python3 .env
128128
- .\.env\Scripts\activate
129-
- pip3 install -r test_requirements.txt
130-
- whoami
129+
- pip install -r test_requirements.txt || echo "why the heck does this fail with:"
130+
# Collecting distlib<1,>=0.3.6
131+
# Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)
132+
# ------------------------------------- 468.5/468.5 kB 30.6 MB/s eta 0:00:00
133+
# ERROR: To modify pip, please run the following command:
134+
# C:\gitlab-runner\builds\xPkLDUk2\0\k9ert\specter-desktop\.env\Scripts\python.exe -m pip install -r test_requirements.txt
135+
# Uploading artifacts for failed job
136+
137+
# That error message above doesn't even help a bit
138+
# However it seems that if you do that yet another time, it doesn't fail!
139+
- pip install -r test_requirements.txt -vv
140+
131141
script:
132142
# This script won't execute if the script before that fails
133143
# No need to check the version-scheme again

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ repos:
33
rev: 22.3.0
44
hooks:
55
- id: black
6-
language_version: python3.9
6+
language_version: python3.10

.vscode/launch.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Flask",
9+
"type": "python",
10+
"request": "launch",
11+
"module": "flask",
12+
"env": {
13+
"FLASK_APP": "cryptoadvance.specter.server:create_and_init()",
14+
"FLASK_ENV": "development",
15+
"SPECTER_DATA_FOLDER": "~/.specter_empty",
16+
"SPECTER_CONFIG": "DevelopmentConfig",
17+
"FLASK_DEBUG": "1",
18+
"PATH": "./.env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
19+
},
20+
"args": [
21+
"run",
22+
"--no-debugger",
23+
"--no-reload",
24+
"--port=25441"
25+
],
26+
"jinja": true
27+
}
28+
]
29+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"python.testing.unittestEnabled": false,
3+
"python.testing.pytestEnabled": true
4+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM python:3.9-slim-bullseye AS builder
1414
ARG VERSION
1515
ARG REPO
1616

17-
RUN apt update && apt install -y git build-essential libusb-1.0-0-dev libudev-dev libffi-dev libssl-dev rustc cargo
17+
RUN apt update && apt install -y git build-essential libusb-1.0-0-dev libudev-dev libffi-dev libssl-dev rustc cargo libpq-dev
1818

1919
WORKDIR /
2020

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
![](https://img.shields.io/badge/Bitcoin-000000?style=flat&logo=bitcoin&logoColor=white)
2+
[![docs - netlify](https://img.shields.io/badge/docs-_netlify-2ea44f)](https://docs.specter.solutions/desktop/)
3+
![Cirrus CI - Specific Task Build Status](https://img.shields.io/cirrus/github/cryptoadvance/specter-desktop?label=pytest&task=test)
4+
![Cirrus CI - Specific Task Build Status](https://img.shields.io/cirrus/github/cryptoadvance/specter-desktop?label=cypress&task=cypress_test)
5+
![GitHub Release Date](https://img.shields.io/github/release-date/cryptoadvance/specter-desktop)
6+
[![PyPI version](https://img.shields.io/pypi/v/cryptoadvance.specter)](https://pypi.org/project/cryptoadvance.specter/)
7+
![Docker Image Version (latest by date)](https://img.shields.io/docker/v/lncm/specter-desktop?label=docker)
8+
![GitHub all releases](https://img.shields.io/github/downloads/cryptoadvance/specter-desktop/total)
9+
110
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
211
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
312
**Table of Contents**
413

514
- [Specter Desktop](#specter-desktop)
615
- [DISCLAIMER](#disclaimer)
7-
- [Video Walkthrough](#video-walkthrough)
16+
- [Documentation and Video Walkthrough](#documentation-and-video-walkthrough)
817
- [Why?](#why)
918
- [Help wanted: Do you like Specter?](#help-wanted-do-you-like-specter)
1019
- [How to run](#how-to-run)
@@ -26,17 +35,16 @@
2635
"A specter is haunting the modern world, the specter of crypto anarchy."
2736
The Crypto Anarchist Manifesto - Timothy C. May - Sun, 22 Nov 92 12:11:24 PST
2837

29-
[![Build Status](https://api.cirrus-ci.com/github/cryptoadvance/specter-desktop.svg)](https://cirrus-ci.com/github/cryptoadvance/specter-desktop)
30-
[![Support the project](https://img.shields.io/badge/btcpay-support%20project-orange.svg)](https://donate.specter.solutions/apps/3k77BAT6zshCGNd3i7gw9WKwXQy1/pos)
31-
3238
## DISCLAIMER
3339

3440
This software might be ready to be used but at your own risk.
3541

3642
If something doesn't work open an issue here or ask a question in our [Telegram group](https://t.me/spectersupport).
3743

38-
## Video Walkthrough
39-
![video](https://www.youtube.com/embed/v3SEp0SkOWs) [Watch here](https://www.youtube.com/watch?v=v3SEp0SkOWs)
44+
## Documentation and Video Walkthrough
45+
46+
* ![video](https://www.youtube.com/embed/v3SEp0SkOWs) [Watch here](https://www.youtube.com/watch?v=v3SEp0SkOWs)
47+
* [documentation](https://docs.specter.solutions/desktop/)
4048

4149
## Why?
4250

@@ -72,7 +80,7 @@ The easiest way to run Specter Desktop is by installing the Specter Desktop app,
7280
With this method, all you need to do is just download the right file for your operating system and install it like a normal desktop app (Debian buster is only [partially supported](https://github.com/cryptoadvance/specter-desktop/issues/769))
7381

7482
### Installing Specter from Pip
75-
* Specter requires Python version 3.7 to 3.9.
83+
* Specter requires Python version 3.9 to 3.10.
7684
* Bitcoin Core node should be at least v0.19+, better if it's the latest one from [bitcoincore.org](https://bitcoincore.org/en/download/).
7785
* HWI support requires `libusb`
7886
* Ubuntu/Debian: `sudo apt install libusb-1.0-0-dev libudev-dev python3-dev`

cypress.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"spec_fees.js",
1010
"spec_rescan.js",
1111
"spec_qr_signing.js",
12+
"spec_labeling.js",
1213
"spec_balances_amounts.js",
1314
"spec_wallet_send.js",
1415
"spec_wallet_utxo.js",

cypress/integration/spec_balances_amounts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ describe('Test the rendering of balances and amounts', () => {
7575
cy.get('#satoshis_hot_keys_hot_sign_btn').click()
7676
cy.get('#hot_enter_passphrase__submit').click()
7777
cy.get('#broadcast_local_btn').click()
78+
cy.visit("/")
7879
cy.selectWallet('Ghost wallet')
7980
// Once again because only once doesn't work for some stupid unknown reason
8081
cy.selectWallet('Ghost wallet')

cypress/integration/spec_configures_nodes.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ describe('Configuring nodes', () => {
55
cy.viewport(1200,660)
66
cy.visit('/')
77
cy.get('#node-switch-icon').click()
8-
cy.get('[href="/nodes/node/default/"]').first().click()
8+
cy.get('[data-cy="connect-new-node-btn"]').click()
9+
cy.get(':nth-child(6) > [href="/nodes/new_node/"]').click()
910
cy.get('#datadir-container').then(($datadir) => {
1011
cy.log($datadir)
1112
if (!Cypress.dom.isVisible($datadir)) {
1213
cy.get('.slider').click()
1314
}
1415
})
16+
cy.get('#name').type('Bitcoin Core')
1517
cy.get('.slider').click()
1618
cy.get('#username').clear()
1719
cy.get('#username').type("bitcoin")
@@ -46,7 +48,7 @@ describe('Configuring nodes', () => {
4648
cy.viewport(1200,660)
4749
cy.visit('/')
4850
cy.get('#node-switch-icon').click()
49-
cy.get('#btn_new_node').click()
51+
cy.get('[data-cy="connect-new-node-btn"]').click()
5052
cy.get('[href="/nodes/new_node/"]').click()
5153
cy.get('#name').clear()
5254
cy.get('#name').type("Elements Node")
@@ -83,7 +85,7 @@ describe('Configuring nodes', () => {
8385
cy.viewport(1200,660)
8486
cy.visit('/')
8587
cy.get('#node-switch-icon').click()
86-
cy.get('#default-select-node-form > .item > div').click()
88+
cy.contains('Bitcoin Core').click()
8789
})
8890

8991
})

0 commit comments

Comments
 (0)