Skip to content

Commit

Permalink
Add py12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Apr 4, 2024
1 parent 9fda880 commit e03f5dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
19 changes: 1 addition & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ license = { text = 'BSL-1.1' }
requires-python = '>=3.8,<3.13'
readme = 'README.md'
dependencies = [
<<<<<<< HEAD
"numpy>=1.20.0;python_version<'3.10'",
"numpy>=1.23.3;python_version>='3.10' and python_version<'3.12'",
"numpy>=1.26.0;python_version>='3.12'",
Expand All @@ -36,22 +35,6 @@ dependencies = [
"scikit-learn>=1.1.3;python_version>='3.11' and python_version<'3.12'",
"scikit-learn>=1.3.0;python_version>='3.12'",
'Faker>=17',
=======
"numpy>=1.20.0,<2;python_version<'3.10'",
"numpy>=1.23.3,<2;python_version>='3.10' and python_version<'3.12'",
"numpy>=1.26.0,<2;python_version>='3.12'",
"pandas>=1.1.3;python_version<'3.10'",
"pandas>=1.3.4;python_version>='3.10' and python_version<'3.11'",
"pandas>=1.5.0;python_version>='3.11'",
"scipy>=1.5.4,<2;python_version<'3.10'",
"scipy>=1.9.2,<2;python_version>='3.10' and python_version<'3.12'",
"scipy>=1.12.0,<2;python_version>='3.12'",
"scikit-learn>=0.24,<2;python_version<'3.10'",
"scikit-learn>=1.1.0;python_version>='3.10' and python_version<'3.11'",
"scikit-learn>=1.1.3,<2;python_version>='3.11' and python_version<'3.12'",
"scikit-learn>=1.3.0,<2;python_version>='3.12'",
'Faker>=17,<20',
>>>>>>> a1624cd (Add py12 support)
]

[project.urls]
Expand All @@ -65,7 +48,7 @@ dependencies = [
rdt = { main = 'rdt.cli.__main__:main' }

[project.optional-dependencies]
copulas = ['copulas>=0.10.0',]
copulas = ['copulas@git+https://[email protected]/sdv-dev/copulas.git',]
test = [
'rdt[copulas]',

Expand Down
1 change: 0 additions & 1 deletion rdt/transformers/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import numpy as np
import pandas as pd
from scipy.stats import norm
from pandas.api.types import is_numeric_dtype

from rdt.errors import TransformerInputError
from rdt.transformers.base import BaseTransformer
Expand Down
1 change: 1 addition & 0 deletions tests/integration/transformers/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def test_one_hot_categoricals():

# Run
transformed_data = transformer.fit_transform(test_data, column='A')

# Assert
pd.testing.assert_frame_equal(
transformed_data,
Expand Down

0 comments on commit e03f5dc

Please sign in to comment.