Skip to content

Commit

Permalink
update python & django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Apr 1, 2024
1 parent 19de2ba commit b8bb181
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,41 @@ jobs:
TEST_VARIANT: ${{ matrix.variant }}
strategy:
matrix:
python-version: ["3.11", "3.10", "3.9", "3.8"]
django-version: [4.1.7]
drf-version: [3.14.0]
pandas-version: [1.5.3]
python-version: ["3.12", "3.11", "3.10"]
django-version: [5.0.3]
drf-version: [3.15.1]
pandas-version: [2.1.4]
variant: ['']
include:
- python-version: "3.11"
django-version: 4.1.7
drf-version: 3.14.0
pandas-version: 1.5.3
- python-version: "3.12"
django-version: 5.0.3
drf-version: 3.15.1
pandas-version: 2.1.4
variant: matplotlib
- python-version: "3.11"
django-version: 4.1.7
- python-version: "3.12"
django-version: 5.0.3
drf-version: 3.15.1
pandas-version: 2.1.4
variant: django-pandas
- python-version: "3.9"
django-version: 4.2.11
drf-version: 3.14.0
pandas-version: 1.5.3
variant: django-pandas
- python-version: "3.11"
django-version: 3.2.14
drf-version: 3.13.1
variant: ''
- python-version: "3.8"
django-version: 4.2.11
drf-version: 3.14.0
pandas-version: 1.5.3
variant: ''
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
python -m pip install build
python -m pip install flake8 wheel
python -m pip install django==${{ matrix.django-version }}
Expand Down Expand Up @@ -69,22 +74,22 @@ jobs:
PACKAGE: ${{ matrix.package }}
strategy:
matrix:
python-version: ["3.11"]
node-version: [18]
python-version: ["3.12"]
node-version: [20]
package:
- pandas
- chart
- analyst
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -97,11 +102,12 @@ jobs:
run: |
cd packages/$PACKAGE
npm run test
- uses: smartsquaregmbh/delete-old-packages@v0.4.0
- uses: smartsquaregmbh/delete-old-packages@v0.8.0
if: github.event_name == 'push'
with:
keep: 5
names: ${{ matrix.package }}
type: npm
- name: Publish to Github Packages
if: github.event_name == 'push'
run: |
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
description = "Serves up pandas dataframes via the Django REST Framework for client-side visualizations."
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -20,17 +20,16 @@ classifiers = [
"Natural Language :: English",
"Programming Language :: JavaScript",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"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",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
]
Expand Down Expand Up @@ -58,4 +57,4 @@ include = ["rest_pandas*"]

[tool.setuptools_scm]
write_to = "packages/analyst/src/version.js"
write_to_template = 'export default "{version}";'
write_to_template = 'export default "{version}";'

0 comments on commit b8bb181

Please sign in to comment.