Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating version and support #788

Merged
merged 3 commits into from
Oct 31, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: [3.9, "3.10", 3.11, 3.12]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: [3.9, "3.10", 3.11, 3.12]

steps:
- name: Checkout repository
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setuptools.setup(
name="verticapy",
version="1.0.0-beta.2",
version="1.0.0",
author="Badr Ouali",
author_email="[email protected]",
url="https://github.com/vertica/VerticaPy",
Expand All @@ -35,7 +35,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=[
"matplotlib<=3.5.3",
"numpy>=1.11.0",
Expand All @@ -58,8 +58,10 @@
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
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 = py39,py310,py311
envlist = py39,py310,py311,py312

[testenv]
passenv = *
Expand Down
2 changes: 1 addition & 1 deletion verticapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
)
__url__: str = "https://github.com/vertica/verticapy/"
__license__: str = "Apache License, Version 2.0"
__version__: str = "1.0.0-beta.2"
__version__: str = "1.0.0"

from verticapy._config.config import get_option, set_option
from verticapy._utils._sql._vertica_version import vertica_version
Expand Down
2 changes: 1 addition & 1 deletion verticapy/core/vdataframe/_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def sample(
assert 0 < x < 1, ValueError("Parameter 'x' must be between 0 and 1")
if method == "random":
random_state = conf.get_option("random_state")
random_seed = random.randint(-10e6, 10e6)
random_seed = random.randint(int(-10e6), int(10e6))
if isinstance(random_state, int):
random_seed = random_state
random_func = _seeded_random_function(random_seed)
Expand Down
2 changes: 1 addition & 1 deletion verticapy/core/vdataframe/_machine_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def train_test_split(
random_seed = (
random_state
if isinstance(random_state, int)
else random.randint(-10e6, 10e6)
else random.randint(int(-10e6), int(10e6))
)
random_func = _seeded_random_function(random_seed)
q = _executeSQL(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def cross_validate(
estimator.drop()
random_state = conf.get_option("random_state")
random_state = (
random.randint(-10e6, 10e6) if not random_state else random_state + i
random.randint(int(-10e6), int(10e6))
if not random_state
else random_state + i
)
train, test = input_relation.train_test_split(
test_size=float(1 / cv), order_by=[X[0]], random_state=random_state
Expand Down