-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update our fork with upstream version 3.13.4
* Fix: Restore __init__.py to fork version * Fix: Broken imports * feat: add a ci file to run pytests * fix: add needed pysodium dependency --------- Co-authored-by: Laurent Peuch <[email protected]>
- Loading branch information
1 parent
be97c24
commit 1beb0ea
Showing
4 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test/Coverage with Python | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.12 | ||
id: setup-python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install needed debian packages | ||
run: sudo apt install libsodium-dev libgmp-dev | ||
|
||
- name: Install project | ||
run: pip install -e . | ||
|
||
- name: Install pytest and pytest-cov | ||
run: pip install pytest pytest-cov | ||
|
||
- name: Run tests | ||
run: pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,7 @@ | ||
""" | ||
Welcome to PyTezos! | ||
from importlib.metadata import version | ||
|
||
To start playing with the Tezos blockchain you need to get a PyTezosClient instance. | ||
Just type: | ||
# Change here if project is renamed and does not equal the package name | ||
dist_name = "aleph-pytezos" | ||
__version__ = version(dist_name) | ||
|
||
>>> from pytezos import pytezos | ||
>>> pytezos | ||
And follow the interactive documentation. | ||
""" | ||
|
||
import importlib.metadata | ||
|
||
from pytezos.client import PyTezosClient | ||
from pytezos.contract.interface import Contract | ||
from pytezos.contract.interface import ContractInterface | ||
from pytezos.crypto.key import Key | ||
from pytezos.logging import logger | ||
from pytezos.michelson.forge import forge_micheline | ||
from pytezos.michelson.forge import unforge_micheline | ||
from pytezos.michelson.format import micheline_to_michelson | ||
from pytezos.michelson.micheline import MichelsonRuntimeError | ||
from pytezos.michelson.parse import michelson_to_micheline | ||
from pytezos.michelson.types.base import MichelsonType | ||
from pytezos.michelson.types.base import Undefined | ||
from pytezos.michelson.types.core import Unit | ||
|
||
__version__ = importlib.metadata.version('pytezos') | ||
|
||
pytezos = PyTezosClient() | ||
__all__ = ["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters