Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (33 sloc) 1.164 kb
1a5cad0 Added packaging
Timmy O'Mahony authored
1 import os
e77e307 Markus ›fin‹ Hametner run submodule init & update during build
fin authored
2 from os import path
1a5cad0 Added packaging
Timmy O'Mahony authored
3 from setuptools import setup
e77e307 Markus ›fin‹ Hametner run submodule init & update during build
fin authored
4 from subprocess import check_call
5 from distutils.command.build import build
5efc784 Improved post install script to move contents of pagedown static media
Timmy O'Mahony authored
6 from distutils.dir_util import copy_tree, remove_tree
e77e307 Markus ›fin‹ Hametner run submodule init & update during build
fin authored
7
8 class build_with_submodules(build):
9 def run(self):
10 if path.exists('.git'):
11 check_call(['git', 'submodule', 'init'])
12 check_call(['git', 'submodule', 'update'])
5efc784 Improved post install script to move contents of pagedown static media
Timmy O'Mahony authored
13 # Move contents of pagedown and remove .git
14 dst = "pagedown/static/pagedown/"
15 src = "pagedown/static/pagedown/pagedown/"
16 copy_tree(src, dst)
17 remove_tree(src)
e77e307 Markus ›fin‹ Hametner run submodule init & update during build
fin authored
18 build.run(self)
19
1a5cad0 Added packaging
Timmy O'Mahony authored
20 setup(
eba3c60 Updated name for Pypi submission
Timmy O'Mahony authored
21 name = "django-pagedown",
292b869 Further packaging changes including manifest and changes
Timmy O'Mahony authored
22 version = "0.0.1",
1a5cad0 Added packaging
Timmy O'Mahony authored
23 author = "Timmy O'Mahony",
6075db2 Fixing paths and dependancies
Timmy O'Mahony authored
24 author_email = "me@timmyomahony.com",
25 url = "https://github.com/timmyomahony/django-pagedown",
1a5cad0 Added packaging
Timmy O'Mahony authored
26 description = ("A django app that allows the easy addition of Stack Overflow's 'PageDown' markdown editor to a django form field"),
27 long_description=open('README.md').read(),
2f21a08 Update setup.py
Timmy O'Mahony authored
28 packages=['pagedown'],
cbf84ec Added include_package_data to setup.py
Timmy O'Mahony authored
29 include_package_data=True,
1a5cad0 Added packaging
Timmy O'Mahony authored
30 install_requires=[
292b869 Further packaging changes including manifest and changes
Timmy O'Mahony authored
31 "Django >= 1.3",
1a5cad0 Added packaging
Timmy O'Mahony authored
32 ],
33 license='LICENSE.txt',
e77e307 Markus ›fin‹ Hametner run submodule init & update during build
fin authored
34 cmdclass={"build": build_with_submodules},
1a5cad0 Added packaging
Timmy O'Mahony authored
35 )
Something went wrong with that request. Please try again.