Skip to content

Commit

Permalink
Version 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rokdd committed Jan 5, 2022
1 parent 543942e commit fdfa6d4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion django_auto_static_libs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
8 changes: 5 additions & 3 deletions django_auto_static_libs/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdfa6d4

Please sign in to comment.