Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
with:
name: dist
path: dist/
retention-days: 5
retention-days: 5
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "shecan"
version = "0.4.2"
version = "0.4.3"
description = "The Shecan CLI is used to configure your DNS configuration based on Shecan website from the command line."
readme = "README.md"
authors = [
Expand Down Expand Up @@ -78,4 +78,4 @@ select = [
"PLR0904", # Ignores "Too many public methods"
"PLR0913", # Ignores "Too many arguments to function call"
"PLR0917", # Ignores "Too many positional arguments"
]
]
8 changes: 1 addition & 7 deletions src/shecan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
Shecan CLI
~~~~~~~~~~~~~~~~~~~~~
The Shecan CLI https://shecan.ir
"""

from .api import current_dns, list_dns, update
from .utils import get_shecan_ips as get_ips

Expand All @@ -14,4 +8,4 @@
"update",
]

version = "0.4.2"
version = "0.4.3"
6 changes: 0 additions & 6 deletions src/shecan/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
shecan.api
~~~~~~~~~~~~
This module implements Main API for shecan-cli project..
"""

import sys
from typing import NamedTuple

Expand Down
4 changes: 2 additions & 2 deletions src/shecan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def update_resolv_file(content: list[str]) -> None:
try:
shutil.copy(resolv_file, tmp_resolv_file)
except FileNotFoundError:
logger.warn(f"Resolv file not found ({resolv_file!s}).")
logger.warning(f"Resolv file not found ({resolv_file!s}).")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warn has been deprecated!

except OSError as e:
logger.error(
f"Could not move resolv file ({resolv_file!s}) to "
Expand Down Expand Up @@ -140,7 +140,7 @@ def shecan_cli() -> Optional[int]:

args = parser.parse_args()

if len(sys.argv) == 1:
if len(sys.argv) == 1 or not hasattr(args, "op"):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was a bug 🤷

parser.print_help(sys.stderr)
return 1

Expand Down
File renamed without changes.
File renamed without changes.
Empty file removed src/tests/unit/__init__.py
Empty file.
Loading