Skip to content

Commit fdfa6d4

Browse files
committed
Version 0.4
1 parent 543942e commit fdfa6d4

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Currently it supports the following libraries (bold is the name of the correspon
4747
* **fomantic_ui**: [Fomantic-UI](https://fomantic-ui.com/) from github (fork of semantic UI)
4848
* **semantic_ui**: [Semantic-UI](https://semantic-ui.com/) from github
4949
* **masonry**: [Masonry](https://masonry.desandro.com/) from github
50+
* **pygal_js**: [pygal.js](https://github.com/Kozea/pygal.js/)Javascript helper functions for pygal from github
5051

5152
In your settings.py:
5253
```python

django_auto_static_libs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Version code adopted from Django development version.
44
https://github.com/django/django
55
"""
6-
VERSION = (0, 3,0, 'final', 0)
6+
VERSION = (0, 4,0, 'final', 0)
77

88
def get_version(version=None):
99
"""

django_auto_static_libs/libraries.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
'destination': "auto",
3232
}
3333
pygal_js = {
34-
'provider': GithubProvider("Kozea/pygal.js"),
34+
'provider': SingleUrlProvider(
35+
["https://raw.githubusercontent.com/Kozea/pygal.js/gh-pages/javascripts/pygal-tooltips.js",
36+
"https://raw.githubusercontent.com/Kozea/pygal.js/gh-pages/javascripts/svg.jquery.js"]),
3537
'suffix_ignore': [],
36-
'files_include': r"pygal.*/javascripts/(.*)",
38+
'files_include': '(.*)',
3739
'destination': "auto",
38-
}
40+
}

django_auto_static_libs/management/commands/static-libs-download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def handle(self, *args, **kwargs):
6161
if r is not None:
6262
z=None
6363
if isinstance(r,list):
64+
#create empty temporary zip file
6465
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')
65-
6666
z = zipfile.ZipFile(bytes_zip_buffer, "a", zipfile.ZIP_DEFLATED, False)
6767
for rfile in r:
6868
#print(rfile.headers)

0 commit comments

Comments
 (0)