From 1d1f3b1e8556d5d6d535fb7851e60ae546a0101e Mon Sep 17 00:00:00 2001 From: Federico Barbacovi Date: Wed, 7 May 2025 15:34:43 +0100 Subject: [PATCH 1/3] Create setup.py file --- README.md | 4 ++-- pyproject.toml | 4 +++- setup.py | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 setup.py diff --git a/README.md b/README.md index 97c3974..a3b0d84 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,10 @@ python --version ## Installation -After cloning the repository, you can install all the dependencies with +After cloning the repository, you can install it with ```bash -pip install -r requirements.txt +pip install -e . ``` ## Getting started diff --git a/pyproject.toml b/pyproject.toml index a506bb3..4765fa8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,13 @@ build-backend = "setuptools.build_meta" [project] name = "zkscript" version = "0.0.1" +description = "A package to generate complex Bitcoin Scripts" +requires-python = ">=3.12" dependencies = [ "tx_engine >= 0.5.4", "requests >= 2.32.3", "python-bitcoinrpc >= 1.0", - "elliptic_curves_package @ git+https://github.com/nchain-innovation/elliptic_curves_package.git@v0.1.0#egg=elliptic_curves", + "elliptic_curves @ git+https://github.com/nchain-innovation/elliptic_curves_package.git@v0.1.0#egg=elliptic_curves", ] [pytest] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..738e886 --- /dev/null +++ b/setup.py @@ -0,0 +1,15 @@ +from setuptools import setup, find_packages + +setup( + name="zkscript_package", + version="0.1.0", + description="A package to generate complex Bitcoin Scripts", + url="https://github.com/yourusername/zkscript_package", + packages=find_packages(where="src"), + package_dir={"": "src"}, + classifiers=[ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + ], + python_requires=">=3.12", +) From 8378dcae1102bd3533e743d2d25d06a86fe5550e Mon Sep 17 00:00:00 2001 From: Federico Barbacovi Date: Wed, 7 May 2025 15:38:25 +0100 Subject: [PATCH 2/3] Fix readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a3b0d84..d3f7518 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ python --version After cloning the repository, you can install it with ```bash +pip install -r requirements.txt pip install -e . ``` From ee69dd161a85d651a9b5e786a6d42a90407f6b1a Mon Sep 17 00:00:00 2001 From: Federico Barbacovi Date: Wed, 7 May 2025 16:23:07 +0100 Subject: [PATCH 3/3] Remove deps from pyproject --- pyproject.toml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4765fa8..13c7348 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,12 +7,6 @@ name = "zkscript" version = "0.0.1" description = "A package to generate complex Bitcoin Scripts" requires-python = ">=3.12" -dependencies = [ - "tx_engine >= 0.5.4", - "requests >= 2.32.3", - "python-bitcoinrpc >= 1.0", - "elliptic_curves @ git+https://github.com/nchain-innovation/elliptic_curves_package.git@v0.1.0#egg=elliptic_curves", -] [pytest] testpaths = ["tests"]