Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ignore =
# This catches line breaks after "and" / "or" as a means of breaking up
# long if statements, which PEP 8 explicitly encourages.
W504
exclude=aip_site/vendor
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.md CONTRIBUTING.md LICENSE VERSION
recursive-include aip_site/vendor *
recursive-include aip_site/support *
global-exclude *.py[co]
global-exclude __pycache__
11 changes: 11 additions & 0 deletions aip_site/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys
import os

vendor_dir = os.path.join(os.path.dirname(__file__), 'vendor')

for item in os.listdir(vendor_dir):
path = os.path.join(vendor_dir, item)
if not os.path.isdir(path):
continue
if path not in sys.path:
sys.path.insert(0, path)
Empty file added aip_site/vendor/__init__.py
Empty file.
21 changes: 21 additions & 0 deletions aip_site/vendor/pyscss/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2011, 2012 German M. Bravo (Kronuz)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Empty file.
7 changes: 7 additions & 0 deletions aip_site/vendor/pyscss/bin/less2scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/opt/homebrew/opt/python@3.12/bin/python3.12
import sys
from scss.less2scss import main
if __name__ == '__main__':
if sys.argv[0].endswith('.exe'):
sys.argv[0] = sys.argv[0][:-4]
sys.exit(main())
7 changes: 7 additions & 0 deletions aip_site/vendor/pyscss/bin/pyscss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/opt/homebrew/opt/python@3.12/bin/python3.12
import sys
from scss.tool import main
if __name__ == '__main__':
if sys.argv[0].endswith('.exe'):
sys.argv[0] = sys.argv[0][:-4]
sys.exit(main())
63 changes: 63 additions & 0 deletions aip_site/vendor/pyscss/scss/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#-*- coding: utf-8 -*-
"""
pyScss, a Scss compiler for Python

@author German M. Bravo (Kronuz) <german.mb@gmail.com>
@version 1.2.0 alpha
@see https://github.com/Kronuz/pyScss
@copyright (c) 2012-2013 German M. Bravo (Kronuz)
@license MIT License
http://www.opensource.org/licenses/mit-license.php

pyScss compiles Scss, a superset of CSS that is more powerful, elegant and
easier to maintain than plain-vanilla CSS. The library acts as a CSS source code
preprocesor which allows you to use variables, nested rules, mixins, andhave
inheritance of rules, all with a CSS-compatible syntax which the preprocessor
then compiles to standard CSS.

Scss, as an extension of CSS, helps keep large stylesheets well-organized. It
borrows concepts and functionality from projects such as OOCSS and other similar
frameworks like as Sass. It's build on top of the original PHP xCSS codebase
structure but it's been completely rewritten, many bugs have been fixed and it
has been extensively extended to support almost the full range of Sass' Scss
syntax and functionality.

Bits of code in pyScss come from various projects:
Compass:
(c) 2009 Christopher M. Eppstein
http://compass-style.org/
Sass:
(c) 2006-2009 Hampton Catlin and Nathan Weizenbaum
http://sass-lang.com/
xCSS:
(c) 2010 Anton Pawlik
http://xcss.antpaw.org/docs/

"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from scss.scss_meta import BUILD_INFO, PROJECT, VERSION, REVISION, URL, AUTHOR, AUTHOR_EMAIL, LICENSE

__project__ = PROJECT
__version__ = VERSION
__author__ = AUTHOR + ' <' + AUTHOR_EMAIL + '>'
__license__ = LICENSE


import logging

log = logging.getLogger(__name__)


# Helpful re-exports
from scss.compiler import Compiler

# Backwards compatibility
from scss.legacy import Scss
# TODO surely there are others. what do our own django docs say...?


__all__ = ['Compiler']
3 changes: 3 additions & 0 deletions aip_site/vendor/pyscss/scss/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import scss.tool

scss.tool.main()
Loading
Loading