Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
51fdecc
chore: change build-backend to hatchling
aekasitt Jun 19, 2025
624f5c9
chore: alphabetize project attributes
aekasitt Jun 19, 2025
01554ec
chore: indent by two double-space between section
aekasitt Jun 19, 2025
5439778
chore: consolidate requirements; attach lock file
aekasitt Jun 19, 2025
2f956e7
chore: rm ignore rules for other package managers
aekasitt Jun 21, 2025
6b7d6e4
chore: remove ignore rule for pip-log
aekasitt Jun 21, 2025
d182898
chore: remove ignore rules for pyinstaller
aekasitt Jun 21, 2025
5593bcc
chore: remove ignore rules for web stuff
aekasitt Jun 21, 2025
06b8a8a
chore: remove ignore rules for notebooks
aekasitt Jun 21, 2025
e9c01e6
chore: remove ignore rules for pybuilder
aekasitt Jun 21, 2025
3c02d8d
chore: remove ignore rules for celery and sage
aekasitt Jun 21, 2025
30dde6f
chore: remove ignore rules for unused typecheckers
aekasitt Jun 21, 2025
d8b0ff3
chore: combine ignore rules for editor specific
aekasitt Jun 21, 2025
619bd1a
chore: consolidate pytest options in pyproject
aekasitt Jun 21, 2025
ac76c9a
chore: rename git-included `.env` to `.env.example`
aekasitt Jun 21, 2025
d52874d
refactor: change python flat layout to src layout
aekasitt Jun 21, 2025
9f21f4e
chore: remove `setup.py` when built with hatchling
aekasitt Jun 21, 2025
9055a47
chore: add whitespace between package name and ver
aekasitt Jun 21, 2025
de36e10
chore: consolidate linting rule under pyproject
aekasitt Jun 21, 2025
835a347
chore: add ignore rule set for report.md
aekasitt Jun 21, 2025
03cebc1
docs: break sections for passerby and contributors
aekasitt Jun 21, 2025
64a38ec
cicd: use uv as version and package manager
aekasitt Jun 22, 2025
73c5a59
docs: assume all commands are being run from root
aekasitt Jun 22, 2025
663dc8c
fix: refactor source to sh
aekasitt Jul 9, 2025
ea3eed9
fix(ci): activate virtual env on sync and test
aekasitt Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

33 changes: 15 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,28 @@ jobs:
- name: Run MATT-enabled bitcoind
run: |
bitcoind -regtest --daemon
- name: Set up dependencies
run: |
apt-get update
apt-get install -y libssl-dev libffi-dev
apt-get install -y python3-venv
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Clone
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.10
- name: Set up virtual environment
run: uv venv --python 3.10
- name: Load development dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
source .venv/bin/activate
uv sync --dev
deactivate
shell: bash
- name: Create test wallet
run: bash ./examples/init.sh
run: ./examples/init.sh
shell: bash
- name: Run tests and capture output
run: |
source venv/bin/activate
source .venv/bin/activate
pytest -vv
deactivate
shell: bash
- name: Upload test output as artifact
uses: actions/upload-artifact@v4
Expand Down
90 changes: 6 additions & 84 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ share/python-wheels/
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
Expand All @@ -55,70 +45,12 @@ cover/
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
Expand All @@ -143,22 +75,12 @@ venv.bak/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# editor settings
.ignore
.idea
.vscode

# generated
examples/**/.cli-history

report.md
tests/graphs/**
Loading
Loading