Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Squashed commit of the following:

Ignore virtualenv bits and pieces
Final cleanup of third_party crap
Massive cleanup of unused third_party and appengine stuffz
Remove directories for unused modules
Remove unused submodules
  • Loading branch information...
commit debc63b15bbb05c7e7809a2aa399bef94e5a466b 1 parent 662831e
@jamezpolley jamezpolley authored
View
4 .gitignore
@@ -3,3 +3,7 @@
db.sqlite3
third_party.zip
third_party.zip.d
+bin/
+include/
+lib/
+src/
View
27 .gitmodules
@@ -1,36 +1,9 @@
-[submodule "third_party/aeoid"]
- path = third_party/aeoid
- url = git://github.com/sydney-linux-user-group-dependencies/aeoid.git
[submodule "third_party/jquery.tweet"]
path = third_party/jquery.tweet
url = git://github.com/sydney-linux-user-group-dependencies/jquery.tweet.git
[submodule "third_party/jquery.form"]
path = third_party/jquery.form
url = git://github.com/sydney-linux-user-group-dependencies/jquery.form.git
-[submodule "third_party/python-datetime-tz"]
- path = third_party/python-datetime-tz
- url = git://github.com/sydney-linux-user-group-dependencies/python-datetime-tz.git
-[submodule "third_party/python-dateutil"]
- path = third_party/python-dateutil
- url = git://github.com/sydney-linux-user-group-dependencies/python-dateutil.git
-[submodule "third_party/python-gae-pytz"]
- path = third_party/python-gae-pytz
- url = git://github.com/sydney-linux-user-group-dependencies/python-gae-pytz.git
-[submodule "third_party/python-markdown"]
- path = third_party/python-markdown
- url = git://github.com/sydney-linux-user-group-dependencies/python-markdown.git
-[submodule "third_party/python-markdown-extensions/subscript"]
- path = third_party/python-markdown-extensions/subscript
- url = git://github.com/sydney-linux-user-group-dependencies/python-markdown.subscript.git
-[submodule "third_party/python-markdown-extensions/superscript"]
- path = third_party/python-markdown-extensions/superscript
- url = git://github.com/sydney-linux-user-group-dependencies/python-markdown.superscript.git
-[submodule "third_party/python-pyrss2gen"]
- path = third_party/python-pyrss2gen
- url = git://github.com/sydney-linux-user-group-dependencies/python-pyrss2gen.git
-[submodule "third_party/python-vobject"]
- path = third_party/python-vobject
- url = git://github.com/sydney-linux-user-group-dependencies/python-vobject.git
[submodule "third_party/jquery-openid"]
path = third_party/jquery-openid
url = git://github.com/jamezpolley/jquery-openid.git
View
6 Makefile
@@ -52,7 +52,11 @@ lib: bin/activate
$(ACTIVATE) && pip install ez_setup
$(ACTIVATE) && pip install -E . -r requirements.txt
-install: lib
+third_party/jquery-openid:
+ git submodule init
+
+install: lib third_party/jquery-openid
+ git submodule update
test: install
$(ACTIVATE) && unit2 discover -t ./ tests/
View
29 app.yaml
@@ -1,29 +0,0 @@
-application: sydney-linux-user-group-hr
-version: django
-runtime: python
-api_version: 1
-
-builtins:
-- datastore_admin: on
-- appstats: on
-
-handlers:
-- url: /favicon.ico
- static_files: static/images/favicon.png
- upload: static/images/favicon.ico
-
-- url: /third_party
- static_dir: static/third_party
-
-- url: /.*
- script: main.py
-
-skip_files:
-- third_party/((?!(aeoid|python-gae-pytz)).*)/
-- third_party/python-gae-pytz/(?!pytz)
-- static/third_party/jquery.validation/(?!(.*.js|localization))
-- third_party/aeoid/demo
-- third_party/mkzip
-- (.*/)*.git/
-- .*/\..*
-- .*/README
View
19 appengine_config.py
@@ -1,19 +0,0 @@
-#!/usr/bin/python
-#
-# -*- coding: utf-8 -*-
-# vim: set ts=4 sw=4 et sts=4 ai:
-#
-# pylint: disable-msg=C0111
-"""
-Configuration file for Python AppEngine runtime.
-
-Our current settings are:
- * Forces everything to use Django 1.2
- * Adds appstats.
-"""
-webapp_django_version = "1.2"
-
-def webapp_add_wsgi_middleware(app):
- from google.appengine.ext.appstats import recording
- app = recording.appstats_wsgi_middleware(app)
- return app
View
3  settings.py
@@ -1,8 +1,5 @@
# Django settings for slug project.
-import third_party
-third_party.setup()
-
DEBUG = True
TEMPLATE_DEBUG = DEBUG
View
7 third_party.paths
@@ -1,7 +0,0 @@
-# Directory to add to sys.path, things to include in third_party.zip
-third_party.zip/python-dateutil dateutil
-third_party.zip/python-datetime-tz datetime_tz.py pytz_abbr.py
-third_party.zip/python-markdown markdown
-third_party.zip/python-markdown-extensions markdown
-third_party.zip/python-pyrss2gen PyRSS2Gen.py
-third_party.zip/python-vobject vobject
View
64 third_party.py
@@ -1,64 +0,0 @@
-#!/usr/bin/python
-#
-# -*- coding: utf-8 -*-
-# vim: set ts=4 sw=4 et sts=4 ai:
-
-"""Module which setups our configuration environment.
-
-**
-Everything should import this module and run the setup function before
-doing anything else, *including imports*!
-**
-"""
-
-import sys
-import os
-
-def getpaths():
- """Get the extra third_party paths we need."""
- paths = set()
- for line in file('third_party.paths', 'r'):
- if line.startswith('#'):
- continue
- paths.add(line.strip().split(' ', 1)[0])
-
- paths = list(paths)
- paths.sort()
- return paths
-
-
-def sys_path_insert(ipath):
- """Insert a path into sys if it doesn't exist already."""
- if ipath not in sys.path:
- sys.path.insert(0, ipath)
-
-
-def setup():
- """Setup our configuration environment."""
- assert os.path.exists('third_party.zip')
-
- # Add our extra modules to sys.path
- sys_path_insert('third_party.zip')
- for ipath in getpaths():
- if 'third_party.zip' in ipath:
- continue
- sys_path_insert(ipath)
-
-
-def lint_setup():
- """Setup called to make pylint work."""
- if not "APPENGINE_SDK" in os.environ:
- print "Please set $APPENGINE_SDK to the location of the appengine SDK."
- return 1
-
- print "APPENGINE_SDK at ", os.environ["APPENGINE_SDK"]
- sys_path_insert(os.environ["APPENGINE_SDK"])
-
- for ipath in getpaths():
- sys_path_insert(ipath.replace('.zip', ''))
-
- setup_django()
-
-if __name__ == "__main__":
- for path in getpaths():
- print path
1  third_party/python-datetime-tz
@@ -1 +0,0 @@
-Subproject commit 92ca540c2c2108546476e667ff15ec5c6a415cb2
1  third_party/python-dateutil
@@ -1 +0,0 @@
-Subproject commit 93f2157fc38500dc73d4f1a4fdbe072be63cd218
1  third_party/python-gae-pytz
@@ -1 +0,0 @@
-Subproject commit c4ea9555a41be382d937d8ea9d9ff0abf6d13a3a
1  third_party/python-markdown
@@ -1 +0,0 @@
-Subproject commit 029bd9dd01258aca69f53470bde906a635412057
View
30 third_party/python-markdown-extensions/anyurl/anyurl.py
@@ -1,30 +0,0 @@
-"""Extension for Markdown which turns any URLs into href links."""
-
-import markdown
-
-ANYURL_RE = "(http://[^ ]*)"
-
-class AnyURLPattern(markdown.inlinepatterns.Pattern):
- """ Return a url header element:"""
- def handleMatch(self, m):
- if not m.group(2):
- raise SyntaxError('Error in AnyURL')
-
- el = markdown.etree.Element("a")
- el.text = markdown.AtomicString(m.group(2))
- el.set('href', m.group(2))
- return el
-
-class AnyURLExtension(markdown.Extension):
- """ AnyURL Extension for Python-Markdown. """
-
- def extendMarkdown(self, md, md_globals):
- """ Replace subscript with AnyURLPattern """
- md.inlinePatterns['anyurl'] = AnyURLPattern(ANYURL_RE, md)
-
-def makeExtension(configs=None):
- return AnyURLExtension(configs=configs)
-
-if __name__ == "__main__":
- import doctest
- doctest.testmod()
View
1  third_party/python-markdown-extensions/markdown/extensions/anyurl.py
View
1  third_party/python-markdown-extensions/markdown/extensions/slugheader.py
View
1  third_party/python-markdown-extensions/markdown/extensions/subscript.py
View
1  third_party/python-markdown-extensions/markdown/extensions/superscript.py
View
42 third_party/python-markdown-extensions/slugheader/slugheader.py
@@ -1,42 +0,0 @@
-"""SLUG Header extension for Markdown.
-
-SLUG emails use the following format for headers
-==== H1 style header ====
----- H2 style header ----
-"""
-
-import markdown
-
-# Global Vars
-H1_RE = r'^==*([^=]*)==*'
-H2_RE = r'^--*([^-]*)--*'
-
-SH_RE = "(%s|%s)" % (H1_RE, H2_RE)
-
-class SlugHeaderPattern(markdown.inlinepatterns.Pattern):
- """ Return a slug header element:"""
- def handleMatch(self, m):
- if m.group(3):
- el = markdown.etree.Element("h1")
- text = m.group(3)
- elif m.group(4):
- el = markdown.etree.Element("h2")
- text = m.group(4)
- else:
- raise SyntaxError('Unknown SLUG Header match.')
- el.text = markdown.AtomicString(text)
- return el
-
-class SlugHeaderExtension(markdown.Extension):
- """ SlugHeader Extension for Python-Markdown. """
-
- def extendMarkdown(self, md, md_globals):
- """ Replace subscript with SlugHeaderPattern """
- md.inlinePatterns['slugheader'] = SlugHeaderPattern(SH_RE, md)
-
-def makeExtension(configs=None):
- return SlugHeaderExtension(configs=configs)
-
-if __name__ == "__main__":
- import doctest
- doctest.testmod()
1  third_party/python-markdown-extensions/subscript
@@ -1 +0,0 @@
-Subproject commit be812b8bbee589843804df7370d21b87869923e2
1  third_party/python-markdown-extensions/superscript
@@ -1 +0,0 @@
-Subproject commit 04a7f90c900eb1949dea64deb70971b4a0e63f1b
1  third_party/python-pyrss2gen
@@ -1 +0,0 @@
-Subproject commit 1fde0e73c022e2efc1d51cd655b7369251ace4d7
1  third_party/python-vobject
@@ -1 +0,0 @@
-Subproject commit 458fe5d43c7967ff444f48167d04ea6aa9c4a5da
Please sign in to comment.
Something went wrong with that request. Please try again.