Skip to content

Commit

Permalink
Supporting Python 3.12 (#6)
Browse files Browse the repository at this point in the history
* Supporting Python 3.12

* Update main.yml

* Update highstock_helper.py
  • Loading branch information
oualib authored Oct 30, 2023
1 parent 6df56bf commit 6fde671
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]

steps:
- name: Check out repository
Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highcharts/highcharts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')
from past.builtins import basestring

from jinja2 import Environment, PackageLoader
Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highmaps/highmap_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')
from past.builtins import basestring

from urllib.request import urlopen
Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highmaps/highmaps.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')

from past.builtins import basestring

Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highstock/highstock.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')

from jinja2 import Environment, PackageLoader

Expand Down
8 changes: 6 additions & 2 deletions vertica_highcharts/highstock/highstock_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings
from past.builtins import basestring

from urllib.request import urlopen
Expand Down

0 comments on commit 6fde671

Please sign in to comment.