Skip to content

Commit

Permalink
Decrease minimum required Python version from 3.12 to 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
EpocDotFr committed Apr 11, 2024
1 parent dc73138 commit cab12d2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ site generator.

![Python versions](https://img.shields.io/pypi/pyversions/staticjinjaplus.svg) ![Version](https://img.shields.io/pypi/v/staticjinjaplus.svg) ![License](https://img.shields.io/pypi/l/staticjinjaplus.svg)

[PyPI](https://pypi.org/project/staticjinjaplus/) - [Documentation](https://github.com/EpocDotFr/staticjinjaplus?tab=readme-ov-file#usage) - [Source Code](https://github.com/EpocDotFr/staticjinjaplus) - [Issue Tracker](https://github.com/EpocDotFr/staticjinjaplus/issues) - [Changelog](https://github.com/EpocDotFr/staticjinjaplus/releases)
[PyPI](https://pypi.org/project/staticjinjaplus/) - [Documentation](https://github.com/EpocDotFr/staticjinjaplus?tab=readme-ov-file#readme) - [Source Code](https://github.com/EpocDotFr/staticjinjaplus) - [Issue Tracker](https://github.com/EpocDotFr/staticjinjaplus/issues) - [Changelog](https://github.com/EpocDotFr/staticjinjaplus/releases)

Citing staticjinja's documentation, "most static site generators are cumbersome to use". While I fully agree, and while
I find staticjinja to be an awesome piece of software, there's still some gaps here and there that needs to be filled in
Expand Down
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
URL = 'https://github.com/EpocDotFr/staticjinjaplus'
EMAIL = 'contact.nospam@epoc.nospam.fr'
AUTHOR = 'Maxime "Epoc" Gross'
REQUIRES_PYTHON = '>=3.12'
REQUIRES_PYTHON = '>=3.9'
VERSION = None # Pulled from staticjinjaplus/__version__.py

REQUIRED = [
Expand All @@ -34,21 +34,27 @@
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Environment :: Console',
'Environment :: Web Environment',
'Topic :: Software Development :: Libraries',
'Topic :: Text Processing :: Markup :: XML',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: Markdown',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Intended Audience :: Developers',
]

PROJECT_URLS = {
'Documentation': 'https://github.com/EpocDotFr/staticjinjaplus?tab=readme-ov-file#usage',
'Documentation': 'https://github.com/EpocDotFr/staticjinjaplus?tab=readme-ov-file#readme',
'Source': 'https://github.com/EpocDotFr/staticjinjaplus',
'Tracker': 'https://github.com/EpocDotFr/staticjinjaplus/issues',
'Changelog': 'https://github.com/EpocDotFr/staticjinjaplus/releases',
}

KEYWORDS = ['static', 'website', 'site', 'generator', 'staticjinja', 'jinja', 'jinja2']

here = path.abspath(path.dirname(__file__))

try:
Expand Down Expand Up @@ -132,5 +138,6 @@ def run(self):
cmdclass={
'upload': UploadCommand,
},
project_urls=PROJECT_URLS
project_urls=PROJECT_URLS,
keywords=KEYWORDS
)
1 change: 0 additions & 1 deletion staticjinjaplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from environs import Env
from typing import Dict
import locale
import sys


def load_config() -> Dict:
Expand Down
2 changes: 1 addition & 1 deletion staticjinjaplus/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.1.0'
4 changes: 2 additions & 2 deletions staticjinjaplus/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


class EnhancedThreadingHTTPServer(ThreadingHTTPServer):
"""Same as ThreadingHTTPServer but the directory to be served may be passed to its constructor. It also try to listen
to both IPv4 and IPv6 loopback addresses"""
"""Same as ThreadingHTTPServer but the directory to be served may be passed to its constructor. It also tries to
listen to both IPv4 and IPv6 loopback addresses"""
allow_reuse_address = True
daemon_threads = True
has_dualstack_ipv6: bool
Expand Down

0 comments on commit cab12d2

Please sign in to comment.