diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ebe8375 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[project] +name = "ebm2onnx" +version = "2.0.0" +description = "EBM model serialization to ONNX" +readme = "README.rst" +requires-python = ">=3.6" +license = {file = "LICENSE.txt"} +keywords = ["ebm2onnx", "interpretml", "machine-learning", "onnx"] +authors = [ + {email = "romain.picard@softathome.com"}, + {name = "Romain Picard"} +] +classifiers = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Topic :: Scientific/Engineering :: Artificial Intelligence', + 'Natural Language :: English', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', +] + +dependencies = [ + 'onnx~=1.8', + 'interpret-core[required,ebm]~=0.3', +] + +[project.optional-dependencies] +test = [ + "pytest", +] + +[project.urls] +repository = "https://github.com/interpretml/ebm2onnx.git" + +[options] +packages = ["ebm2onnx"] + +[tool.setuptools.packages.find] +where = ["./"] +include = ["ebm2onnx"] +namespaces = false diff --git a/setup.cfg b/setup.cfg index 47db8d0..f7bce63 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,9 +3,9 @@ current_version = 2.0.0 commit = True tag = True -[bumpversion:file:setup.py] -search = version='{current_version}' -replace = version='{new_version}' +[bumpversion:file:pyproject.toml] +search = version = '{current_version}' +replace = version = '{new_version}' [bumpversion:file:ebm2onnx/__init__.py] search = __version__ = '{current_version}' diff --git a/setup.py b/setup.py deleted file mode 100644 index 7310301..0000000 --- a/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -"""The setup script.""" - -from setuptools import setup, find_packages - -with open('README.rst') as readme_file: - readme = readme_file.read() - -requirements = [ - 'onnx>=1.8', - 'interpret-core[required,ebm]>=0.3', - ] - -setup( - author="Romain Picard", - author_email='romain.picard@softathome.com', - python_requires='>=3.6', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Topic :: Scientific/Engineering :: Artificial Intelligence', - 'Natural Language :: English', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - ], - description="EBM model serialization to ONNX", - install_requires=requirements, - license="MIT license", - long_description=readme, - include_package_data=True, - keywords='ebm2onnx', - name='ebm2onnx', - packages=find_packages(include=['ebm2onnx']), - url='https://github.com/interpretml/ebm2onnx.git', - version='2.0.0', - zip_safe=True, -)