sklearn-compat 0.1.0rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sklearn_compat-0.1.0rc1/.git_archival.txt +3 -0
- sklearn_compat-0.1.0rc1/.gitattributes +1 -0
- sklearn_compat-0.1.0rc1/.github/workflows/publish-pypi.yml +50 -0
- sklearn_compat-0.1.0rc1/.github/workflows/testing.yml +37 -0
- sklearn_compat-0.1.0rc1/.gitignore +136 -0
- sklearn_compat-0.1.0rc1/.pre-commit-config.yaml +13 -0
- sklearn_compat-0.1.0rc1/.readthedocs.yml +9 -0
- sklearn_compat-0.1.0rc1/LICENSE +28 -0
- sklearn_compat-0.1.0rc1/PKG-INFO +484 -0
- sklearn_compat-0.1.0rc1/README.md +450 -0
- sklearn_compat-0.1.0rc1/docs/index.md +1 -0
- sklearn_compat-0.1.0rc1/mkdocs.yml +1 -0
- sklearn_compat-0.1.0rc1/pixi.lock +6791 -0
- sklearn_compat-0.1.0rc1/pyproject.toml +133 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/__init__.py +1 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/base.py +22 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/__init__.py +19 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_chunking.py +12 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_indexing.py +17 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_mask.py +10 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_missing.py +8 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_optional_dependencies.py +10 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_tags.py +343 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_test_common/instance_generator.py +7 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_user_interface.py +6 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/_version.py +4 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/extmath.py +8 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/fixes.py +12 -0
- sklearn_compat-0.1.0rc1/src/sklearn_compat/utils/validation.py +79 -0
- sklearn_compat-0.1.0rc1/tests/__init__.py +0 -0
- sklearn_compat-0.1.0rc1/tests/test_common.py +139 -0
- sklearn_compat-0.1.0rc1/tests/test_version.py +5 -0
- sklearn_compat-0.1.0rc1/tests/utils/__init__.py +0 -0
- sklearn_compat-0.1.0rc1/tests/utils/_test_common/__init__.py +0 -0
- sklearn_compat-0.1.0rc1/tests/utils/_test_common/test_instance_generator.py +5 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_chunking.py +25 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_extmath.py +13 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_fixes.py +16 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_indexing.py +37 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_mask.py +23 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_missing.py +9 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_optional_dependencies.py +38 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_tags.py +18 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_user_interface.py +20 -0
- sklearn_compat-0.1.0rc1/tests/utils/test_validation.py +87 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.git_archival.txt export-subst
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Publish to (Test)PyPI
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
inputs:
|
|
5
|
+
version:
|
|
6
|
+
description: 'Version to upload to pypi'
|
|
7
|
+
required: true
|
|
8
|
+
pypi_repo:
|
|
9
|
+
description: 'Repo to upload to ("testpypi" or "pypi")'
|
|
10
|
+
default: 'testpypi'
|
|
11
|
+
required: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
publish:
|
|
15
|
+
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
# Specifying a GitHub environment is optional, but strongly encouraged
|
|
18
|
+
environment: publish-pypi
|
|
19
|
+
permissions:
|
|
20
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
21
|
+
id-token: write
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
with:
|
|
26
|
+
ref: ${{ github.event.inputs.version }}
|
|
27
|
+
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: '3.x'
|
|
31
|
+
|
|
32
|
+
- name: Install dependencies
|
|
33
|
+
run: |
|
|
34
|
+
python -m pip install -U pip
|
|
35
|
+
python -m pip install -U wheel twine build
|
|
36
|
+
|
|
37
|
+
- name: Generate distribution archives
|
|
38
|
+
run: |
|
|
39
|
+
python -m build
|
|
40
|
+
twine check dist/*
|
|
41
|
+
|
|
42
|
+
- name: Publish package to TestPyPI
|
|
43
|
+
uses: pypa/gh-action-pypi-publish@v1.12.2
|
|
44
|
+
with:
|
|
45
|
+
repository-url: https://test.pypi.org/legacy/
|
|
46
|
+
if: ${{ github.event.inputs.pypi_repo == 'testpypi' }}
|
|
47
|
+
|
|
48
|
+
- name: Publish package to PyPI
|
|
49
|
+
uses: pypa/gh-action-pypi-publish@v1.12.2
|
|
50
|
+
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: 'test'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "main"
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- '*'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
16
|
+
environment: [ci-sklearn13, ci-sklearn14, ci-sklearn15, ci-sklearn16]
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: prefix-dev/setup-pixi@v0.8.1
|
|
21
|
+
with:
|
|
22
|
+
pixi-version: v0.37.0
|
|
23
|
+
environments: ${{ matrix.environment }}
|
|
24
|
+
# we can freeze the environment and manually bump the dependencies to the
|
|
25
|
+
# latest version time to time.
|
|
26
|
+
frozen: true
|
|
27
|
+
|
|
28
|
+
- name: Run tests
|
|
29
|
+
# TODO: add -n 3 but we need to generate the ids such that pytest-xdist
|
|
30
|
+
# handles them correctly.
|
|
31
|
+
run: pixi run -e ${{ matrix.environment }} tests
|
|
32
|
+
|
|
33
|
+
- name: Upload coverage reports to Codecov
|
|
34
|
+
uses: codecov/codecov-action@v5.0.2
|
|
35
|
+
with:
|
|
36
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
37
|
+
slug: sklearn-compat/sklearn_compat
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
|
|
5
|
+
# C extensions
|
|
6
|
+
*.so
|
|
7
|
+
|
|
8
|
+
# Distribution / packaging
|
|
9
|
+
.Python
|
|
10
|
+
env/
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
*.egg-info/
|
|
23
|
+
.installed.cfg
|
|
24
|
+
*.egg
|
|
25
|
+
Pipfile
|
|
26
|
+
Pipfile.lock
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.coverage
|
|
42
|
+
.coverage.*
|
|
43
|
+
.cache
|
|
44
|
+
nosetests.xml
|
|
45
|
+
coverage.xml
|
|
46
|
+
*,cover
|
|
47
|
+
.pytest_cache/
|
|
48
|
+
|
|
49
|
+
# Translations
|
|
50
|
+
*.mo
|
|
51
|
+
*.pot
|
|
52
|
+
|
|
53
|
+
# Django stuff:
|
|
54
|
+
*.log
|
|
55
|
+
|
|
56
|
+
# Sphinx documentation
|
|
57
|
+
docs/_build/
|
|
58
|
+
|
|
59
|
+
# PyBuilder
|
|
60
|
+
target/
|
|
61
|
+
|
|
62
|
+
# vim
|
|
63
|
+
*.swp
|
|
64
|
+
|
|
65
|
+
# emacs
|
|
66
|
+
*~
|
|
67
|
+
|
|
68
|
+
# Visual Studio
|
|
69
|
+
*.sln
|
|
70
|
+
*.pyproj
|
|
71
|
+
*.suo
|
|
72
|
+
*.vs
|
|
73
|
+
.vscode/
|
|
74
|
+
|
|
75
|
+
# PyCharm
|
|
76
|
+
.idea/
|
|
77
|
+
|
|
78
|
+
# Cython
|
|
79
|
+
*.pyc
|
|
80
|
+
*.pyo
|
|
81
|
+
__pycache__
|
|
82
|
+
*.so
|
|
83
|
+
*.o
|
|
84
|
+
|
|
85
|
+
*.egg
|
|
86
|
+
*.egg-info
|
|
87
|
+
|
|
88
|
+
Cython/Compiler/*.c
|
|
89
|
+
Cython/Plex/*.c
|
|
90
|
+
Cython/Runtime/refnanny.c
|
|
91
|
+
Cython/Tempita/*.c
|
|
92
|
+
Cython/*.c
|
|
93
|
+
|
|
94
|
+
Tools/*.elc
|
|
95
|
+
|
|
96
|
+
/TEST_TMP/
|
|
97
|
+
/build/
|
|
98
|
+
/wheelhouse*/
|
|
99
|
+
!tests/build/
|
|
100
|
+
/dist/
|
|
101
|
+
.gitrev
|
|
102
|
+
.coverage
|
|
103
|
+
*.orig
|
|
104
|
+
*.rej
|
|
105
|
+
*.dep
|
|
106
|
+
*.swp
|
|
107
|
+
*~
|
|
108
|
+
|
|
109
|
+
.ipynb_checkpoints
|
|
110
|
+
docs/build
|
|
111
|
+
|
|
112
|
+
tags
|
|
113
|
+
TAGS
|
|
114
|
+
MANIFEST
|
|
115
|
+
|
|
116
|
+
.tox
|
|
117
|
+
|
|
118
|
+
cythonize.dat
|
|
119
|
+
|
|
120
|
+
# build documentation
|
|
121
|
+
doc/_build/
|
|
122
|
+
doc/auto_examples/
|
|
123
|
+
doc/generated/
|
|
124
|
+
doc/references/generated/
|
|
125
|
+
doc/bibtex/auto
|
|
126
|
+
doc/min_dependency_table.rst
|
|
127
|
+
|
|
128
|
+
# MacOS
|
|
129
|
+
.DS_Store
|
|
130
|
+
|
|
131
|
+
# Pixi folder
|
|
132
|
+
.pixi/
|
|
133
|
+
|
|
134
|
+
# Generated files
|
|
135
|
+
doc/min_dependency_substitutions.rst
|
|
136
|
+
doc/sg_execution_times.rst
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v5.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
9
|
+
# Ruff version.
|
|
10
|
+
rev: v0.8.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: ruff
|
|
13
|
+
args: ["--fix", "--output-format=full"]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Guillaume Lemaitre
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|