Skip to content

Commit

Permalink
Merge pull request #94 from mrf345/testing
Browse files Browse the repository at this point in the history
fix: setup optional requirement, and bump to 0.46
  • Loading branch information
mrf345 authored Jun 8, 2024
2 parents 712375c + c9bf68a commit 4030460
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_minify/about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.44"
__version__ = "0.46"
__doc__ = "Flask extension to minify html, css, js and less."
__license__ = "MIT"
__author__ = "Mohamed Feddad"
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from setuptools import setup

supported_versions = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
optional_requirements = {"go": 'tdewolff-minify; platform_system == "Linux"'}
basedir = path.abspath(path.dirname(__file__))
long_description = ""
requirements = []
Expand All @@ -19,7 +20,9 @@

if path.isdir(requirements_path):
with open(path.join(requirements_path, "main.txt")) as f:
requirements += [line for line in f.read().split("\n") if line]
requirements += [
line for line in f.read().split("\n") if line and "[go]" not in line
]
test_requirements += requirements

with open(path.join(requirements_path, "test.txt")) as f:
Expand Down Expand Up @@ -55,7 +58,8 @@
include_package_data=True,
platforms="any",
install_requires=requirements,
setup_requires=test_requirements,
setup_requires=requirements,
extras_require=optional_requirements,
keywords=[
"flask",
"extension",
Expand Down

0 comments on commit 4030460

Please sign in to comment.