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

Development version to upgrade underlying libraries and python version #400

Merged
merged 5 commits into from
Feb 20, 2024
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/tests_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10]
python: [3.11]
env:
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_05.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10]
python: [3.11]
env:
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10]
python: [3.11]
env:
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_23.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10]
python: [3.11]
env:
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10]
python: [3.11]
env:
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
-------

9.8.0.dev (2024-02-19)
----------------------

- Upgrading libraries to avoid failures in Apple M1 machines.
- Fixing local predictions input data preprocessing for missings.

9.7.1 (2023-12-08)
------------------

Expand Down
3 changes: 2 additions & 1 deletion bigml/modelfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def normalize(self, value):
"""
if isinstance(value, str) and not isinstance(value, str):
value = str(value, "utf-8")
return None if value in self.missing_tokens else value
return None if hasattr(self, "missing_tokens") and \
value in self.missing_tokens else value

def fill_numeric_defaults(self, input_data):
"""Fills the value set as default for numeric missing fields if user
Expand Down
2 changes: 1 addition & 1 deletion bigml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '9.7.1'
__version__ = '9.8.0.dev'
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
version = re.search("__version__ = '([^']+)'",
open(version_py_path).read()).group(1)

TOPIC_MODELING_DEPENDENCIES = ["cython", "pystemmer==2.0.1"]
IMAGES_DEPENDENCIES = ["bigml-sensenet==0.7.0"]
TOPIC_MODELING_DEPENDENCIES = ["cython", "pystemmer==2.2.0.1"]
IMAGES_DEPENDENCIES = ["bigml-sensenet==0.7.2"]

# Concatenate files into the long description
file_contents = []
Expand All @@ -51,7 +51,7 @@
license="http://www.apache.org/licenses/LICENSE-2.0",
setup_requires = ['pytest'],
install_requires = ["unidecode", "bigml-chronos>=0.4.3", "requests",
"requests-toolbelt", "msgpack", "numpy>=1.22,<1.24", "scipy",
"requests-toolbelt", "msgpack", "numpy>=1.22", "scipy",
"javascript"],
extras_require={"images": IMAGES_DEPENDENCIES,
"topics": TOPIC_MODELING_DEPENDENCIES,
Expand Down
Loading