Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
Drop Python 3.7 support. Test for Django 4.2.
  • Loading branch information
CarliJoy committed Oct 1, 2023
1 parent ae456e9 commit 388a19e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
image: postgres:12-alpine
# Set health checks to wait until postgres has started
env:
POSTGRES_USER: "django_pint_gh_action"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ Updating these dependencies have to be done in multiple places:
- `README.md`: Describing it to end users
- `tox.ini`: For local testing
- `setup.cfg`: For usage with pip and displaying it in PyPa
- `.travis.yaml`: For the CI/CD Definition
- `.github/workflows/test.yaml`: For the CI/CD Definition
7 changes: 3 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ classifiers =
Development Status :: 4 - Beta
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
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
Framework :: Django
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Framework :: Django :: 4.2
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Expand All @@ -44,14 +44,13 @@ package_dir =
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
# Add here dependencies of your project (semicolon/line-separated), e.g.
install_requires =
importlib-metadata; python_version<"3.8"
Django>=3.2
pint>=0.16
# The usage of test_requires is discouraged, see `Dependency Management` docs
# of PyScaffold
# tests_require = pytest; pytest-cov
# Require a specific Python version, e.g. Python 2.7 or >= 3.4
python_requires = >=3.7
python_requires = >=3.8

[options.packages.find]
where = src
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ minversion = 4.0
;requires = tox-docker>4
isolated_build = True
envlist =
{py37,py38,py39,py310}-django32
{py38,py39,py310}-django40
{py38,py39,py310,py311}-django32
{py38,py39,py310,py311}-django42


[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[docker:postgres]
image = postgres:11-alpine
image = postgres:12-alpine
# Environment variables are passed to the container. They are only
# available to that container, and not to the testenv, other
# containers, or as replacements in other parts of tox.ini
Expand Down Expand Up @@ -45,10 +45,10 @@ setenv =
TOXINIDIR = {toxinidir}
POSTGRES_PASSWORD={env:POSTGRES_PASSWORD:django_pint_tox}
POSTGRES_USER={env:POSTGRES_USER:django_pint_tox}
POSTGRES_DB={env:POSTGRES_USER:django_pint}
POSTGRES_DB={env:POSTGRES_DB:django_pint}
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
psycopg2-binary
pytest
pytest-cov
Expand Down

0 comments on commit 388a19e

Please sign in to comment.