https://github.com/robertmartin8/PyPortfolioOpt
Raw File
Tip revision: 46f84850febb73a0fa1811114adffe27bde91f08 authored by 88d52bdba0366127fffca9dfa93895 on 06 December 2023, 05:51:54 UTC
support python12
Tip revision: 46f8485
setup.py
import re

import setuptools

with open("README.md", "r") as f:
    desc = f.read()
    desc = desc.split("<!-- content -->")[-1]
    desc = re.sub("<[^<]+?>", "", desc)  # Remove html

if __name__ == "__main__":
    setuptools.setup(
        name="pyportfolioopt",
        version="1.5.5",
        description="Financial portfolio optimization in python",
        long_description=desc,
        long_description_content_type="text/markdown",
        url="https://github.com/robertmartin8/PyPortfolioOpt",
        author="Robert Andrew Martin",
        author_email="martin.robertandrew@gmail.com",
        license="MIT",
        packages=["pypfopt"],
        classifiers=[
            "Development Status :: 4 - Beta",
            "Environment :: Console",
            "Intended Audience :: Financial and Insurance Industry",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: MIT License",
            "Natural Language :: English",
            "Operating System :: OS Independent",
            "Programming Language :: Python :: 3.12",
            "Programming Language :: Python :: 3.11",
            "Programming Language :: Python :: 3.10",
            "Programming Language :: Python :: 3.9",
            "Programming Language :: Python :: 3.8",
            "Programming Language :: Python :: 3 :: Only",
            "Topic :: Office/Business :: Financial",
            "Topic :: Office/Business :: Financial :: Investment",
        ],
        keywords="portfolio finance optimization quant trading investing",
        install_requires=[
            "cvxpy",
            "matplotlib",
            "numpy",
            "pandas",
            "scikit-learn",
            "scipy",
        ],
        setup_requires=["pytest-runner"],
        tests_require=["pytest"],
        python_requires=">=3.8",
        project_urls={
            "Documentation": "https://pyportfolioopt.readthedocs.io/en/latest/",
            "Issues": "https://github.com/robertmartin8/PyPortfolioOpt/issues",
            "Personal website": "https://reasonabledeviations.com",
        },
    )
back to top