Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (65 sloc) 2.398 kb
7364099 @trentm a starter setup.py
authored
1 #!/usr/bin/env python
2
f9c9db7 @trentm fix for easy_install usage
authored
3 import os
eb1cca9 @trentm move markdown2.py to a lib subdir: clearer and helpful for svn:externals...
authored
4 import sys
f4a05cf @trentm commented out starter attempt and uploading package to Google Code
authored
5 import distutils
7364099 @trentm a starter setup.py
authored
6 from distutils.core import setup
eb1cca9 @trentm move markdown2.py to a lib subdir: clearer and helpful for svn:externals...
authored
7
cbdf7cd @trentm tweaks to readme; update copyright year
authored
8 _top_dir = os.path.dirname(os.path.abspath(__file__))
9 sys.path.insert(0, os.path.join(_top_dir, "lib"))
f9c9db7 @trentm fix for easy_install usage
authored
10 try:
11 import markdown2
12 finally:
13 del sys.path[0]
7364099 @trentm a starter setup.py
authored
14
15 classifiers = """\
16 Development Status :: 5 - Production/Stable
17 Intended Audience :: Developers
18 License :: OSI Approved :: MIT License
19 Programming Language :: Python
08522fd @trentm [issue #64] Python 3 support!
authored
20 Programming Language :: Python :: 2
21 Programming Language :: Python :: 2.4
22 Programming Language :: Python :: 2.5
23 Programming Language :: Python :: 2.6
24 Programming Language :: Python :: 2.7
25 Programming Language :: Python :: 3
26 Programming Language :: Python :: 3.0
27 Programming Language :: Python :: 3.1
28 Programming Language :: Python :: 3.2
29 Programming Language :: Python :: 3.3
7364099 @trentm a starter setup.py
authored
30 Operating System :: OS Independent
31 Topic :: Software Development :: Libraries :: Python Modules
32 Topic :: Software Development :: Documentation
33 Topic :: Text Processing :: Filters
08522fd @trentm [issue #64] Python 3 support!
authored
34 Topic :: Text Processing :: Markup :: HTML
7364099 @trentm a starter setup.py
authored
35 """
36
37 if sys.version_info < (2, 3):
38 # Distutils before Python 2.3 doesn't accept classifiers.
39 _setup = setup
40 def setup(**kwargs):
41 if kwargs.has_key("classifiers"):
42 del kwargs["classifiers"]
43 _setup(**kwargs)
44
3d30545 @trentm setup.py fixes
authored
45 script = (sys.platform == "win32" and "lib\\markdown2.py" or "bin/markdown2")
7364099 @trentm a starter setup.py
authored
46
e60fab8 @trentm various build and 'mk test' fixes
authored
47 setup(
48 name="markdown2",
49 version=markdown2.__version__,
50 maintainer="Trent Mick",
51 maintainer_email="trentm@gmail.com",
ac6f963 @trentm author fields too
authored
52 author="Trent Mick",
53 author_email="trentm@gmail.com",
6d1cf6d @trentm s/google code/github/ for some links
authored
54 url="https://github.com/trentm/python-markdown2",
cbdf7cd @trentm tweaks to readme; update copyright year
authored
55 license="MIT",
e60fab8 @trentm various build and 'mk test' fixes
authored
56 platforms=["any"],
57 py_modules=["markdown2"],
58 package_dir={"": "lib"},
59 scripts=[script],
88d8ab6 @msabramo %s/implementaion/implementation/g in setup.py
msabramo authored
60 description="A fast and complete Python implementation of Markdown",
e60fab8 @trentm various build and 'mk test' fixes
authored
61 classifiers=filter(None, classifiers.split("\n")),
88d8ab6 @msabramo %s/implementaion/implementation/g in setup.py
msabramo authored
62 long_description="""markdown2: A fast and complete Python implementation of Markdown.
6788e31 @trentm [Issue 56] Fix `setup.py install`
authored
63
64 Markdown is a text-to-HTML filter; it translates an easy-to-read /
65 easy-to-write structured text format into HTML. Markdown's text
66 format is most similar to that of plain text email, and supports
67 features such as headers, *emphasis*, code blocks, blockquotes, and
68 links. -- http://daringfireball.net/projects/markdown/
69
70 This is a fast and complete Python implementation of the Markdown
71 spec. See http://github.com/trentm/python-markdown2 for more info.
72 """,
e60fab8 @trentm various build and 'mk test' fixes
authored
73 )
Something went wrong with that request. Please try again.