-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
58 lines (54 loc) · 1.88 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# pypreprocessor's setup.py
# dependencies
# - pandoc - `sudo apt install pandoc`
# - pypandoc - `sudo pip install pypandoc`
# To update:
# - python setup.py sdist upload
import sys
try:
from setuptools import Command, setup
except ImportError:
from distutils.core import Command, setup
from tests import RunTests
from pypreprocessor import __version__, __author__
try:
import pypandoc
print('Creating README.rst')
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
print('Pypandoc not installed, skipping README.rst creation')
long_description = open('README.md').read()
setup(
name = "pypreprocessor",
py_modules = ['pypreprocessor'],
version = __version__,
description = "Run c-style preprocessor directives in python modules",
author = __author__,
author_email = "evanplaice@gmail.com",
url = "https://github.com/interpreters/pypreprocessor",
packages=['pypreprocessor'],
long_description = long_description,
license = open('LICENSE').read(),
keywords = ["python", "preprocessor", "meta"],
platforms = "all",
cmdclass={
'test': RunTests,
},
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Pre-processors",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Code Generators",
]
)