Skip to content
Merged
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
6 changes: 2 additions & 4 deletions .github/workflows/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'windows-latest' && matrix.python-version == 3.6
run: python -m pip install pywinpty==2.0.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/minimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'windows-latest' && matrix.python-version == 3.6
run: python -m pip install pywinpty==2.0.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/numerical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'windows-latest' && matrix.python-version == 3.6
run: python -m pip install pywinpty==2.0.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, macos-latest] # skip windows bc rundoc fails
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
tutorials:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'windows-latest' && matrix.python-version == 3.6
run: python -m pip install pywinpty==2.0.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## Requirements

**Copulas** has been developed and tested on [Python 3.6, 3.7 and 3.8](https://www.python.org/downloads/)
**Copulas** has been developed and tested on
[Python 3.7, 3.8, 3.9, 3.10 and 3.11](https://www.python.org/downloads/)

Also, although it is not strictly required, the usage of a [virtualenv](
https://virtualenv.pypa.io/en/latest/) is highly recommended in order to avoid
Expand Down
29 changes: 11 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,38 +102,31 @@ fix-lint: ## fix lint issues using autoflake, autopep8, and isort

# TEST TARGETS

.PHONY: test-unit
test-unit: ## run unit tests using pytest
python -m pytest --disable-warnings --cov=copulas tests/unit
.PHONY: test-end-to-end
test-end-to-end: ## Tests to certify that all the functionalities from the library work as expected
invoke end-to-end

.PHONY: test-numerical
test-numerical: ## run numerical tests using pytest
python -m pytest --disable-warnings --cov=copulas tests/numerical

.PHONY: test-end-to-end
test-end-to-end: ## run end-to-end tests using pytest
python -m pytest --disable-warnings --cov=copulas tests/end-to-end
test-numerical: ## Test that validate the functionality for the library from a numerical point of view
invoke numerical

.PHONY: test-pytest
test-pytest: ## run all the tests using pytest
invoke pytest
.PHONY: test-unit
test-unit: ## run the unit tests for copulas
invoke unit

.PHONY: test-readme
test-readme: ## run the readme snippets
invoke readme

.PHONY: test-tutorials
test-tutorials: ## run the tutorial notebooks
test-tutorials: ## run the tutorials notebooks
invoke tutorials

.PHONY: test
test: test-pytest test-readme test-tutorials ## test everything that needs test dependencies

.PHONY: test-devel
test-devel: lint docs ## test everything that needs development dependencies
test: test-unit test-numerical test-end-to-end test-tutorials test-readme ## run all the tests

.PHONY: test-all
test-all: ## test using tox
test-all: ## test everything using tox
tox -r

.PHONY: coverage
Expand Down
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
history = history_file.read()

install_requires = [
"matplotlib>=3.2.0,<3.4;python_version<'3.7'",
"matplotlib>=3.4.0,<4;python_version>='3.7' and python_version<'3.10'",
"matplotlib>=3.6.0,<4;python_version>='3.10'",
"numpy>=1.18.0,<1.20.0;python_version<'3.7'",
"numpy>=1.20.0,<2;python_version>='3.7' and python_version<'3.10'",
Comment thread
amontanez24 marked this conversation as resolved.
Resolved
"numpy>=1.22.0,<2;python_version>='3.10'",
"numpy>=1.23.3,<2;python_version>='3.10'",
"pandas>=1.1.3,<2;python_version<'3.10'",
"pandas>=1.3.4,<2;python_version>='3.10'",
"pandas>=1.5.0,<2;python_version>='3.10'",
"scipy>=1.5.4,<2;python_version<'3.10'",
"scipy>=1.8.0,<2;python_version>='3.10'",
"scipy>=1.9.2,<2;python_version>='3.10'",
]

development_requires = [
Expand Down Expand Up @@ -87,6 +85,7 @@
]

tutorials_require = [
'markupsafe<=2.0.1',
'scikit-learn>=0.24,<1.2',
'jupyter>=1.0.0,<2',
]
Expand All @@ -111,11 +110,11 @@
'License :: Free for non-commercial use',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
description='Create tabular synthetic data using copulas-based modeling.',
Expand All @@ -132,7 +131,7 @@
keywords='copulas',
name='copulas',
packages=find_packages(include=['copulas', 'copulas.*']),
python_requires='>=3.6,<3.11',
python_requires='>=3.7,<3.12',
setup_requires=setup_requires,
test_suite='tests',
tests_require=tests_require,
Expand Down
6 changes: 6 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import glob
import inspect
import operator
import os
import re
Expand All @@ -19,6 +20,11 @@
'==': operator.eq,
}


if not hasattr(inspect, 'getargspec'):
inspect.getargspec = inspect.getfullargspec
Comment thread
pvk-developer marked this conversation as resolved.
Resolved


@task
def check_dependencies(c):
c.run('python -m pip check')
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-lint, py3{6,7,8,9,10}-{readme,unit,end_to_end,numerical,minimum,tutorials}
envlist = py38-lint, py3{7,8,9,10,11}-{readme,unit,end_to_end,numerical,minimum,tutorials}

[testenv]
skipsdist = false
Expand Down