Skip to content

Commit 34330dd

Browse files
committed
Add back python3.6,3.7 wfs
1 parent 5d35136 commit 34330dd

File tree

4 files changed

+77
-17
lines changed

4 files changed

+77
-17
lines changed

.circleci/config.yml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,57 @@
11
version: 2
22
jobs:
3+
test-python36:
4+
docker:
5+
- image: python:3.6-alpine
6+
- image: postgres:12.0
7+
environment:
8+
POSTGRES_DB: 'localizedfields'
9+
POSTGRES_USER: 'localizedfields'
10+
POSTGRES_PASSWORD: 'localizedfields'
11+
steps:
12+
- checkout
13+
- run:
14+
name: Install packages
15+
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
316

17+
- run:
18+
name: Install Python packages
19+
command: pip install --progress-bar off .[test]
20+
21+
- run:
22+
name: Run tests
23+
command: tox -e 'py36-dj{20,21,22,30,31,32}'
24+
environment:
25+
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
26+
27+
- store_test_results:
28+
path: reports
29+
test-python37:
30+
docker:
31+
- image: python:3.7-alpine
32+
- image: postgres:12.0
33+
environment:
34+
POSTGRES_DB: 'localizedfields'
35+
POSTGRES_USER: 'localizedfields'
36+
POSTGRES_PASSWORD: 'localizedfields'
37+
steps:
38+
- checkout
39+
- run:
40+
name: Install packages
41+
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
42+
43+
- run:
44+
name: Install Python packages
45+
command: pip install --progress-bar off .[test]
46+
47+
- run:
48+
name: Run tests
49+
command: tox -e 'py37-dj{20,21,22,30,31,32}'
50+
environment:
51+
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
52+
53+
- store_test_results:
54+
path: reports
455
test-python38:
556
docker:
657
- image: python:3.8-alpine
@@ -21,7 +72,7 @@ jobs:
2172

2273
- run:
2374
name: Run tests
24-
command: tox -e 'py38-dj{32,40,41,42}'
75+
command: tox -e 'py38-dj{20,21,22,30,31,32,40,41,42}'
2576
environment:
2677
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
2778

@@ -48,7 +99,7 @@ jobs:
4899

49100
- run:
50101
name: Run tests
51-
command: tox -e 'py39-dj{32,40,41,42}'
102+
command: tox -e 'py39-dj{30,31,32,40,41,42}'
52103
environment:
53104
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
54105

@@ -130,6 +181,8 @@ workflows:
130181
version: 2
131182
build:
132183
jobs:
184+
- test-python36
185+
- test-python37
133186
- test-python38
134187
- test-python39
135188
- test-python310

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
| | | |
2-
|--------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1+
| | | |
2+
|--------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
33
| :white_check_mark: | **Tests** | [![CircleCI](https://circleci.com/gh/SectorLabs/django-localized-fields/tree/master.svg?style=svg)](https://circleci.com/gh/SectorLabs/django-localized-fields/tree/master) |
4-
| :memo: | **License** | [![License](https://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org) |
5-
| :package: | **PyPi** | [![PyPi](https://badge.fury.io/py/django-localized-fields.svg)](https://pypi.python.org/pypi/django-localized-fields) |
6-
| <img src="https://cdn.iconscout.com/icon/free/png-256/django-1-282754.png" width="22px" height="22px" align="center" /> | **Django Versions** | 3.2, 4.0, 4.1, 4.2, 5.0 |
7-
| <img src="http://www.iconarchive.com/download/i73027/cornmanthe3rd/plex/Other-python.ico" width="22px" height="22px" align="center" /> | **Python Versions** | 3.8, 3.9, 3.10, 3.11 |
8-
| :book: | **Documentation** | [Read The Docs](https://django-localized-fields.readthedocs.io) |
9-
| :warning: | **Upgrade** | [Upgrade fom v5.x](https://django-localized-fields.readthedocs.io/en/latest/releases.html#v6-0)
10-
| :checkered_flag: | **Installation** | [Installation Guide](https://django-localized-fields.readthedocs.io/en/latest/installation.html) |
4+
| :memo: | **License** | [![License](https://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org) |
5+
| :package: | **PyPi** | [![PyPi](https://badge.fury.io/py/django-localized-fields.svg)](https://pypi.python.org/pypi/django-localized-fields) |
6+
| <img src="https://cdn.iconscout.com/icon/free/png-256/django-1-282754.png" width="22px" height="22px" align="center" /> | **Django Versions** | 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0 |
7+
| <img src="http://www.iconarchive.com/download/i73027/cornmanthe3rd/plex/Other-python.ico" width="22px" height="22px" align="center" /> | **Python Versions** | 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 |
8+
| :book: | **Documentation** | [Read The Docs](https://django-localized-fields.readthedocs.io) |
9+
| :warning: | **Upgrade** | [Upgrade fom v5.x](https://django-localized-fields.readthedocs.io/en/latest/releases.html#v6-0)
10+
| :checkered_flag: | **Installation** | [Installation Guide](https://django-localized-fields.readthedocs.io/en/latest/installation.html) |
1111

1212
`django-localized-fields` is an implementation of a field class for Django models that allows the field's value to be set in multiple languages. It does this by utilizing the ``hstore`` type (PostgreSQL specific), which is available as `models.HStoreField` since Django 1.10.
1313

@@ -21,8 +21,8 @@
2121
### Prerequisites
2222

2323
* PostgreSQL 12 or newer.
24-
* Django 3.2 or newer.
25-
* Python 3.8 or newer.
24+
* Django 2.0 or newer.
25+
* Python 3.6 or newer.
2626

2727
### Getting started
2828

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run(self):
3636

3737
setup(
3838
name="django-localized-fields",
39-
version="7.0b1",
39+
version="6.8b4",
4040
packages=find_packages(exclude=["tests"]),
4141
include_package_data=True,
4242
license="MIT License",
@@ -63,16 +63,18 @@ def run(self):
6363
"License :: OSI Approved :: MIT License",
6464
"Operating System :: OS Independent",
6565
"Programming Language :: Python",
66+
"Programming Language :: Python :: 3.6",
67+
"Programming Language :: Python :: 3.7",
6668
"Programming Language :: Python :: 3.8",
6769
"Programming Language :: Python :: 3.9",
6870
"Programming Language :: Python :: 3.10",
6971
"Programming Language :: Python :: 3.11",
7072
"Topic :: Internet :: WWW/HTTP",
7173
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
7274
],
73-
python_requires=">=3.8",
75+
python_requires=">=3.6",
7476
install_requires=[
75-
"Django>=3.2",
77+
"Django>=2.0",
7678
"django-postgres-extra>=2.0,<3.0",
7779
"deprecation>=2.0.7",
7880
],

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
[tox]
2-
envlist = py38-dj{32,40,41,42}, py39-dj{32,40,41,42}, py310-dj{32,40,41,42,50}, py311-dj{42,50}
2+
envlist = py36-dj{20,21,22,30,31,32}, py37-dj{20,21,22,30,31,32}, py38-dj{20,21,22,30,31,32,40,41,42}, py39-dj{30,31,32,40,41,42}, py310-dj{32,40,41,42,50}, py311-dj{42,50}
33

44
[testenv]
55
deps =
6+
dj20: Django>=2.0,<2.1
7+
dj21: Django>=2.1,<2.2
8+
dj22: Django>=2.2,<2.3
9+
dj30: Django>=3.0,<3.0.2
10+
dj31: Django>=3.1,<3.2
611
dj32: Django>=3.2,<4.0
712
dj40: Django>=4.0,<4.1
813
dj41: Django>=4.1,<4.2

0 commit comments

Comments
 (0)