xstatic/ 0000775 0001750 0001750 00000000000 14221143120 011551 5 ustar corey corey xstatic/__pycache__/ 0000775 0001750 0001750 00000000000 14221143120 013761 5 ustar corey corey xstatic/main.py 0000664 0001750 0001750 00000003404 14221143120 013050 0 ustar corey corey # Copyright: 2011-2018 by the XStatic authors, see AUTHORS.txt for details.
# License: MIT license, see LICENSE.txt for details.
"""
XStatic - main package with minimal support code to work with static file packages
"""
class XStatic(object):
"""
minimal support code to access resources from xstatic.pkg.* files
or CDN locations.
"""
def __init__(self, module, root_url='/xstatic', provider='local', protocol='http'):
"""
:arg module: xstatic resource package/module, has metadata as attributes
:arg root_url: the common root url path for all local xstatic
resources
:arg provider: 'local' to get it from local server or
a name of another source (e.g. CDN)
:arg protocol: 'http' (default) or 'https'
"""
self.__dict__.update([(name.lower(), getattr(module, name))
for name in dir(module)
if name.isupper()
])
self.provider = provider
if provider == 'local':
self.base_url = "%s/%s" % (root_url, self.name)
else:
self.base_url = self.locations[(provider, protocol)]
def get_mapping(self):
"""
query the mapping url -> directory, use this to setup
your own static file serving.
"""
if self.provider == 'local':
return self.base_url, self.base_dir
def url_for(self, path):
"""
compute the url for some resource.
:arg path: a relative path into the data
"""
loc = self.base_url
if isinstance(loc, str):
loc = "%s/%s" % (loc, path)
elif isinstance(loc, dict):
loc = loc[path]
return loc
xstatic/__init__.py 0000664 0001750 0001750 00000000000 14221143120 013650 0 ustar corey corey xstatic/pkg/ 0000775 0001750 0001750 00000000000 14221143120 012332 5 ustar corey corey xstatic/pkg/roboto_fontface/ 0000775 0001750 0001750 00000000000 14221143116 015510 5 ustar corey corey xstatic/pkg/roboto_fontface/__pycache__/ 0000775 0001750 0001750 00000000000 14221143120 017713 5 ustar corey corey xstatic/pkg/roboto_fontface/__init__.py 0000664 0001750 0001750 00000007566 14221143116 017637 0 ustar corey corey
"""
XStatic resource package
See package 'XStatic' for documentation and basic tools.
"""
# official name, upper/lowercase allowed, no spaces
DISPLAY_NAME = 'roboto-fontface'
# name used for PyPi
PACKAGE_NAME = 'XStatic-%s' % DISPLAY_NAME
NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar')
# please use a all-lowercase valid python
# package name
VERSION = '0.5.0' # version of the packaged files, please use the upstream
# version number
BUILD = '0' # our package build number, so we can release new builds
# with fixes for xstatic stuff.
PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi
DESCRIPTION = "%s %s (XStatic packaging standard)" % (DISPLAY_NAME, VERSION)
PLATFORMS = 'any'
CLASSIFIERS = []
KEYWORDS = 'roboto_fontface xstatic'
# XStatic-* package maintainer:
MAINTAINER = 'Rob Cresswell'
MAINTAINER_EMAIL = 'robert.cresswell@outlook.com'
# this refers to the project homepage of the stuff we packaged:
HOMEPAGE = 'https://github.com/choffmeister/roboto-fontface-bower'
# this refers to all files:
LICENSE = 'Apache-2.0'
from os.path import join, dirname
BASE_DIR = join(dirname(__file__), 'data')
# linux package maintainers just can point to their file locations like this:
#BASE_DIR = '/usr/share/javascript/' + NAME
# location of the Javascript file that's the entry point for this package, if
# one exists, relative to BASE_DIR
MAIN="[u'./css/roboto-fontface.css', u'./fonts/Roboto-Black.eot', u'./fonts/Roboto-Black.svg', u'./fonts/Roboto-Black.ttf', u'./fonts/Roboto-Black.woff', u'./fonts/Roboto-Black.woff2', u'./fonts/Roboto-BlackItalic.eot', u'./fonts/Roboto-BlackItalic.svg', u'./fonts/Roboto-BlackItalic.ttf', u'./fonts/Roboto-BlackItalic.woff', u'./fonts/Roboto-BlackItalic.woff2', u'./fonts/Roboto-Bold.eot', u'./fonts/Roboto-Bold.svg', u'./fonts/Roboto-Bold.ttf', u'./fonts/Roboto-Bold.woff', u'./fonts/Roboto-Bold.woff2', u'./fonts/Roboto-BoldItalic.eot', u'./fonts/Roboto-BoldItalic.svg', u'./fonts/Roboto-BoldItalic.ttf', u'./fonts/Roboto-BoldItalic.woff', u'./fonts/Roboto-BoldItalic.woff2', u'./fonts/Roboto-Light.eot', u'./fonts/Roboto-Light.svg', u'./fonts/Roboto-Light.ttf', u'./fonts/Roboto-Light.woff', u'./fonts/Roboto-Light.woff2', u'./fonts/Roboto-LightItalic.eot', u'./fonts/Roboto-LightItalic.svg', u'./fonts/Roboto-LightItalic.ttf', u'./fonts/Roboto-LightItalic.woff', u'./fonts/Roboto-LightItalic.woff2', u'./fonts/Roboto-Medium.eot', u'./fonts/Roboto-Medium.svg', u'./fonts/Roboto-Medium.ttf', u'./fonts/Roboto-Medium.woff', u'./fonts/Roboto-Medium.woff2', u'./fonts/Roboto-MediumItalic.eot', u'./fonts/Roboto-MediumItalic.svg', u'./fonts/Roboto-MediumItalic.ttf', u'./fonts/Roboto-MediumItalic.woff', u'./fonts/Roboto-MediumItalic.woff2', u'./fonts/Roboto-Regular.eot', u'./fonts/Roboto-Regular.svg', u'./fonts/Roboto-Regular.ttf', u'./fonts/Roboto-Regular.woff', u'./fonts/Roboto-Regular.woff2', u'./fonts/Roboto-RegularItalic.eot', u'./fonts/Roboto-RegularItalic.svg', u'./fonts/Roboto-RegularItalic.ttf', u'./fonts/Roboto-RegularItalic.woff', u'./fonts/Roboto-RegularItalic.woff2', u'./fonts/Roboto-Thin.eot', u'./fonts/Roboto-Thin.svg', u'./fonts/Roboto-Thin.ttf', u'./fonts/Roboto-Thin.woff', u'./fonts/Roboto-Thin.woff2', u'./fonts/Roboto-ThinItalic.eot', u'./fonts/Roboto-ThinItalic.svg', u'./fonts/Roboto-ThinItalic.ttf', u'./fonts/Roboto-ThinItalic.woff', u'./fonts/Roboto-ThinItalic.woff2']"
LOCATIONS = {
# CDN locations (if no public CDN exists, use an empty dict)
# if value is a string, it is a base location, just append relative
# path/filename. if value is a dict, do another lookup using the
# relative path/filename you want.
# your relative path/filenames should usually be without version
# information, because either the base dir/url is exactly for this
# version or the mapping will care for accessing this version.
}
xstatic/pkg/roboto_fontface/data/ 0000775 0001750 0001750 00000000000 14221143116 016421 5 ustar corey corey xstatic/pkg/roboto_fontface/data/fonts/ 0000775 0001750 0001750 00000000000 14221143116 017552 5 ustar corey corey xstatic/pkg/roboto_fontface/data/fonts/roboto-condensed/ 0000775 0001750 0001750 00000000000 14221143116 023016 5 ustar corey corey xstatic/pkg/roboto_fontface/data/fonts/roboto-condensed/Roboto-Condensed-Regular.svg 0000664 0001750 0001750 00000221274 14221143116 030312 0 ustar corey corey
xstatic/pkg/roboto_fontface/data/fonts/roboto-condensed/Roboto-Condensed-Bold.woff2 0000664 0001750 0001750 00000076350 14221143116 030020 0 ustar corey corey wOF2 |è rÜ |{ ?FFTM ”f ` †.< „e
„‹8ƒÊ6$ŒD†$ …t™L‚Âó€épàcÈtž´¼âØÛaøoûhרN:4O‚LKˡ۴**&eŒæ?}û5Ŭª^fZ)v…*1{õ=4»o:ÓŸÉØB°&¦!ÎX£[dï#–ÿï’Édrëd]’ã¢õfü<ÿÿûñ¿¹öÞçÜ÷“ÐL"QªUóF§dƒD"d¢†Hˆ*w€ôì2;IÔ;bGŒ•3+BĈ=ª5æèЖ"EÕìZª_JíâuþÓêœþ·ü ¦Àx^ä’IòabDwˆŸˆHõ÷ÌJQoQ¾]/µ¨ÌŠf‹Ú@Â5Óë#XØ §fÎlŒr€’¬îŽå8Ì‘BXIG°R€¥D2„ÿ[vI·÷ûU“Šä HêpGžQlª8x†
í°Nô?€¿ÂuùßËÖ¡%p<˜ð$¹a›®ÜòCüw8Àöÿæz–ÜŸº: U_UWUö• G¼8m6Éæ®@Kûý¶wèÆkˆI“ËnûŽ˜\¤$rÀ'×Ô—ÏäXbžŒ((v*Ã\Ú9?@ÕrÚÁwê;‚ó%Ö
ðv£¨j‹%Ö eïæ?_†@€˜ ˽ýµ:çOþ–lªáv…Y!ŸQÄü7@€ÿÿþÐk[ ¾º}F;\Ëü¥ßd[ÆÛ…fNÑ’N§î¹pë¥7Ë
ìþmëûªÛ^Bg€^K‚͵•;ÐOœÝýb47™Þf_U•(û0°ÝØ;ð_ÎJÍ-yݲ=òxö¼n#…¡pÜ[Ëh yUøoí{{–(;ý–øÏû)«nß ŠQ~ǨÃ1ÑçûÓ´ IËvÿª6[j2ú…ÄáÐz’Íéh©®sŒCøþŸªºþ#iû(¥ÑžÚ”÷TFOžó²&Þóp¬Üpª Õ@W@@Ò'ÇSF¯Ùê2°¤°¸±¤ ”µÔaœ”a
üÿ7Mé\ÛI¤s"W@2,a^Τ‘R^ºÎ"ÙíOך”†‚hˬRZ Môäì•æ#– º€-ÌcåÒ(· ,,ê'÷L™,,aõë×–ÿ\n›ÑÖüİI\º}¸.xÈt$B$5~JÕ·ëTJ«§äp$é’vÌ–z¹3ÀÀ Á JQ±‘²$ÊqÿA#MRò_ZvþÊ%¥KéývÚR¯{