From b3ddf43285a659047b954f26e2889960b39aeb1b Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 1 Mar 2022 12:09:22 +0300 Subject: [PATCH] ci: install extra requirements --- .drone.yml | 5 ++++- .gitignore | 2 +- README.md | 4 ++-- poetry.lock | 6 +++--- pyproject.toml | 4 +++- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 214d844..f3792ba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: commands: # Install dependencies - pip install poetry - - poetry install + - poetry install -E eth - poetry run pylint cic --fail-under=8.00 - poetry run pytest environment: @@ -25,6 +25,9 @@ steps: path: /root/.cache/pypoetry - name: pip_cache path: /root/.cache/pip + when: + event: + - push - name: publish image: python:3.8 commands: diff --git a/.gitignore b/.gitignore index 451613e..db4e97e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__ *.pyc *.egg-info .venv -build +build/ .vscode .idea contracts diff --git a/README.md b/README.md index a86d19a..7b17e22 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ CIC-CLI provides tooling to generate and publish metadata in relation to token deployments. ```shell -pip install --extra-index-url https://pip.grassrootseconomics.net cic +pip install --extra-index-url https://pip.grassrootseconomics.net cic[eth] ``` ## Usage @@ -51,7 +51,7 @@ below are limited to the context of the EVM. ### Setup ``` - poetry install + poetry install -E eth ``` ### Running the CLI diff --git a/poetry.lock b/poetry.lock index eca897d..2a8fa48 100644 --- a/poetry.lock +++ b/poetry.lock @@ -363,7 +363,7 @@ reference = "pypi_" [[package]] name = "confini" -version = "0.5.5" +version = "0.5.7" description = "Parse, verify and merge all ini files in a single directory" category = "main" optional = false @@ -664,7 +664,7 @@ reference = "grassroots_" [[package]] name = "eth-token-index" -version = "0.2.4.linux-x86_64" +version = "0.2.4" description = "Token symbol to address unique index" category = "main" optional = true @@ -1956,7 +1956,7 @@ eth = ["chainlib-eth", "eth-token-index", "eth-address-index", "okota", "cic_eth [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "2f7c01af1a14bcfeedf238b5ac7135e304a9fe162d27ee0638d5551467979be6" +content-hash = "aeaba6fb1c3ad6d40f16cc9302ecac21fd7dbb50af085dc108c7ada2cf308067" [metadata.files] asn1crypto = [] diff --git a/pyproject.toml b/pyproject.toml index 8b63011..beb278b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,10 +32,12 @@ cic = 'cic.runnable.cic_cmd:main' [[tool.poetry.source]] name = "grassroots_" url = "https://pip.grassrootseconomics.net/" +default = true [[tool.poetry.source]] name = "pypi_" url = "https://pypi.org/simple/" +secondary = true [tool.poetry.dependencies] python = "^3.8" @@ -46,7 +48,7 @@ chainlib = "~0.0.17" cbor2 = "5.4.1" chainlib-eth = { version = "~0.0.25", optional = true } -eth-token-index = { version = "~0.2.4", optional = true } +eth-token-index = { version = "0.2.4", optional = true } eth-address-index = { version = "~0.2.4", optional = true } okota = { version = "~0.2.5", optional = true } cic_eth_registry = { version = "~0.6.6", optional = true }