From 9ef224774ed70cb0c319917f67e88faa79dd2d5f Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:43:47 +0330 Subject: [PATCH 1/7] fix : update setup.py --- requirements.txt | 4 ++-- setup.py | 20 ++++++-------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6608eb1..b28b04f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -art>=5.3 -requests>=2.20.0 + + diff --git a/setup.py b/setup.py index e5ace84..4b04937 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,6 @@ # -*- coding: utf-8 -*- """Setup module.""" -from typing import List -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - - -def get_requires() -> List[str]: - """Read requirements.txt.""" - requirements = open("requirements.txt", "r").read() - return list(filter(lambda x: x != "", requirements.split())) - +from setuptools import setup def read_description() -> str: """Read README.md and CHANGELOG.md.""" @@ -41,11 +30,14 @@ def read_description() -> str: author_email='ipspot@openscilab.com', url='https://github.com/openscilab/ipspot', download_url='https://github.com/openscilab/ipspot/tarball/v0.8', - keywords="ip ipv4 ipv6 geo geolocation network location ipspot cli", + keywords='ip ipv4 ipv6 geo geolocation network location ipspot cli', project_urls={ 'Source': 'https://github.com/openscilab/ipspot' }, - install_requires=get_requires(), + install_requires=[ + 'art>=5.3', + 'requests>=2.20.0' + ], python_requires='>=3.7', classifiers=[ 'Development Status :: 4 - Beta', From a72ccfbbeaea344b5e57fd43623cd73b06d781b5 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:44:01 +0330 Subject: [PATCH 2/7] fix : remove requirements.txt --- requirements.txt | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b28b04f..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ - - - From 8ab6160d42ef5217c0c996aa7736fad3fbbff6e1 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:44:39 +0330 Subject: [PATCH 3/7] fix : add requirements-latest.txt --- dev-requirements.txt | 2 -- requirements-latest.txt | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 requirements-latest.txt diff --git a/dev-requirements.txt b/dev-requirements.txt index a74f18d..0b02ecd 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,3 @@ -requests==2.32.5 -art==6.5 setuptools>=40.8.0 vulture>=1.0 bandit>=1.5.1 diff --git a/requirements-latest.txt b/requirements-latest.txt new file mode 100644 index 0000000..cfa7a51 --- /dev/null +++ b/requirements-latest.txt @@ -0,0 +1,2 @@ +requests==2.32.5 +art==6.5 From a2da29fa25898389c7f8447367f28da36888ab95 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:45:07 +0330 Subject: [PATCH 4/7] fix : rename dev-requirements.txt to requirements-dev.txt --- dev-requirements.txt => requirements-dev.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename dev-requirements.txt => requirements-dev.txt (100%) diff --git a/dev-requirements.txt b/requirements-dev.txt similarity index 100% rename from dev-requirements.txt rename to requirements-dev.txt From 0670192336e7789cc74ba3c7143c5db77640d8b8 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:45:56 +0330 Subject: [PATCH 5/7] fix : update dependabot.yml --- .github/dependabot.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 79967b7..0a1415c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,10 +2,13 @@ version: 2 updates: - package-ecosystem: pip directory: "/" + exclude-paths: + - "requirements-dev.txt" + - "setup.py" schedule: interval: weekly time: "01:30" - open-pull-requests-limit: 10 + open-pull-requests-limit: 5 target-branch: dev assignees: - "sepandhaghighi" From c3c2bc57a6d41c4d7a301a458d8aa3be02977b3a Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:47:01 +0330 Subject: [PATCH 6/7] fix : update test.yml --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31035c6..9c0c1ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,8 +58,7 @@ jobs: ipspot --timeout=15 - name: Install dev-requirements run: | - python otherfiles/requirements-splitter.py - pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt + pip install --upgrade --upgrade-strategy=only-if-needed -r requirements-dev.txt - name: Test with pytest (IPv4 functions) run: | python -m pytest . --cov=ipspot --cov-report=term --ignore-glob="tests/test_ipv6_*.py" --ignore=tests/test_ipv4_api.py From 9dece46a9f7ffe38f89b90af6bf2046c0e257bdf Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 7 Jul 2026 18:47:28 +0330 Subject: [PATCH 7/7] doc : update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49a0588..c9cd9a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - CLI messages updated - CLI modified +- Dependencies structure modified ## [0.8] - 2026-02-05 ### Added - Support [wtfismyip.com](https://wtfismyip.com/json) IPv6 API