chia-dev-tools 1.2.0__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. chia_dev_tools-1.2.0/.github/workflows/publish-to-test-pypi.yml → chia_dev_tools-1.2.2/.github/workflows/publish-to-pypi.yml +16 -8
  2. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/workflows/run-test-suite.yml +4 -11
  3. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/workflows/test-blockchain-main.yml +1 -1
  4. chia_dev_tools-1.2.2/.isort.cfg +5 -0
  5. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.pre-commit-config.yaml +6 -3
  6. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/PKG-INFO +1 -1
  7. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/activated.py +2 -0
  8. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/__init__.py +2 -0
  9. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/chia_inspect.py +6 -1
  10. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/cli.py +2 -0
  11. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/clsp.py +3 -1
  12. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/rpc.py +2 -0
  13. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/util.py +2 -0
  14. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/drivers/piggybank_drivers.py +2 -0
  15. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/tests/test_piggybank.py +2 -0
  16. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/test/__init__.py +2 -0
  17. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/test/test_skeleton.py +2 -0
  18. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/util/keys.py +2 -0
  19. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/util/load_clvm.py +2 -0
  20. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/PKG-INFO +1 -1
  21. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/SOURCES.txt +2 -1
  22. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/requires.txt +2 -2
  23. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/setup.py +4 -2
  24. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/build-init-files.py +2 -0
  25. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/test_cdv.py +2 -0
  26. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/test_clsp.py +2 -0
  27. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/test_inspect.py +2 -0
  28. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.flake8 +0 -0
  29. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/actions/install/action.yml +0 -0
  30. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/actions/install/install.ps1 +0 -0
  31. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/actions/install/install.sh +0 -0
  32. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/workflows/codeql-analysis.yml +0 -0
  33. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/workflows/precommit.yml +0 -0
  34. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.github/workflows/super-linter.yml +0 -0
  35. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.gitignore +0 -0
  36. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/.markdown-lint.yml +0 -0
  37. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/LICENSE +0 -0
  38. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/README.md +0 -0
  39. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/activated.ps1 +0 -0
  40. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/activated.sh +0 -0
  41. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/__init__.py +0 -0
  42. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/condition_codes.clib +0 -0
  43. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/curry_and_treehash.clib +0 -0
  44. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/sha256tree.clib +0 -0
  45. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/singleton_truths.clib +0 -0
  46. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/clibs/utility_macros.clib +0 -0
  47. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/cmds/__init__.py +0 -0
  48. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/__init__.py +0 -0
  49. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/clsp/__init__.py +0 -0
  50. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/clsp/piggybank.clsp +0 -0
  51. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/clsp/piggybank.clsp.hex +0 -0
  52. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/clvm/__init__.py +0 -0
  53. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/examples/drivers/__init__.py +0 -0
  54. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/cdv/util/__init__.py +0 -0
  55. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/dependency_links.txt +0 -0
  56. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/entry_points.txt +0 -0
  57. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/chia_dev_tools.egg-info/top_level.txt +0 -0
  58. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/mypy.ini +0 -0
  59. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/pyproject.toml +0 -0
  60. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/setup.cfg +0 -0
  61. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coinrecords/coinrecord.hex +0 -0
  62. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coinrecords/coinrecord.json +0 -0
  63. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coinrecords/coinrecord_invalid.json +0 -0
  64. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coinrecords/coinrecord_metadata.json +0 -0
  65. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coins/coin.json +0 -0
  66. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coins/coin_invalid.json +0 -0
  67. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/coins/coin_metadata.json +0 -0
  68. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spendbundles/spendbundle.hex +0 -0
  69. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spendbundles/spendbundle.json +0 -0
  70. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spendbundles/spendbundle_invalid.json +0 -0
  71. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spendbundles/spendbundle_metadata.json +0 -0
  72. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spends/spend.hex +0 -0
  73. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spends/spend.json +0 -0
  74. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spends/spend_2.json +0 -0
  75. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spends/spend_invalid.json +0 -0
  76. {chia_dev_tools-1.2.0 → chia_dev_tools-1.2.2}/tests/cmds/object_files/spends/spend_metadata.json +0 -0
@@ -1,36 +1,42 @@
1
- # adapted from https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2
-
3
1
  name: Publish Python distributions to PyPI and TestPyPI
4
2
 
5
3
  on:
6
4
  release:
7
5
  types: [published]
8
6
 
7
+ permissions:
8
+ contents: read
9
+ id-token: write
10
+
9
11
  jobs:
10
12
  build-n-publish:
11
13
  name: Build and publish Python distributions to PyPI and TestPyPI
12
14
  runs-on: ubuntu-20.04
13
-
14
15
  steps:
15
16
  - uses: actions/checkout@v3
16
17
  with:
17
18
  fetch-depth: 0
19
+
18
20
  - run: |
19
21
  git fetch origin +refs/tags/*:refs/tags/*
22
+
20
23
  - name: Set Job Env
21
24
  uses: Chia-Network/actions/setjobenv@main
22
25
  env:
23
26
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
- - name: Set up Python 3.7
27
+
28
+ - name: Set up Python 3.8
25
29
  uses: actions/setup-python@v4
26
30
  with:
27
- python-version: "3.7"
31
+ python-version: "3.8"
32
+
28
33
  - name: Install build tools (pep517 compatible)
29
34
  run: >-
30
35
  python -m
31
36
  pip install ."[dev]"
32
37
  build
33
38
  --user
39
+
34
40
  - name: Build a binary wheel and a source tarball
35
41
  run: >-
36
42
  python -m
@@ -42,11 +48,13 @@ jobs:
42
48
  if: env.PRE_RELEASE == 'true'
43
49
  uses: pypa/gh-action-pypi-publish@release/v1
44
50
  with:
45
- skip_existing: true
46
- password: ${{ secrets.test_pypi_password }}
47
51
  repository_url: https://test.pypi.org/legacy/
52
+ packages-dir: dist/
53
+ skip-existing: true
54
+
48
55
  - name: Publish distribution to PyPI
49
56
  if: env.FULL_RELEASE == 'true'
50
57
  uses: pypa/gh-action-pypi-publish@release/v1
51
58
  with:
52
- password: ${{ secrets.pypi_password }}
59
+ packages-dir: dist/
60
+ skip-existing: true
@@ -43,17 +43,14 @@ jobs:
43
43
  runs-on:
44
44
  intel: [windows-latest]
45
45
  python:
46
- - major-dot-minor: '3.7'
47
- matrix: '3.7'
48
46
  - major-dot-minor: '3.8'
49
47
  matrix: '3.8'
50
48
  - major-dot-minor: '3.9'
51
49
  matrix: '3.9'
52
50
  - major-dot-minor: '3.10'
53
51
  matrix: '3.10'
54
- # TODO: add back once we bump have a blockchain dep that supports 3.11
55
- # - major-dot-minor: '3.11'
56
- # matrix: '3.11'
52
+ - major-dot-minor: '3.11'
53
+ matrix: '3.11'
57
54
  arch:
58
55
  - name: ARM
59
56
  matrix: arm
@@ -64,10 +61,6 @@ jobs:
64
61
  matrix: windows
65
62
  arch:
66
63
  matrix: arm
67
- - os:
68
- matrix: macos
69
- python:
70
- matrix: '3.7'
71
64
  - os:
72
65
  matrix: macos
73
66
  python:
@@ -104,7 +97,7 @@ jobs:
104
97
  . ./venv/bin/activate
105
98
  pip install ."[dev]"
106
99
  ./venv/bin/chia init
107
- ./venv/bin/py.test tests/ cdv/examples/tests -s -v --durations 0
100
+ ./venv/bin/pytest tests/ cdv/examples/tests -s -v --durations 0
108
101
 
109
102
  - name: Test code with pytest
110
103
  if: runner.os == 'Windows'
@@ -112,4 +105,4 @@ jobs:
112
105
  run: |
113
106
  pip install .[dev]
114
107
  chia init
115
- py.test tests\ cdv\examples\tests -s -v --durations 0
108
+ pytest tests\ cdv\examples\tests -s -v --durations 0
@@ -42,4 +42,4 @@ jobs:
42
42
  sed -i 's/chia-blockchain.*/chia-blockchain @ git+https:\/\/github.com\/Chia-Network\/chia-blockchain.git@main\",/g' setup.py
43
43
  pip install ."[dev]"
44
44
  ./venv/bin/chia init
45
- ./venv/bin/py.test tests/ cdv/examples/tests -s -v --durations 0
45
+ ./venv/bin/pytest tests/ cdv/examples/tests -s -v --durations 0
@@ -0,0 +1,5 @@
1
+ [settings]
2
+ line_length = 120
3
+ profile=black
4
+ skip_gitignore=true
5
+ add_imports=from __future__ import annotations
@@ -38,11 +38,14 @@ repos:
38
38
  - id: check-merge-conflict
39
39
  - id: check-ast
40
40
  - id: debug-statements
41
- - repo: https://github.com/psf/black
42
- rev: 21.12b0
41
+ - repo: local
43
42
  hooks:
44
43
  - id: black
45
- additional_dependencies: ['click<8.1']
44
+ name: black
45
+ entry: black
46
+ language: system
47
+ require_serial: true
48
+ types_or: [python, pyi]
46
49
  - repo: https://github.com/pycqa/flake8
47
50
  rev: 6.0.0
48
51
  hooks:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chia_dev_tools
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Chia development commands
5
5
  Home-page: https://github.com/Chia-Network
6
6
  Author: Quexington
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
+ from __future__ import annotations
4
+
3
5
  import os
4
6
  import pathlib
5
7
  import subprocess
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pkg_resources import DistributionNotFound, get_distribution
2
4
 
3
5
  try:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import json
2
4
  import sys
3
5
  from pprint import pprint
@@ -80,6 +82,7 @@ def inspect_callback(
80
82
 
81
83
  # Utility functions
82
84
 
85
+
83
86
  # If there's only one key, return the data on that key instead (for things like {'spend_bundle': {...}})
84
87
  def json_and_key_strip(input: str) -> Dict:
85
88
  json_dict: Dict = json.loads(input)
@@ -315,6 +318,7 @@ def do_inspect_coin_spend_cmd(
315
318
  INFINITE_COST,
316
319
  height=DEFAULT_CONSTANTS.SOFT_FORK2_HEIGHT, # so that all opcodes are available
317
320
  mempool_mode=True,
321
+ constants=DEFAULT_CONSTANTS,
318
322
  )
319
323
  cost: int = npc_result.cost
320
324
  if ignore_byte_cost:
@@ -403,6 +407,7 @@ def do_inspect_spend_bundle_cmd(
403
407
  INFINITE_COST,
404
408
  height=DEFAULT_CONSTANTS.SOFT_FORK2_HEIGHT, # so that all opcodes are available
405
409
  mempool_mode=True,
410
+ constants=DEFAULT_CONSTANTS,
406
411
  )
407
412
  cost: int = npc_result.cost
408
413
  if kwargs["ignore_byte_cost"]:
@@ -438,7 +443,7 @@ def do_inspect_spend_bundle_cmd(
438
443
  ]
439
444
  for pk, msg in pkm_pairs_for_conditions_dict(
440
445
  conditions_dict,
441
- coin_spend.coin.name(),
446
+ coin_spend.coin,
442
447
  hexstr_to_bytes(genesis_challenge),
443
448
  ):
444
449
  if str(pk) in pkm_dict:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import shutil
3
5
  from pathlib import Path
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import shutil
3
5
  from pathlib import Path
@@ -156,7 +158,7 @@ def uncurry_cmd(program: str, treehash: bool, dump: bool):
156
158
  )
157
159
  def cat_puzzle_hash(inner_puzzlehash: str, tail_hash: str):
158
160
  from chia.wallet.cat_wallet.cat_constants import DEFAULT_CATS
159
- from chia.wallet.puzzles.cat_loader import CAT_MOD
161
+ from chia.wallet.cat_wallet.cat_utils import CAT_MOD
160
162
 
161
163
  default_cats_by_symbols = {cat["symbol"]: cat for cat in DEFAULT_CATS.values()}
162
164
  if tail_hash in default_cats_by_symbols:
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import asyncio
2
4
  import json
3
5
  from pprint import pprint
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import re
2
4
  from typing import Dict, Iterable, List, Union
3
5
 
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pathlib import Path
2
4
  from typing import List
3
5
 
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from typing import Dict, List, Optional
2
4
 
3
5
  import pytest
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import binascii
2
4
  import datetime
3
5
  import struct
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import pytest
2
4
  import pytest_asyncio
3
5
 
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from typing import Dict, List
2
4
 
3
5
  from blspy import AugSchemeMPL, BasicSchemeMPL, G1Element, G2Element, PrivateKey
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import importlib
2
4
  import inspect
3
5
  import os
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chia-dev-tools
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Chia development commands
5
5
  Home-page: https://github.com/Chia-Network
6
6
  Author: Quexington
@@ -1,5 +1,6 @@
1
1
  .flake8
2
2
  .gitignore
3
+ .isort.cfg
3
4
  .markdown-lint.yml
4
5
  .pre-commit-config.yaml
5
6
  LICENSE
@@ -15,7 +16,7 @@ setup.py
15
16
  .github/actions/install/install.sh
16
17
  .github/workflows/codeql-analysis.yml
17
18
  .github/workflows/precommit.yml
18
- .github/workflows/publish-to-test-pypi.yml
19
+ .github/workflows/publish-to-pypi.yml
19
20
  .github/workflows/run-test-suite.yml
20
21
  .github/workflows/super-linter.yml
21
22
  .github/workflows/test-blockchain-main.yml
@@ -3,19 +3,19 @@ pytest
3
3
  pytest-asyncio
4
4
  pytimeparse
5
5
  anyio
6
- chia-blockchain==1.8.0
6
+ chia-blockchain==2.0.0
7
7
 
8
8
  [dev]
9
9
  anyio
10
10
  flake8
11
11
  mypy
12
+ black==23.7.0
12
13
  types-aiofiles
13
14
  types-click
14
15
  types-cryptography
15
16
  types-pkg_resources
16
17
  types-pyyaml
17
18
  types-setuptools
18
- black==21.12b0
19
19
  isort
20
20
  pre-commit
21
21
  pylint
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
 
3
+ from __future__ import annotations
4
+
3
5
  from setuptools import find_packages, setup
4
6
 
5
7
  with open("README.md", "rt") as fh:
@@ -11,20 +13,20 @@ dependencies = [
11
13
  "pytest-asyncio",
12
14
  "pytimeparse",
13
15
  "anyio",
14
- "chia-blockchain==1.8.0",
16
+ "chia-blockchain==2.0.0",
15
17
  ]
16
18
 
17
19
  dev_dependencies = [
18
20
  "anyio",
19
21
  "flake8",
20
22
  "mypy",
23
+ "black==23.7.0",
21
24
  "types-aiofiles",
22
25
  "types-click",
23
26
  "types-cryptography",
24
27
  "types-pkg_resources",
25
28
  "types-pyyaml",
26
29
  "types-setuptools",
27
- "black==21.12b0",
28
30
  "isort",
29
31
  "pre-commit",
30
32
  "pylint",
@@ -9,6 +9,8 @@
9
9
  #
10
10
  # Note: This script is run in a `pre-commit` hook (which runs on CI) to make sure we don't miss out any folder.
11
11
 
12
+ from __future__ import annotations
13
+
12
14
  import logging
13
15
  import pathlib
14
16
  import sys
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from pathlib import Path
2
4
 
3
5
  from click.testing import CliRunner, Result
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import shutil
3
5
  from pathlib import Path
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import json
2
4
  from pathlib import Path
3
5
  from typing import Dict, List
File without changes
File without changes
File without changes
File without changes
File without changes