ci: install extra requirements
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
William Luke 2022-03-01 12:09:22 +03:00
parent ed7f3eeff5
commit b3ddf43285
5 changed files with 13 additions and 8 deletions

View File

@ -14,7 +14,7 @@ steps:
commands: commands:
# Install dependencies # Install dependencies
- pip install poetry - pip install poetry
- poetry install - poetry install -E eth
- poetry run pylint cic --fail-under=8.00 - poetry run pylint cic --fail-under=8.00
- poetry run pytest - poetry run pytest
environment: environment:
@ -25,6 +25,9 @@ steps:
path: /root/.cache/pypoetry path: /root/.cache/pypoetry
- name: pip_cache - name: pip_cache
path: /root/.cache/pip path: /root/.cache/pip
when:
event:
- push
- name: publish - name: publish
image: python:3.8 image: python:3.8
commands: commands:

2
.gitignore vendored
View File

@ -2,7 +2,7 @@ __pycache__
*.pyc *.pyc
*.egg-info *.egg-info
.venv .venv
build build/
.vscode .vscode
.idea .idea
contracts contracts

View File

@ -6,7 +6,7 @@ CIC-CLI provides tooling to generate and publish metadata in relation to
token deployments. token deployments.
```shell ```shell
pip install --extra-index-url https://pip.grassrootseconomics.net cic pip install --extra-index-url https://pip.grassrootseconomics.net cic[eth]
``` ```
## Usage ## Usage
@ -51,7 +51,7 @@ below are limited to the context of the EVM.
### Setup ### Setup
``` ```
poetry install poetry install -E eth
``` ```
### Running the CLI ### Running the CLI

6
poetry.lock generated
View File

@ -363,7 +363,7 @@ reference = "pypi_"
[[package]] [[package]]
name = "confini" name = "confini"
version = "0.5.5" version = "0.5.7"
description = "Parse, verify and merge all ini files in a single directory" description = "Parse, verify and merge all ini files in a single directory"
category = "main" category = "main"
optional = false optional = false
@ -664,7 +664,7 @@ reference = "grassroots_"
[[package]] [[package]]
name = "eth-token-index" name = "eth-token-index"
version = "0.2.4.linux-x86_64" version = "0.2.4"
description = "Token symbol to address unique index" description = "Token symbol to address unique index"
category = "main" category = "main"
optional = true optional = true
@ -1956,7 +1956,7 @@ eth = ["chainlib-eth", "eth-token-index", "eth-address-index", "okota", "cic_eth
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.8" python-versions = "^3.8"
content-hash = "2f7c01af1a14bcfeedf238b5ac7135e304a9fe162d27ee0638d5551467979be6" content-hash = "aeaba6fb1c3ad6d40f16cc9302ecac21fd7dbb50af085dc108c7ada2cf308067"
[metadata.files] [metadata.files]
asn1crypto = [] asn1crypto = []

View File

@ -32,10 +32,12 @@ cic = 'cic.runnable.cic_cmd:main'
[[tool.poetry.source]] [[tool.poetry.source]]
name = "grassroots_" name = "grassroots_"
url = "https://pip.grassrootseconomics.net/" url = "https://pip.grassrootseconomics.net/"
default = true
[[tool.poetry.source]] [[tool.poetry.source]]
name = "pypi_" name = "pypi_"
url = "https://pypi.org/simple/" url = "https://pypi.org/simple/"
secondary = true
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "^3.8"
@ -46,7 +48,7 @@ chainlib = "~0.0.17"
cbor2 = "5.4.1" cbor2 = "5.4.1"
chainlib-eth = { version = "~0.0.25", optional = true } 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 } eth-address-index = { version = "~0.2.4", optional = true }
okota = { version = "~0.2.5", optional = true } okota = { version = "~0.2.5", optional = true }
cic_eth_registry = { version = "~0.6.6", optional = true } cic_eth_registry = { version = "~0.6.6", optional = true }