From b46340833b4e04632db589f913f162d275bda5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=92=D0=B0=D1=81?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D0=B5=D0=B2?= Date: Sun, 22 Dec 2024 18:05:16 +0300 Subject: [PATCH] Add pyproject.toml, replace deprecated sdist command --- pypi_build_commands.txt | 2 +- pyproject.toml | 61 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pypi_build_commands.txt b/pypi_build_commands.txt index 4d5fa0f5a..950822b9f 100644 --- a/pypi_build_commands.txt +++ b/pypi_build_commands.txt @@ -1,6 +1,6 @@ # This is a command list for building pypi packages -python setup.py sdist +python -m build -s twine check dist/* # docstring check diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..ae72050e3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["setuptools >= 38.6.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "pyod" +dynamic = ["version"] +dependencies = [ + "joblib", + "matplotlib", + "numpy>=1.19", + "numba>=0.51", + "scipy>=1.5.1", + "scikit-learn>=0.22.0", +] +requires-python = ">=3.6" +authors = [ + {name = "Yue Zhao", email = "yzhao062@gmail.com"} +] +maintainers = [ + {name = "Yue Zhao", email = "yzhao062@gmail.com"} +] +description = "A Comprehensive and Scalable Python Library for Outlier Detection (Anomaly Detection)" +readme = "README.rst" +license = {file = "LICENSE"} +keywords = ['outlier detection', 'anomaly detection', 'outlier ensembles', + 'data mining', 'neural networks'] +classifiers = [ + 'Development Status :: 6 - Mature', + 'Intended Audience :: Education', + 'Intended Audience :: Financial and Insurance Industry', + 'Intended Audience :: Science/Research', + 'Intended Audience :: Developers', + 'Intended Audience :: Information Technology', + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', +] + +[project.optional-dependencies] +combo = ["combo"] +pytorch = ["torch"] +suod = ["suod"] +xgboost = ["xgboost"] +pythresh = ["pythresh"] + +[project.urls] +Homepage = "https://github.com/yzhao062/pyod" +Documentation = "https://pyod.readthedocs.io/" +Repository = "https://github.com/yzhao062/pyod.git" +"Bug Tracker" = "https://github.com/yzhao062/pyod/issues" +Changelog = "https://github.com/yzhao062/pyod/blob/master/CHANGES.txt" + +[tool.setuptools.dynamic] +version = {attr = "pyod.version.__version__"} +