Skip to content

Commit 74f3474

Browse files
committed
make release-tag: Merge branch 'main' into stable
2 parents aeffcac + 82cfb1f commit 74f3474

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+701
-799
lines changed

.github/workflows/dependency_checker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Dependency Checker
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '0 0 * * 1-5'
5+
- cron: '0 0 * * 1'
66
jobs:
77
build:
88
runs-on: ubuntu-latest
@@ -22,6 +22,8 @@ jobs:
2222
with:
2323
token: ${{ secrets.GH_ACCESS_TOKEN }}
2424
commit-message: Update latest dependencies
25+
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
26+
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
2527
title: Automated Latest Dependency Updates
2628
body: "This is an auto-generated PR with **latest** dependency updates."
2729
branch: latest-dependency-update

.github/workflows/end_to_end.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: macos-latest
17+
python-version: '3.8'
18+
- os: macos-latest
19+
python-version: '3.12'
1520
steps:
1621
- uses: actions/checkout@v1
1722
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/minimum.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: macos-latest
17+
python-version: '3.8'
18+
- os: macos-latest
19+
python-version: '3.12'
1520
steps:
1621
- uses: actions/checkout@v1
1722
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/numerical.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: macos-latest
17+
python-version: '3.8'
18+
- os: macos-latest
19+
python-version: '3.12'
1520
steps:
1621
- uses: actions/checkout@v1
1722
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/static_code_analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
with:
2727
token: ${{ secrets.GH_ACCESS_TOKEN }}
2828
commit-message: Update static code analysis
29+
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
30+
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
2931
title: Latest Code Analysis
3032
body: "This is an auto-generated PR with the **latest** code analysis results."
3133
branch: static-code-analysis

.github/workflows/unit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: macos-latest
17+
python-version: '3.8'
18+
- os: macos-latest
19+
python-version: '3.12'
1520
steps:
1621
- uses: actions/checkout@v1
1722
- name: Set up Python ${{ matrix.python-version }}

HISTORY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# History
22

3+
## v0.11.1 - 2024-08-21
4+
5+
### Maintenance
6+
7+
* Add support for scikit-learn 1.5.0 - Issue [#415](https://github.com/sdv-dev/Copulas/issues/415) by @R-Palazzo
8+
* Add support for numpy 2.0.0 - Issue [#412](https://github.com/sdv-dev/Copulas/issues/412) by @R-Palazzo
9+
* Only run unit and integration tests on oldest and latest python versions for macos - Issue [#405](https://github.com/sdv-dev/Copulas/issues/405) by @R-Palazzo
10+
* Cleanup automated PR workflows - Issue [#402](https://github.com/sdv-dev/Copulas/issues/402) by @R-Palazzo
11+
* Switch to using ruff for Python linting and code formatting - Issue [#378](https://github.com/sdv-dev/Copulas/issues/378) by @gsheni
12+
13+
### Bugs Fixed
14+
15+
* Cap numpy to less than 2.0.0 until Copulas supports - Issue [#411](https://github.com/sdv-dev/Copulas/issues/411) by @gsheni
16+
317
## v0.11.0 - 2024-04-10
418

519
This release adds support for Python 3.12!

Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ clean-test: ## remove test artifacts
6767
.PHONY: clean
6868
clean: clean-build clean-pyc clean-test clean-coverage clean-docs ## remove all build, test, coverage, docs and Python artifacts
6969

70-
7170
# INSTALL TARGETS
7271

7372
.PHONY: install
@@ -82,23 +81,16 @@ install-test: clean-build clean-pyc ## install the package and test dependencies
8281
install-develop: clean-build clean-pyc ## install the package in editable mode and dependencies for development
8382
pip install -e .[dev]
8483

85-
8684
# LINT TARGETS
8785

8886
.PHONY: lint
89-
lint: ## check style with flake8 and isort
87+
lint:
9088
invoke lint
9189

92-
lint-docs: ## check docs formatting with doc8 and pydocstyle
93-
doc8 . docs/
94-
pydocstyle copulas/
95-
9690
.PHONY: fix-lint
97-
fix-lint: ## fix lint issues using autoflake, autopep8, and isort
98-
find copulas tests -name '*.py' | xargs autoflake --in-place --remove-all-unused-imports --remove-unused-variables
99-
autopep8 --in-place --recursive --aggressive copulas tests
100-
isort --apply --atomic --recursive copulas tests
101-
91+
fix-lint:
92+
ruff check --fix .
93+
ruff format .
10294

10395
# TEST TARGETS
10496

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ And you will see something like this:
7373
```
7474
============================ 169 passed, 1 skipped, 3 warnings in 7.10s ============================
7575
flake8 copulas tests examples
76-
isort -c --recursive copulas tests examples
76+
isort -c copulas tests examples
7777
```
7878

7979
The execution has finished with no errors, 1 test skipped and 3 warnings.

copulas/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__author__ = 'DataCebo, Inc.'
66
__email__ = '[email protected]'
7-
__version__ = '0.11.0'
7+
__version__ = '0.11.1.dev1'
88

99
import contextlib
1010
import importlib
@@ -86,7 +86,8 @@ def validate_random_state(random_state):
8686
else:
8787
raise TypeError(
8888
f'`random_state` {random_state} expected to be an int '
89-
'or `np.random.RandomState` object.')
89+
'or `np.random.RandomState` object.'
90+
)
9091

9192

9293
def get_instance(obj, **kwargs):
@@ -192,8 +193,7 @@ def decorated(self, X, *args, **kwargs):
192193

193194
if len(X.shape) == 2:
194195
return np.fromiter(
195-
(function(self, *x, *args, **kwargs) for x in X),
196-
np.dtype('float64')
196+
(function(self, *x, *args, **kwargs) for x in X), np.dtype('float64')
197197
)
198198

199199
else:
@@ -243,7 +243,6 @@ def check_valid_values(function):
243243
"""
244244

245245
def decorated(self, X, *args, **kwargs):
246-
247246
if isinstance(X, pd.DataFrame):
248247
W = X.to_numpy()
249248

@@ -321,7 +320,7 @@ def _find_addons():
321320
try:
322321
addon = entry_point.load()
323322
except Exception: # pylint: disable=broad-exception-caught
324-
msg = f'Failed to load "{entry_point.name}" from "{entry_point.module_name}".'
323+
msg = f'Failed to load "{entry_point.name}" from "{entry_point.value}".'
325324
warnings.warn(msg)
326325
continue
327326

0 commit comments

Comments
 (0)