~hurgleburgler/xstatic-bootswatch/trunk

« back to all changes in this revision

Viewing changes to build/lib/xstatic/pkg/bootswatch/__init__.py

  • Committer: Diana Whitten
  • Date: 2015-07-28 21:36:12 UTC
  • Revision ID: git-v1:072e29212eb8bb42d130c3f87045d82c4a429036
A good beginning is only half the task.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
"""
 
3
XStatic resource package
 
4
 
 
5
See package 'XStatic' for documentation and basic tools.
 
6
"""
 
7
 
 
8
# official name, upper/lowercase allowed, no spaces
 
9
DISPLAY_NAME = 'bootswatch'
 
10
 
 
11
# name used for PyPi
 
12
PACKAGE_NAME = 'XStatic-%s' % DISPLAY_NAME
 
13
 
 
14
NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar')
 
15
                               # please use a all-lowercase valid python
 
16
                               # package name
 
17
 
 
18
VERSION = '3.3.5' # version of the packaged files, please use the upstream
 
19
                  # version number
 
20
BUILD = '2' # our package build number, so we can release new builds
 
21
             # with fixes for xstatic stuff.
 
22
PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi
 
23
 
 
24
DESCRIPTION = "%s %s (XStatic packaging standard)" % (DISPLAY_NAME, VERSION)
 
25
 
 
26
PLATFORMS = 'any'
 
27
CLASSIFIERS = []
 
28
KEYWORDS = 'bootswatch xstatic'
 
29
 
 
30
# XStatic-* package maintainer:
 
31
MAINTAINER = 'Diana Whitten'
 
32
MAINTAINER_EMAIL = 'hurgleburgler@gmail.com'
 
33
 
 
34
# this refers to the project homepage of the stuff we packaged:
 
35
HOMEPAGE = 'http://bootswatch.com'
 
36
 
 
37
# this refers to all files:
 
38
LICENSE = '(same as %s)' % DISPLAY_NAME
 
39
 
 
40
from os.path import join, dirname
 
41
BASE_DIR = join(dirname(__file__), 'data')
 
42
# linux package maintainers just can point to their file locations like this:
 
43
#BASE_DIR = '/usr/share/javascript/' + NAME
 
44
 
 
45
# location of the Javascript file that's the entry point for this package, if
 
46
# one exists, relative to BASE_DIR
 
47
 
 
48
 
 
49
LOCATIONS = {
 
50
    # CDN locations (if no public CDN exists, use an empty dict)
 
51
    # if value is a string, it is a base location, just append relative
 
52
    # path/filename. if value is a dict, do another lookup using the
 
53
    # relative path/filename you want.
 
54
    # your relative path/filenames should usually be without version
 
55
    # information, because either the base dir/url is exactly for this
 
56
    # version or the mapping will care for accessing this version.
 
57
    
 
58
}