-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from slyapustin/django-python-upgrade
Django 4.2-5.2 support
- Loading branch information
Showing
7 changed files
with
80 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ | |
|
||
## Requirements | ||
|
||
* Python >=3.8 | ||
* Django >=3.2 | ||
* Python >=3.9 | ||
* Django >=4.2 | ||
|
||
## Design | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
VERSION = (1, 0, 0) | ||
VERSION = (1, 1, 0) | ||
|
||
|
||
def get_version(): | ||
version = '%s.%s' % (VERSION[0], VERSION[1]) | ||
"""Return the version as a human-format string.""" | ||
version = f"{VERSION[0]}.{VERSION[1]}" | ||
# Append 3rd digit if > 0 | ||
if VERSION[2]: | ||
version = '%s.%s' % (version, VERSION[2]) | ||
version = f"{version}.{VERSION[2]}" | ||
|
||
return version | ||
|
||
|
||
default_app_config = 'django_classified.apps.DjangoClassifiedConfig' | ||
default_app_config = "django_classified.apps.DjangoClassifiedConfig" | ||
name = "django_classified" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[metadata] | ||
description-file = README.md | ||
description_file = README.md | ||
name = django-classified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,38 +3,40 @@ | |
|
||
from django_classified import get_version # noqa isort:skip | ||
|
||
with open("README.md") as fh: | ||
with open("README.md", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
author='Sergey Lyapustin', | ||
author="Sergey Lyapustin", | ||
name="django-classified", | ||
version=get_version().replace(' ', '-'), | ||
version=get_version().replace(" ", "-"), | ||
author_email="[email protected]", | ||
description="Django Classified", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/slyapustin/django-classified", | ||
keywords='django classified', | ||
packages=setuptools.find_packages(exclude=('demo',)), | ||
python_requires=">=3.8", | ||
keywords="django classified", | ||
packages=setuptools.find_packages(exclude=("demo",)), | ||
python_requires=">=3.9", | ||
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=[ | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
install_requires=[ | ||
"django-bootstrap-form", | ||
"django-filter", | ||
"Django>=3.2,<4.1", | ||
"Pillow>=6.0", | ||
"sorl-thumbnail>=12.6", | ||
"Django>=4.2,<5.2", | ||
"Pillow", | ||
"sorl-thumbnail", | ||
"unidecode", | ||
# Babel is used for currency formatting | ||
'Babel>=1.0,<3.0', | ||
] | ||
"babel", | ||
], | ||
) |