Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1a42f227c7 | ||
3cde79ef8f | |||
|
ab9f996174 | ||
de78753675 |
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
<!--next-version-placeholder-->
|
<!--next-version-placeholder-->
|
||||||
|
|
||||||
|
## v0.5.5 (2023-03-24)
|
||||||
|
### Fix
|
||||||
|
* Lock erc20-demurrage-token ([`3cde79e`](https://git.grassecon.net/cicnet/cic-cli/commit/3cde79ef8fb77a6b03454e675568834e0ab4ba80))
|
||||||
|
|
||||||
|
## v0.5.4 (2022-07-05)
|
||||||
|
### Fix
|
||||||
|
* Pass headers through KeyedWriterFactory ([`de78753`](https://git.grassecon.net/cicnet/cic-cli/commit/de78753675242dd253359a5a5601d9062d81f0ee))
|
||||||
|
|
||||||
## v0.5.3 (2022-07-05)
|
## v0.5.3 (2022-07-05)
|
||||||
### Fix
|
### Fix
|
||||||
* Add auth headers to HTTPWriter ([`4eda0fb`](https://git.grassecon.net/cicnet/cic-cli/commit/4eda0fb5cc2c41a735619dc3e34f21c4e27fd112))
|
* Add auth headers to HTTPWriter ([`4eda0fb`](https://git.grassecon.net/cicnet/cic-cli/commit/4eda0fb5cc2c41a735619dc3e34f21c4e27fd112))
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = "0.5.3"
|
__version__ = "0.5.5"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
GITABLE_CONTRACT_URL = "https://gitlab.com/cicnet/eth-erc20/-/raw/master/python/giftable_erc20_token/data/GiftableToken"
|
GITABLE_CONTRACT_URL = "https://gitlab.com/cicnet/eth-erc20/-/raw/master/python/giftable_erc20_token/data/GiftableToken"
|
||||||
DMR_CONTRACT_URL = "https://gitlab.com/cicnet/erc20-demurrage-token/-/raw/master/python/erc20_demurrage_token/data/DemurrageTokenSingleNocap"
|
DMR_CONTRACT_URL = "https://gitlab.com/cicnet/erc20-demurrage-token/-/raw/v0.1.1/python/erc20_demurrage_token/data/DemurrageTokenSingleNocap"
|
||||||
|
|
||||||
CONTRACT_URLS = [
|
CONTRACT_URLS = [
|
||||||
{
|
{
|
||||||
|
@ -52,7 +52,7 @@ class HTTPWriter(OutputWriter):
|
|||||||
path = self.path
|
path = self.path
|
||||||
if k is not None:
|
if k is not None:
|
||||||
path = os.path.join(path, k)
|
path = os.path.join(path, k)
|
||||||
logg.debug(f"http writer post {path} \n key: {k}, value: {v}")
|
logg.debug(f"HTTPWriter POST {path} data: {v}, headers: {self.headers}")
|
||||||
rq = urllib.request.Request(path, method="POST", data=v, headers=self.headers)
|
rq = urllib.request.Request(path, method="POST", data=v, headers=self.headers)
|
||||||
r = urllib.request.urlopen(rq)
|
r = urllib.request.urlopen(rq)
|
||||||
logg.info(f"http writer submitted at {r.read()}")
|
logg.info(f"http writer submitted at {r.read()}")
|
||||||
@ -85,13 +85,15 @@ class KeyedWriterFactory:
|
|||||||
logg.debug(f"adding key {k} t keyed writer factory")
|
logg.debug(f"adding key {k} t keyed writer factory")
|
||||||
self.x[k] = v
|
self.x[k] = v
|
||||||
|
|
||||||
def new(self, path=None, *_args, **_kwargs):
|
def new(self, path=None, headers: Dict[str, str] = None, *_args, **_kwargs):
|
||||||
writer_keyed = None
|
writer_keyed = None
|
||||||
writer_immutable = None
|
writer_immutable = None
|
||||||
if self.key_writer_constructor is not None:
|
if self.key_writer_constructor is not None:
|
||||||
writer_keyed = self.key_writer_constructor(path, **self.x)
|
writer_keyed = self.key_writer_constructor(path, **self.x)
|
||||||
if self.immutable_writer_constructor is not None:
|
if self.immutable_writer_constructor is not None:
|
||||||
writer_immutable = self.immutable_writer_constructor(path, **self.x)
|
writer_immutable = self.immutable_writer_constructor(
|
||||||
|
path, headers, **self.x
|
||||||
|
)
|
||||||
return KeyedWriter(writer_keyed, writer_immutable)
|
return KeyedWriter(writer_keyed, writer_immutable)
|
||||||
|
|
||||||
|
|
||||||
|
4286
poetry.lock
generated
4286
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "cic-cli"
|
name = "cic-cli"
|
||||||
version = "0.5.3"
|
version = "0.5.5"
|
||||||
description = "Generic cli tooling for the CIC token network"
|
description = "Generic cli tooling for the CIC token network"
|
||||||
authors = [
|
authors = [
|
||||||
"Louis Holbrook <dev@holbrook.no>",
|
"Louis Holbrook <dev@holbrook.no>",
|
||||||
@ -32,12 +32,14 @@ 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 = false
|
||||||
secondary = true
|
secondary = true
|
||||||
|
|
||||||
[[tool.poetry.source]]
|
[[tool.poetry.source]]
|
||||||
name = "pypi_"
|
name = "pypi_"
|
||||||
url = "https://pypi.org/simple/"
|
url = "https://pypi.org/simple/"
|
||||||
default = true
|
default = true
|
||||||
|
secondary = false
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
|
Loading…
Reference in New Issue
Block a user