From 46f84850febb73a0fa1811114adffe27bde91f08 Mon Sep 17 00:00:00 2001 From: 88d52bdba0366127fffca9dfa93895 <88d52bdba0366127fffca9dfa93895@users.noreply.github.com> Date: Wed, 6 Dec 2023 12:51:54 +0700 Subject: [PATCH] support python12 Co-authored-by: 88d52bdba0366127fffca9dfa93895 --- .github/workflows/codecov.yml | 2 +- .github/workflows/main.yml | 6 +++--- pyproject.toml | 3 ++- setup.py | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index f4ef696d..270ad498 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.11"] + python-version: ["3.12"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f990cf6..75724ed5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,10 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] exclude: - os: macos-latest - python-version: "3.7" + python-version: "3.8" steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -44,4 +44,4 @@ jobs: black --check --diff . - name: Check with flake8 run: | - flake8 --show-source --statistics . \ No newline at end of file + flake8 --show-source --statistics . diff --git a/pyproject.toml b/pyproject.toml index ae8ce918..78e8933f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers=[ "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", @@ -31,7 +32,7 @@ packages = [ {include = "pypfopt"} ] "Personal website" = "https://reasonabledeviations.com" [tool.poetry.dependencies] -python = ">=3.8,<3.15" +python = ">=3.8" scipy = "^1.3" pandas = ">=0.19" cvxpy = "^1.1.19" diff --git a/setup.py b/setup.py index ce62d38d..335432d6 100755 --- a/setup.py +++ b/setup.py @@ -27,11 +27,11 @@ "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.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Office/Business :: Financial", "Topic :: Office/Business :: Financial :: Investment", @@ -47,7 +47,7 @@ ], setup_requires=["pytest-runner"], tests_require=["pytest"], - python_requires=">=3.7", + python_requires=">=3.8", project_urls={ "Documentation": "https://pyportfolioopt.readthedocs.io/en/latest/", "Issues": "https://github.com/robertmartin8/PyPortfolioOpt/issues",