From 6bafa2b108da010292a93b159bf89562a33a7e81 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 9 Jun 2026 15:25:40 +0330 Subject: [PATCH 1/5] fix : remove requirements.txt --- requirements.txt | 0 setup.py | 13 +++---------- 2 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e69de29..0000000 diff --git a/setup.py b/setup.py index 320b7ad..f738339 100644 --- a/setup.py +++ b/setup.py @@ -2,13 +2,6 @@ """Setup module.""" from setuptools import setup, find_packages - -def get_requires() -> list: - """Read requirements.txt.""" - requirements = open("requirements.txt", "r").read() - return list(filter(lambda x: x != "", requirements.split())) - - def read_description() -> str: """Read README.md and CHANGELOG.md.""" try: @@ -27,7 +20,7 @@ def read_description() -> str: setup( name='tocount', - packages=find_packages(include=["tocount*"]), + packages=find_packages(include=['tocount*']), version='0.5', description='ToCount: Lightweight Token Estimator', long_description=read_description(), @@ -36,11 +29,11 @@ def read_description() -> str: author_email='tocount@openscilab.com', url='https://github.com/openscilab/tocount', download_url='https://github.com/openscilab/tocount/tarball/v0.5', - keywords="token tokenizer estimation llm ml nlp", + keywords='token tokenizer estimation llm ml nlp', project_urls={ 'Source': 'https://github.com/openscilab/tocount', }, - install_requires=get_requires(), + install_requires=[], python_requires='>=3.7', classifiers=[ 'Development Status :: 3 - Alpha', From f8db9c787dedf0c860434eb904f9f24744eb78d4 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 9 Jun 2026 15:26:16 +0330 Subject: [PATCH 2/5] 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 749cef1066b726654cd962b7c8dce356cea9cfeb Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 9 Jun 2026 15:27:17 +0330 Subject: [PATCH 3/5] 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 fb82cbb..1945c3b 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: - "sadrasabouri" From 2def2c57ce812d80a1ccd16b279c5f1fc1098c89 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 9 Jun 2026 15:28:09 +0330 Subject: [PATCH 4/5] fix : update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ffad9f8..2c05709 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,9 +34,9 @@ jobs: run: | python -m pip install --upgrade pip pip install . - - name: Test requirements installation + - name: Dev requirements installation run: | - pip install -r dev-requirements.txt + pip install -r requirements-dev.txt - name: Test with pytest run: | python -m pytest . --cov=tocount --cov-report=term From 959be4655a348117662fa3ce371e45262cae2dce Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 9 Jun 2026 15:29:11 +0330 Subject: [PATCH 5/5] doc : update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1a56dc..d09e620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - `TocountValidationError` class ### Changed - `setup.py` updated +- Dependencies structure modified ## [0.5] - 2026-01-02 ### Added - `DEEPSEEK_R1.LINEAR_ALL` model