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 = {}
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

View File

@ -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,11 +23,10 @@ format = "ruff format nvexpo"
linter = "ruff nvexpo"
typing = "mypy nvexpo"
[tool.ruff]
target-version = "py38"
line-length=120
indent-width=4
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = ["ALL"]

View File

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