mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 11:42:54 +03:00
Deprecate Python 3.5, 3.6 and Django 1.11
This commit is contained in:
parent
a59706fd95
commit
fa8373cafe
@ -1,49 +1,5 @@
|
||||
version: 2
|
||||
jobs:
|
||||
test-python35:
|
||||
docker:
|
||||
- image: python:3.5-alpine
|
||||
- image: postgres:11.0
|
||||
environment:
|
||||
POSTGRES_DB: 'localizedfields'
|
||||
POSTGRES_USER: 'localizedfields'
|
||||
POSTGRES_PASSWORD: 'localizedfields'
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install packages
|
||||
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
|
||||
- run:
|
||||
name: Install Python packages
|
||||
command: pip install -r requirements/test.txt
|
||||
- run:
|
||||
name: Run tests
|
||||
command: tox -e 'py35-dj{111,20,21}'
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
|
||||
|
||||
test-python36:
|
||||
docker:
|
||||
- image: python:3.6-alpine
|
||||
- image: postgres:11.0
|
||||
environment:
|
||||
POSTGRES_DB: 'localizedfields'
|
||||
POSTGRES_USER: 'localizedfields'
|
||||
POSTGRES_PASSWORD: 'localizedfields'
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install packages
|
||||
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
|
||||
- run:
|
||||
name: Install Python packages
|
||||
command: pip install -r requirements/test.txt
|
||||
- run:
|
||||
name: Run tests
|
||||
command: tox -e 'py36-dj{111,20,21}'
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
|
||||
|
||||
test-python37:
|
||||
docker:
|
||||
- image: python:3.7-alpine
|
||||
@ -62,13 +18,13 @@ jobs:
|
||||
command: pip install -r requirements/test.txt
|
||||
- run:
|
||||
name: Run tests
|
||||
command: tox -e 'py37-dj{111,20,21}'
|
||||
command: tox -e 'py37-dj{20,21,22}'
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
|
||||
|
||||
lint:
|
||||
docker:
|
||||
- image: python:3.5-alpine
|
||||
- image: python:3.7-alpine
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
@ -86,7 +42,5 @@ workflows:
|
||||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- test-python35
|
||||
- test-python36
|
||||
- test-python37
|
||||
- lint
|
||||
|
@ -12,7 +12,7 @@ django-localized-fields
|
||||
|
||||
``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.
|
||||
|
||||
This package requires Python 3.5 or newer, Django 1.11 or newer and PostgreSQL 9.6 or newer.
|
||||
This package requires Python 3.7 or newer, Django 2.0 or newer and PostgreSQL 10 or newer.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
@ -385,11 +385,11 @@ Frequently asked questions (FAQ)
|
||||
|
||||
1. Does this package work with Python 2?
|
||||
|
||||
No. Only Python 3.5 or newer is supported. We're using type hints. These do not work well under older versions of Python.
|
||||
No. Only Python 3.7 or newer is supported. We're using type hints. These do not work well under older versions of Python.
|
||||
|
||||
2. With what Django versions does this package work?
|
||||
|
||||
Only Django 1.11 or newer is supported, this includes Django 2.X. This is because we rely on Django's ``HStoreField`` and template-based widget rendering.
|
||||
Only Django 2.x or newer is supported. This is because we rely on Django's ``HStoreField`` and template-based widget rendering.
|
||||
|
||||
3. Does this package come with support for Django Admin?
|
||||
|
||||
@ -399,7 +399,7 @@ Frequently asked questions (FAQ)
|
||||
|
||||
You should pick whatever you feel comfortable with. This package stores translations in your database without having to have translation tables. It however only works on PostgreSQL.
|
||||
|
||||
5. I am using PostgreSQL <9.6, can I use this?
|
||||
5. I am using PostgreSQL <10, can I use this?
|
||||
|
||||
No. The ``hstore`` data type was introduced in PostgreSQL 9.6.
|
||||
|
||||
|
6
setup.py
6
setup.py
@ -33,7 +33,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8
|
||||
|
||||
setup(
|
||||
name='django-localized-fields',
|
||||
version='5.4',
|
||||
version='6.0b1',
|
||||
packages=find_packages(exclude=['tests']),
|
||||
include_package_data=True,
|
||||
license='MIT License',
|
||||
@ -44,8 +44,8 @@ setup(
|
||||
author_email='open-source@sectorlabs.ro',
|
||||
keywords=['django', 'localized', 'language', 'models', 'fields'],
|
||||
install_requires=[
|
||||
'django-postgres-extra>=1.22',
|
||||
'Django>=1.11',
|
||||
'django-postgres-extra>=2.0a7',
|
||||
'Django>=2.0',
|
||||
'deprecation==2.0.7'
|
||||
],
|
||||
classifiers=[
|
||||
|
Loading…
x
Reference in New Issue
Block a user