diff --git a/README.md b/README.md index 854fbb9..410c25c 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Currently it supports the following libraries (bold is the name of the correspon * **fomantic_ui**: [Fomantic-UI](https://fomantic-ui.com/) from github (fork of semantic UI) * **semantic_ui**: [Semantic-UI](https://semantic-ui.com/) from github * **masonry**: [Masonry](https://masonry.desandro.com/) from github +* **pygal_js**: [pygal.js](https://github.com/Kozea/pygal.js/)Javascript helper functions for pygal from github In your settings.py: ```python diff --git a/django_auto_static_libs/__init__.py b/django_auto_static_libs/__init__.py index cbae3b6..67143aa 100644 --- a/django_auto_static_libs/__init__.py +++ b/django_auto_static_libs/__init__.py @@ -3,7 +3,7 @@ Version code adopted from Django development version. https://github.com/django/django """ -VERSION = (0, 3,0, 'final', 0) +VERSION = (0, 4,0, 'final', 0) def get_version(version=None): """ diff --git a/django_auto_static_libs/libraries.py b/django_auto_static_libs/libraries.py index c7d0321..8bb4ff7 100644 --- a/django_auto_static_libs/libraries.py +++ b/django_auto_static_libs/libraries.py @@ -31,8 +31,10 @@ 'destination': "auto", } pygal_js = { - 'provider': GithubProvider("Kozea/pygal.js"), + 'provider': SingleUrlProvider( + ["https://raw.githubusercontent.com/Kozea/pygal.js/gh-pages/javascripts/pygal-tooltips.js", + "https://raw.githubusercontent.com/Kozea/pygal.js/gh-pages/javascripts/svg.jquery.js"]), 'suffix_ignore': [], - 'files_include': r"pygal.*/javascripts/(.*)", + 'files_include': '(.*)', 'destination': "auto", -} \ No newline at end of file +} diff --git a/django_auto_static_libs/management/commands/static-libs-download.py b/django_auto_static_libs/management/commands/static-libs-download.py index 458db52..b753b43 100644 --- a/django_auto_static_libs/management/commands/static-libs-download.py +++ b/django_auto_static_libs/management/commands/static-libs-download.py @@ -61,8 +61,8 @@ def handle(self, *args, **kwargs): if r is not None: z=None if isinstance(r,list): + #create empty temporary zip file bytes_zip_buffer = io.BytesIO(b'PK\x05\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') - z = zipfile.ZipFile(bytes_zip_buffer, "a", zipfile.ZIP_DEFLATED, False) for rfile in r: #print(rfile.headers)