[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/sdpython/mlstatpy/main/setup.py [Back]  [Original]

import os
from setuptools import setup

######################
# beginning of setup
######################


here = os.path.dirname(__file__)
if here == "":
    here = "."
package_data = {"mlstatpy": ["*.txt"]}

try:
    with open(os.path.join(here, "requirements.txt"), "r") as f:
        requirements = f.read().strip(" \n\r\t").split("\n")
except FileNotFoundError:
    requirements = []
if not requirements or requirements == [""]:
    requirements = ["numpy", "mlinsight", "onnxruntime", "skl2onnx"]

try:
    with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f:
        long_description = "mlstatpy:" + f.read().split("mlstatpy:")[1]
except FileNotFoundError:
    long_description = ""

version_str = "0.1.0"
with open(os.path.join(here, "mlstatpy/__init__.py"), "r") as f:
    line = [
        _
        for _ in [_.strip("\r\n ") for _ in f.readlines()]
        if _.startswith("__version__")
    ]
    if line:
        version_str = line[0].split("=")[1].strip('" ')

# see https://pypi.org/classifiers/
setup(
    name="mlstatpy",
    version=version_str,
    description="Points de dtails lis au machine learning",
    long_description=long_description,
    author="Xavier Dupr",
    author_email="xavier.dupre@gmail.com",
    url="https://github.com/sdpython/mlstatpy",
    package_data=package_data,
    setup_requires=["numpy"],
    install_requires=requirements,
    classifiers=[
        "Intended Audience :: Science/Research",
        "Intended Audience :: Education",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Education",
        "Development Status :: 5 - Production/Stable",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: Python :: 3.13",
    ],
)

Web Proxy Viewer  |  New URL  |  Original Page