Add params to be uploaded to pypi

main
kirbylife 2023-11-04 00:16:36 -06:00
parent d97ead20df
commit 13226b9745
3 changed files with 8 additions and 7 deletions

View File

@ -32,7 +32,7 @@ def main() -> int:
variables = {} variables = {}
for raw_var in raw_vars: for raw_var in raw_vars:
if "=" not in raw_var: if "=" not in raw_var:
nvexpo.show_help("Use the syntax \"key=value\"") nvexpo.show_help('Use the syntax "key=value"')
return 1 return 1
try: try:
key, value = raw_var.split("=", 1) key, value = raw_var.split("=", 1)
@ -49,7 +49,7 @@ def main() -> int:
nvexpo.show_help("Empty value") nvexpo.show_help("Empty value")
return 1 return 1
if not re.match(CONSTS.VARNAME_PATTERN, key): 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 return 1
nvexpo.set_env(variables) nvexpo.set_env(variables)
return 0 return 0

View File

@ -1,9 +1,12 @@
[tool.poetry] [tool.poetry]
name = "nvexpo" name = "nvexpo"
version = "0.1.0" version = "0.1.1"
description = "" description = ""
authors = ["kirbylife <kirbylife@protonmail.com>"] authors = ["kirbylife <kirbylife@protonmail.com>"]
readme = "README.md" readme = "README.md"
license = "MIT"
repository = "https://git.kirbylife.dev/kirbylife/nvexpo"
keywords = ["cli", "bash", "export", "env var"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "^3.8"
@ -20,7 +23,6 @@ format = "ruff format nvexpo"
linter = "ruff nvexpo" linter = "ruff nvexpo"
typing = "mypy nvexpo" typing = "mypy nvexpo"
[tool.ruff] [tool.ruff]
target-version = "py38" target-version = "py38"
line-length = 120 line-length = 120

View File

@ -1 +0,0 @@
HELLO=10