From d63fb1412af078a8ecf409c419a2fa83138b0c46 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Tue, 2 Sep 2025 06:13:18 +0800 Subject: [PATCH] renamed to wdyndns to avoiod conflict with PyPI package --- .gitea/workflows/build.yaml | 2 +- pyproject.toml | 14 ++-- requirements-dev.txt | 126 ++++++++++++++++++++++++++++++ requirements.txt | 117 +-------------------------- {dyndns => wdyndns}/__init__.py | 0 {dyndns => wdyndns}/aws.py | 0 {dyndns => wdyndns}/cloudflare.py | 0 {dyndns => wdyndns}/utils.py | 0 8 files changed, 135 insertions(+), 124 deletions(-) create mode 100644 requirements-dev.txt rename {dyndns => wdyndns}/__init__.py (100%) rename {dyndns => wdyndns}/aws.py (100%) rename {dyndns => wdyndns}/cloudflare.py (100%) rename {dyndns => wdyndns}/utils.py (100%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 28943ef..3e32af0 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: - name: Create virtualenv run: | python -m venv .venv - .venv/bin/pip install -r requirements.txt + .venv/bin/pip install -r requirements-dev.txt # - name: Run unit tests # run: .venv/bin/python -m unittest discover -s tests - name: Execute build diff --git a/pyproject.toml b/pyproject.toml index cb63526..179c37b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "dyndns" -version = "0.3.0" +name = "wdyndns" +version = "0.4.0" authors = [ { name="Walter Oggioni", email="oggioni.walter@gmail.com" }, ] @@ -25,16 +25,16 @@ dev = [ ] [tool.setuptools.package-data] -dyndns = ['conf/*'] +wdyndns = ['conf/*'] [project.urls] -"Homepage" = "https://gitea.woggioni.net/woggioni/dyndns/" -"Bug Tracker" = "https://gitea.woggioni.net/woggioni/dyndns/" +"Homepage" = "https://gitea.woggioni.net/woggioni/wdyndns/" +"Bug Tracker" = "https://gitea.woggioni.net/woggioni/wdyndns/" [project.scripts] -awsdyndns = "dyndns.aws:run" -cloudflaredyndns = "dyndns.cloudflare:run" +awsdyndns = "wdyndns.aws:run" +cloudflaredyndns = "wdyndns.cloudflare:run" [tool.mypy] python_version = "3.11" diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..f9ab9bc --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,126 @@ +# +# This file is autogenerated by pip-compile with Python 3.13 +# by the following command: +# +# pip-compile --allow-unsafe --extra=dev --output-file=requirements-dev.txt pyproject.toml +# +--index-url https://gitea.woggioni.net/api/packages/woggioni/pypi/simple +--extra-index-url https://pypi.org/simple + +asttokens==3.0.0 + # via stack-data +build==1.3.0 + # via wdyndns (pyproject.toml) +certifi==2025.8.3 + # via requests +cffi==1.17.1 + # via cryptography +charset-normalizer==3.4.3 + # via requests +cryptography==45.0.7 + # via secretstorage +decorator==5.2.1 + # via + # ipdb + # ipython +docutils==0.22 + # via readme-renderer +executing==2.2.1 + # via stack-data +id==1.5.0 + # via twine +idna==3.10 + # via requests +ipdb==0.13.13 + # via wdyndns (pyproject.toml) +ipython==9.5.0 + # via ipdb +ipython-pygments-lexers==1.1.1 + # via ipython +jaraco-classes==3.4.0 + # via keyring +jaraco-context==6.0.1 + # via keyring +jaraco-functools==4.3.0 + # via keyring +jedi==0.19.2 + # via ipython +jeepney==0.9.0 + # via + # keyring + # secretstorage +keyring==25.6.0 + # via twine +markdown-it-py==4.0.0 + # via rich +matplotlib-inline==0.1.7 + # via ipython +mdurl==0.1.2 + # via markdown-it-py +more-itertools==10.7.0 + # via + # jaraco-classes + # jaraco-functools +mypy==1.17.1 + # via wdyndns (pyproject.toml) +mypy-extensions==1.1.0 + # via mypy +nh3==0.3.0 + # via readme-renderer +packaging==25.0 + # via + # build + # twine +parso==0.8.5 + # via jedi +pathspec==0.12.1 + # via mypy +pexpect==4.9.0 + # via ipython +prompt-toolkit==3.0.52 + # via ipython +ptyprocess==0.7.0 + # via pexpect +pure-eval==0.2.3 + # via stack-data +pycparser==2.22 + # via cffi +pygments==2.19.2 + # via + # ipython + # ipython-pygments-lexers + # readme-renderer + # rich +pyproject-hooks==1.2.0 + # via build +readme-renderer==44.0 + # via twine +requests==2.32.5 + # via + # id + # requests-toolbelt + # twine +requests-toolbelt==1.0.0 + # via twine +rfc3986==2.0.0 + # via twine +rich==14.1.0 + # via twine +secretstorage==3.3.3 + # via keyring +stack-data==0.6.3 + # via ipython +traitlets==5.14.3 + # via + # ipython + # matplotlib-inline +twine==6.1.0 + # via wdyndns (pyproject.toml) +typing-extensions==4.15.0 + # via mypy +urllib3==2.5.0 + # via + # requests + # twine +wcwidth==0.2.13 + # via prompt-toolkit diff --git a/requirements.txt b/requirements.txt index 482845d..fb56816 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,123 +2,8 @@ # This file is autogenerated by pip-compile with Python 3.13 # by the following command: # -# pip-compile --allow-unsafe --extra=dev --output-file=requirements.txt pyproject.toml +# pip-compile --allow-unsafe --output-file=requirements.txt --strip-extras pyproject.toml # --index-url https://gitea.woggioni.net/api/packages/woggioni/pypi/simple --extra-index-url https://pypi.org/simple -asttokens==3.0.0 - # via stack-data -build==1.2.2.post1 - # via dyndns (pyproject.toml) -certifi==2025.1.31 - # via requests -cffi==1.17.1 - # via cryptography -charset-normalizer==3.4.1 - # via requests -cryptography==44.0.2 - # via secretstorage -decorator==5.2.1 - # via - # ipdb - # ipython -docutils==0.21.2 - # via readme-renderer -executing==2.2.0 - # via stack-data -id==1.5.0 - # via twine -idna==3.10 - # via requests -ipdb==0.13.13 - # via dyndns (pyproject.toml) -ipython==9.0.2 - # via ipdb -ipython-pygments-lexers==1.1.1 - # via ipython -jaraco-classes==3.4.0 - # via keyring -jaraco-context==6.0.1 - # via keyring -jaraco-functools==4.1.0 - # via keyring -jedi==0.19.2 - # via ipython -jeepney==0.9.0 - # via - # keyring - # secretstorage -keyring==25.6.0 - # via twine -markdown-it-py==3.0.0 - # via rich -matplotlib-inline==0.1.7 - # via ipython -mdurl==0.1.2 - # via markdown-it-py -more-itertools==10.6.0 - # via - # jaraco-classes - # jaraco-functools -mypy==1.15.0 - # via dyndns (pyproject.toml) -mypy-extensions==1.0.0 - # via mypy -nh3==0.2.21 - # via readme-renderer -packaging==24.2 - # via - # build - # twine -parso==0.8.4 - # via jedi -pexpect==4.9.0 - # via ipython -prompt-toolkit==3.0.50 - # via ipython -ptyprocess==0.7.0 - # via pexpect -pure-eval==0.2.3 - # via stack-data -pycparser==2.22 - # via cffi -pygments==2.19.1 - # via - # ipython - # ipython-pygments-lexers - # readme-renderer - # rich -pyproject-hooks==1.2.0 - # via build -readme-renderer==44.0 - # via twine -requests==2.32.3 - # via - # id - # requests-toolbelt - # twine -requests-toolbelt==1.0.0 - # via twine -rfc3986==2.0.0 - # via twine -rich==14.0.0 - # via twine -secretstorage==3.3.3 - # via keyring -stack-data==0.6.3 - # via ipython -traitlets==5.14.3 - # via - # ipython - # matplotlib-inline -twine==6.1.0 - # via dyndns (pyproject.toml) -typing-extensions==4.13.0 - # via mypy -urllib3==2.3.0 - # via - # requests - # twine -wcwidth==0.2.13 - # via prompt-toolkit diff --git a/dyndns/__init__.py b/wdyndns/__init__.py similarity index 100% rename from dyndns/__init__.py rename to wdyndns/__init__.py diff --git a/dyndns/aws.py b/wdyndns/aws.py similarity index 100% rename from dyndns/aws.py rename to wdyndns/aws.py diff --git a/dyndns/cloudflare.py b/wdyndns/cloudflare.py similarity index 100% rename from dyndns/cloudflare.py rename to wdyndns/cloudflare.py diff --git a/dyndns/utils.py b/wdyndns/utils.py similarity index 100% rename from dyndns/utils.py rename to wdyndns/utils.py