-
-
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.
Update dependencies and version for Python 3.9+ and Django 4.2+
- Loading branch information
1 parent
8b835d5
commit b6c54e1
Showing
7 changed files
with
35 additions
and
22 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 |
---|---|---|
|
@@ -7,34 +7,36 @@ | |
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", | ||
"Django>=4.2,<5.2", | ||
"Pillow>=6.0", | ||
"sorl-thumbnail>=12.6", | ||
"unidecode", | ||
# Babel is used for currency formatting | ||
'Babel>=1.0,<3.0', | ||
] | ||
"Babel>=1.0,<3.0", | ||
], | ||
) |