Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
with:
python-version: 3.12.4
cache: "pip"
- name: "Install Poetry"
run: pipx install poetry
- name: "Install dependencies"
run: |
pip install -r requirements.txt -r requirements.dev.txt
run: poetry install
- name: "Ruff checks"
continue-on-error: true
run: ruff check . --output-format=full --diff
run: poetry run ruff check . --output-format=full --diff
- name: "Format check"
continue-on-error: true
run: ruff format . --check --diff
run: poetry run ruff format . --check --diff
- name: "Mypy"
run: mypy
continue-on-error: true
run: poetry run mypy
- name: "Pytest"
run: python -m pytest -v -m ci
run: PYTHONPATH=. poetry run pytest -v -m ci
42 changes: 42 additions & 0 deletions =1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Using version ^1.7.0 for scikit-learn

Updating dependencies
Resolving dependencies...

Package operations: 5 installs, 0 updates, 0 removals

- Installing llvmlite (0.42.0)

PEP517 build of a dependency failed

Backend subprocess exited when trying to invoke build_wheel

| Command '['/tmp/tmp9a4_7ytm/.venv/bin/python', '/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/tmp/tmpawkuuyi4']' returned non-zero exit status 1.
|
| running bdist_wheel
| /tmp/tmp9a4_7ytm/.venv/bin/python /tmp/tmpaseqh5nu/llvmlite-0.42.0/ffi/build.py
| LLVM version... 20.1.6
|
| Traceback (most recent call last):
| File "/tmp/tmpaseqh5nu/llvmlite-0.42.0/ffi/build.py", line 228, in <module>
| main()
| ~~~~^^
| File "/tmp/tmpaseqh5nu/llvmlite-0.42.0/ffi/build.py", line 218, in main
| main_posix('linux', '.so')
| ~~~~~~~~~~^^^^^^^^^^^^^^^^
| File "/tmp/tmpaseqh5nu/llvmlite-0.42.0/ffi/build.py", line 174, in main_posix
| raise RuntimeError(msg)
| RuntimeError: Building llvmlite requires LLVM 14, got '20.1.6'. Be sure to set LLVM_CONFIG to the right executable path.
| Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
|
| error: command '/tmp/tmp9a4_7ytm/.venv/bin/python' failed with exit code 1

Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with llvmlite (0.42.0)

- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).

You can verify this by running pip wheel --no-cache-dir --use-pep517 "llvmlite (==0.42.0)".

3,053 changes: 3,053 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

41 changes: 40 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,43 @@ no_implicit_optional = "False"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--color=yes", "-s"]
markers = ["ci: test that run on ci"]
markers = ["ci: test that run on ci"]
pythonpath = ["src"]

[tool.poetry.group.dev.dependencies]
ruff = "^0.4.4"
jupyter = "^1.0.0"
pytest = "^7.4.4"
mypy = "^1.10.0"
ipykernel = "^6.29.4"

[project]
name = "pysatl-nmvm-module"
version = "0.1.0"
description = ""
authors = [
{name = "Kirill-maker",email = "kirill.lukin.1999@bk.ru"}
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
]


[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
packages = [
{ include = "src" }
]

[tool.poetry.dependencies]
python = ">=3.12"
numpy = "^1.26.4"
scipy = "^1.13.1"
sympy = "^1.13.1"
matplotlib = "^3.8.4"
mpmath = "^1.3.0"
scikit-learn = ">=1.0.0"
5 changes: 0 additions & 5 deletions requirements.dev.txt

This file was deleted.

7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions src/algorithms/param_algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



3 changes: 3 additions & 0 deletions src/algorithms/semiparam_algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



1 change: 1 addition & 0 deletions src/algorithms/support_algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

9 changes: 8 additions & 1 deletion src/algorithms/support_algorithms/rqmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
import numpy as np
import numpy._typing as tpg
import scipy
from numba import njit

try:
from numba import njit
except ImportError:
def njit(*args, **kwargs):
def wrapper(f):
return f
return wrapper

BITS = 30
"""Number of bits in XOR. Should be less than 64"""
Expand Down
1 change: 1 addition & 0 deletions src/estimators/parametric/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/estimators/semiparametric/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/generators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/mixtures/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/register/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading