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

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:
# 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:

2
.gitignore vendored
View File

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

View File

@ -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

6
poetry.lock generated
View File

@ -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 = []

View File

@ -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 }