Skip to content

Commit c59cbb0

Browse files
committed
update library versions
1 parent 8a3222d commit c59cbb0

File tree

7 files changed

+35
-33
lines changed

7 files changed

+35
-33
lines changed

.github/workflows/test.yml

+18-23
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,31 @@ on: [push, pull_request]
55
jobs:
66
build:
77
name: ${{ matrix.variant }} py=${{ matrix.python-version }} dj=${{ matrix.django-version }} drf=${{ matrix.drf-version }} pandas=${{ matrix.pandas-version }}
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99
env:
1010
TEST_VARIANT: ${{ matrix.variant }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.10", "3.9", "3.8"]
14-
django-version: [4.0.6]
15-
drf-version: [3.13.1]
16-
pandas-version: [1.4.3]
13+
python-version: ["3.11", "3.10", "3.9", "3.8"]
14+
django-version: [4.1.7]
15+
drf-version: [3.14.0]
16+
pandas-version: [1.5.3]
1717
variant: ['']
1818
include:
19-
- python-version: "3.10"
20-
django-version: 4.0.6
21-
drf-version: 3.13.1
22-
pandas-version: 1.4.3
19+
- python-version: "3.11"
20+
django-version: 4.1.7
21+
drf-version: 3.14.0
22+
pandas-version: 1.5.3
2323
variant: matplotlib
24-
- python-version: "3.10"
25-
django-version: 4.0.6
26-
drf-version: 3.13.1
27-
pandas-version: 1.4.3
24+
- python-version: "3.11"
25+
django-version: 4.1.7
26+
drf-version: 3.14.0
27+
pandas-version: 1.5.3
2828
variant: django-pandas
29-
- python-version: "3.10"
30-
django-version: 3.2.14
31-
drf-version: 3.13.1
32-
pandas-version: 1.4.3
33-
variant: ''
34-
- python-version: "3.7"
29+
- python-version: "3.11"
3530
django-version: 3.2.14
3631
drf-version: 3.13.1
37-
pandas-version: 1.3.5
32+
pandas-version: 1.5.3
3833
variant: ''
3934
steps:
4035
- uses: actions/checkout@v2
@@ -66,13 +61,13 @@ jobs:
6661
run: python -m unittest discover -s tests -t . -v
6762
npm:
6863
name: "@wq/${{ matrix.package }}"
69-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-22.04
7065
env:
7166
PACKAGE: ${{ matrix.package }}
7267
strategy:
7368
matrix:
74-
python-version: ["3.10"]
75-
node-version: [16]
69+
python-version: ["3.11"]
70+
node-version: [18]
7671
package:
7772
- pandas
7873
- chart

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2019, S. Andrew Sheppard, https://wq.io/
1+
Copyright (c) 2014-2023, S. Andrew Sheppard, https://wq.io/
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ def readme():
7373
"Programming Language :: Python :: 3.8",
7474
"Programming Language :: Python :: 3.9",
7575
"Programming Language :: Python :: 3.10",
76+
"Programming Language :: Python :: 3.11",
7677
"Framework :: Django",
7778
"Framework :: Django :: 3.2",
7879
"Framework :: Django :: 4.0",
80+
"Framework :: Django :: 4.1",
7981
"Topic :: Scientific/Engineering :: Information Analysis",
8082
"Topic :: Scientific/Engineering :: Visualization",
8183
],

tests/files/multitimeseries.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
<html lang="en-us" dir="ltr">
44
<head>
55
<title>Multi Time Series</title>
6-
<link rel="stylesheet" type="text/css" href="admin/css/base.css">
6+
<link rel="stylesheet" href="admin/css/base.css">
7+
<link href="admin/css/dark_mode.css" rel="stylesheet">
78

89

9-
<link rel="stylesheet" type="text/css" href="admin/css/forms.css">
10+
<link rel="stylesheet" href="admin/css/forms.css" type="text/css">
1011

1112

1213

1314

1415
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
15-
<link rel="stylesheet" type="text/css" href="admin/css/responsive.css">
16+
<link rel="stylesheet" href="admin/css/responsive.css">
1617

1718

1819
<meta name="robots" content="NONE,NOARCHIVE">
1920
</head>
2021

2122
<body class=""
22-
data-admin-utc-offset="-18000">
23+
data-admin-utc-offset="0">
2324

2425
<!-- Container -->
2526
<div id="container">

tests/files/timeseries.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
<html lang="en-us" dir="ltr">
44
<head>
55
<title>Time Series Custom</title>
6-
<link rel="stylesheet" type="text/css" href="admin/css/base.css">
6+
<link rel="stylesheet" href="admin/css/base.css">
7+
<link href="admin/css/dark_mode.css" rel="stylesheet">
78

89

9-
<link rel="stylesheet" type="text/css" href="admin/css/forms.css">
10+
<link rel="stylesheet" href="admin/css/forms.css" type="text/css">
1011

1112

1213

1314

1415
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
15-
<link rel="stylesheet" type="text/css" href="admin/css/responsive.css">
16+
<link rel="stylesheet" href="admin/css/responsive.css">
1617

1718

1819
<meta name="robots" content="NONE,NOARCHIVE">
1920
</head>
2021

2122
<body class=""
22-
data-admin-utc-offset="-18000">
23+
data-admin-utc-offset="0">
2324

2425
<!-- Container -->
2526
<div id="container">

tests/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
},
3333
]
3434

35+
TIME_ZONE = "UTC"
3536
DEBUG = True
3637

3738

tests/test_views.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
class PandasTestCase(APITestCase):
12+
maxDiff = None
13+
1214
def setUp(self):
1315
data = (
1416
("2014-01-01", 0.5),
@@ -60,7 +62,7 @@ def test_view_json(self):
6062
self.assertIn("id", data[0])
6163
self.assertEqual(data[0]["id"], 1)
6264
self.assertEqual(data[0]["value"], 0.5)
63-
self.assertEqual(data[0]["date"], "2014-01-01T00:00:00.000Z")
65+
self.assertEqual(data[0]["date"], "2014-01-01T00:00:00.000")
6466

6567
def test_view_json_kwargs(self):
6668
response = self.client.get("/timeseries.json?date_format=epoch")

0 commit comments

Comments
 (0)