From eb0b4d88b36c69b561febfa71fc28ff5c182bf6c Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 4 Mar 2026 11:50:11 -0800 Subject: [PATCH 1/7] fix dynamic versioning --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cbf48f9..340fc87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,10 @@ [build-system] requires = [ "setuptools>=80", - "setuptools_scm[toml]>=8", + "setuptools_scm>=8", "wheel" ] build-backend = "setuptools.build_meta" + +[project] +dynamic = ["version"] \ No newline at end of file From 141f828890e4ad9beebbee429d3248caaf89499c Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 4 Mar 2026 12:27:55 -0800 Subject: [PATCH 2/7] move away from setup.py to pyproject.toml --- pyproject.toml | 56 ++++++++++++++++++++++++++++++++++++++++++- setup.py | 64 -------------------------------------------------- 2 files changed, 55 insertions(+), 65 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 340fc87..32d623d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,4 +7,58 @@ requires = [ build-backend = "setuptools.build_meta" [project] -dynamic = ["version"] \ No newline at end of file +name = "chia_dev_tools" +description = "Chia development commands" +readme = "README.md" +requires-python = ">=3.10" +authors = [ + { name = "CNI", email = "hello@chia.net" }, +] +license = "Apache-2.0" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Topic :: Security :: Cryptography", +] +dynamic = ["version"] +dependencies = [ + "packaging", + "pytest", + "pytest-asyncio", + "pytimeparse", + "anyio", + "chia-blockchain==2.6.0", +] + +[project.optional-dependencies] +dev = [ + "anyio", + "mypy", + "ruff==0.14.6", + "types-aiofiles", + "types-click", + "types-cryptography", + "types-setuptools", + "types-pyyaml", + "pre-commit", +] + +[project.scripts] +cdv = "cdv.cmds.cli:main" + +[project.urls] +"Bug Reports" = "https://github.com/Chia-Network/chia-dev-tools" +Source = "https://github.com/Chia-Network/chia-dev-tools" +Homepage = "https://github.com/Chia-Network" + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +exclude = ["tests*"] + +[tool.setuptools.package-data] +"*" = ["*.clvm", "*.clvm.hex", "*.clib", "*.clsp", "*.clsp.hex"] + +[tool.setuptools_scm] \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 55e8c9a..0000000 --- a/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python - -from __future__ import annotations - -from setuptools import find_packages, setup - -with open("README.md") as fh: - long_description = fh.read() - -dependencies = [ - "packaging", - "pytest", - "pytest-asyncio", - "pytimeparse", - "anyio", - "chia-blockchain==2.6.0", -] - -dev_dependencies = [ - "anyio", - "mypy", - "ruff==0.14.6", - "types-aiofiles", - "types-click", - "types-cryptography", - "types-setuptools", - "types-pyyaml", - "types-setuptools", - "pre-commit", -] - -setup( - name="chia_dev_tools", - packages=find_packages(exclude=("tests",)), - author="Quexington", - entry_points={ - "console_scripts": ["cdv = cdv.cmds.cli:main"], - }, - package_data={ - "": ["*.clvm", "*.clvm.hex", "*.clib", "*.clsp", "*.clsp.hex"], - }, - author_email="m.hauff@chia.net", - setup_requires=["setuptools_scm"], - install_requires=dependencies, - url="https://github.com/Chia-Network", - license="https://opensource.org/licenses/Apache-2.0", - description="Chia development commands", - long_description=long_description, - long_description_content_type="text/markdown", - classifiers=[ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "License :: OSI Approved :: Apache Software License", - "Topic :: Security :: Cryptography", - ], - extras_require=dict( - dev=dev_dependencies, - ), - project_urls={ - "Bug Reports": "https://github.com/Chia-Network/chia-dev-tools", - "Source": "https://github.com/Chia-Network/chia-dev-tools", - }, -) From 8a8079526a71fa9dcd7caf2dc9f3ba1cba547930 Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 4 Mar 2026 12:32:06 -0800 Subject: [PATCH 3/7] add newline --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 32d623d..8674868 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,4 +61,4 @@ exclude = ["tests*"] [tool.setuptools.package-data] "*" = ["*.clvm", "*.clvm.hex", "*.clib", "*.clsp", "*.clsp.hex"] -[tool.setuptools_scm] \ No newline at end of file +[tool.setuptools_scm] From 10ec2710f047b3924863ff2c7156f4008f88d213 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:07:04 -0800 Subject: [PATCH 4/7] Update comment in pre-commit config file --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0dff098..e0b985b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Comment to force a cache miss +# Comment to force a cache miss again repos: - repo: local hooks: From 9d9ca34c2c4a100f0e042eba448da727977743d1 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:16:20 -0800 Subject: [PATCH 5/7] Downgrade pre-commit action version to v3.0.0 --- .github/workflows/precommit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 9bb7e9f..cedd030 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -69,6 +69,6 @@ jobs: with: development: true - - uses: pre-commit/action@v3.0.1 + - uses: pre-commit/action@v3.0.0 with: extra_args: --verbose --all-files From f66736fb4dc181a50bf8934dd1571dadef089ea2 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:20:13 -0800 Subject: [PATCH 6/7] Update comment for cache miss in config file --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0b985b..0dff098 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Comment to force a cache miss again +# Comment to force a cache miss repos: - repo: local hooks: From 4a7fa9163dad95ec1d0a556045f19e4c657b550f Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:20:37 -0800 Subject: [PATCH 7/7] Update pre-commit action to version 3.0.1 --- .github/workflows/precommit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index cedd030..9bb7e9f 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -69,6 +69,6 @@ jobs: with: development: true - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 with: extra_args: --verbose --all-files