Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Sep 11, 2024
1 parent f54d55c commit 72155af
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -19,6 +19,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
allow-prereleases: true

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install dependencies
run: |
Expand Down
53 changes: 27 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: publish

on:
push:
branches:
- main
tags:
- 'v*.*.*'
on: push
#push:
# branches:
# - main
# tags:
# - 'v*.*.*'

jobs:
build_wheels:
Expand All @@ -21,9 +21,9 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_BUILD: cp3*-*
CIBW_SKIP: pp* *i686* *win32 *musllinux*
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.8,<3.13'
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.9'
CIBW_BEFORE_BUILD: pip install --verbose --editable .
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
Expand All @@ -43,7 +43,8 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'
python-version: '3.13'
allow-prereleases: true

- run: pip install build

Expand All @@ -55,22 +56,22 @@ jobs:
name: artifact-source
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
#upload_pypi:
# needs: [build_wheels, build_sdist]
# runs-on: ubuntu-latest

if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: artifact-*
merge-multiple: true
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist
# pattern: artifact-*
# merge-multiple: true

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
# To test, uncomment the following:
# password: ${{ secrets.TEST_PYPI_PASSWORD }}
# repository-url: https://test.pypi.org/legacy/
# - uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.PYPI_PASSWORD }}
# # To test, uncomment the following:
# # password: ${{ secrets.TEST_PYPI_PASSWORD }}
# # repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requires = [
[tool.black]
line-length = 99
preview = true
target_version = ["py38", "py39", "py310", "py311", "py312"]
target_version = ["py39", "py310", "py311", "py312", "py313"]

[tool.cython-lint]
ignore = ["E741"]
Expand Down
4 changes: 2 additions & 2 deletions quantile_forest/tests/test_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import math
import pickle
import warnings
from typing import Any, Dict
from typing import Any

import numpy as np
import pytest
Expand Down Expand Up @@ -41,7 +41,7 @@
X_california = california.data[perm]
y_california = california.target[perm]

FOREST_REGRESSORS: Dict[str, Any] = {
FOREST_REGRESSORS: dict[str, Any] = {
"ExtraTreesQuantileRegressor": ExtraTreesQuantileRegressor,
"RandomForestQuantileRegressor": RandomForestQuantileRegressor,
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def write_version_py():
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]

Expand Down

0 comments on commit 72155af

Please sign in to comment.