Add params to be uploaded to pypi
parent
d97ead20df
commit
13226b9745
|
@ -32,7 +32,7 @@ def main() -> int:
|
|||
variables = {}
|
||||
for raw_var in raw_vars:
|
||||
if "=" not in raw_var:
|
||||
nvexpo.show_help("Use the syntax \"key=value\"")
|
||||
nvexpo.show_help('Use the syntax "key=value"')
|
||||
return 1
|
||||
try:
|
||||
key, value = raw_var.split("=", 1)
|
||||
|
@ -49,7 +49,7 @@ def main() -> int:
|
|||
nvexpo.show_help("Empty value")
|
||||
return 1
|
||||
if not re.match(CONSTS.VARNAME_PATTERN, key):
|
||||
nvexpo.show_help(f"\"{key}\" is not a valid name")
|
||||
nvexpo.show_help(f'"{key}" is not a valid name')
|
||||
return 1
|
||||
nvexpo.set_env(variables)
|
||||
return 0
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
[tool.poetry]
|
||||
name = "nvexpo"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = ""
|
||||
authors = ["kirbylife <kirbylife@protonmail.com>"]
|
||||
readme = "README.md"
|
||||
license = "MIT"
|
||||
repository = "https://git.kirbylife.dev/kirbylife/nvexpo"
|
||||
keywords = ["cli", "bash", "export", "env var"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
|
@ -20,7 +23,6 @@ format = "ruff format nvexpo"
|
|||
linter = "ruff nvexpo"
|
||||
typing = "mypy nvexpo"
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py38"
|
||||
line-length = 120
|
||||
|
|
Loading…
Reference in New Issue