Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyproject.toml, replace deprecated sdist command #615

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pypi_build_commands.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"}
]
maintainers = [
{name = "Yue Zhao", email = "[email protected]"}
]
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__"}

Loading