diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6922b61 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,59 @@ +[build-system] +requires = ["setuptools>=64", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +dynamic = ["version"] +name = "khaosz" +readme = "README.md" +requires-python = ">=3.12" +dependencies = [ + "certifi==2025.8.3", + "charset-normalizer==3.4.2", + "colorama==0.4.6", + "contourpy==1.3.3", + "cycler==0.12.1", + "filelock==3.13.1", + "fonttools==4.61.0", + "fsspec==2024.6.1", + "huggingface-hub==0.34.3", + "idna==3.10", + "Jinja2==3.1.6", + "kiwisolver==1.4.8", + "MarkupSafe==2.1.5", + "matplotlib==3.10.5", + "mpmath==1.3.0", + "networkx==3.3", + "numpy==2.3.2", + "packaging==25.0", + "pillow==11.3.0", + "pyparsing==3.2.3", + "python-dateutil==2.9.0.post0", + "PyYAML==6.0.2", + "requests==2.32.4", + "safetensors==0.5.3", + "six==1.17.0", + "sympy==1.13.3", + "tokenizers==0.21.4", + "torch==2.7.1", + "tqdm==4.67.1", + "typing_extensions==4.12.2", + "urllib3==2.6.0", +] +keywords = ["nlp", "datasets", "language-models", "machine-learning"] +license = { text = "GPL-3.0" } +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GPL-3.0", + "Operating System :: OS Independent", +] +urls = { Homepage = "https://github.com/khaosz/khaosz" } + +[tool.setuptools.packages.find] +where = ["."] + +[tool.pip] +extra-index-url = "https://download.pytorch.org/whl/cu126" + +[tool.setuptools.dynamic] +version = { attr = "khaosz.__version__" } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index db1fe75..0000000 --- a/requirements.txt +++ /dev/null @@ -1,36 +0,0 @@ -# python=3.12 ---extra-index-url https://download.pytorch.org/whl/cu126 - -certifi==2025.8.3 -charset-normalizer==3.4.2 -colorama==0.4.6 -contourpy==1.3.3 -cycler==0.12.1 -filelock==3.13.1 -fonttools==4.61.0 -fsspec==2024.6.1 -huggingface-hub==0.34.3 -idna==3.10 -Jinja2==3.1.6 -kiwisolver==1.4.8 -MarkupSafe==2.1.5 -matplotlib==3.10.5 -mpmath==1.3.0 -networkx==3.3 -numpy==2.3.2 -packaging==25.0 -pillow==11.3.0 -pyparsing==3.2.3 -python-dateutil==2.9.0.post0 -PyYAML==6.0.2 -requests==2.32.4 -safetensors==0.5.3 -setuptools==78.1.1 -six==1.17.0 -sympy==1.13.3 -tokenizers==0.21.4 -torch==2.7.1+cu126 -tqdm==4.67.1 -typing_extensions==4.12.2 -urllib3==2.6.0 -wheel==0.45.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 278a817..0000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -import re -import khaosz -from setuptools import find_packages, setup - - -with open("requirements.txt") as f: - required = [line for line in f.read().splitlines() - if line and re.match(r'^[^=]+==[^=]+$', line.strip())] - -setup( - name="khaosz", - version=khaosz.__version__, - packages=find_packages(), - install_requires=required, - dependency_links=[ - "https://download.pytorch.org/whl/cu126", - ], - python_requires=">=3.12", -) \ No newline at end of file