-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
51 lines (42 loc) · 1.48 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
# coding: utf-8
import os, sys
from setuptools import setup
from setuptools.command.install import install as _install
def _post_install(install_lib):
import shutil
shutil.copy('portpy.pth', install_lib)
class install(_install):
def run(self):
self.path_file = 'portpy'
_install.run(self)
self.execute(_post_install, (self.install_lib,),
msg="Running post install task")
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = (
"PortPy interpreta códigos Python escritos em português, "
"para estudantes de programação, assim como Portugol. "
"Aceita as palavras mais comuns. Funciona com Python 2 e 3.")
__version__ = "0.1.0"
setup(
cmdclass={'install': install},
name="PortPy",
license="LGPL3",
version=__version__,
download_url='git@github.com:leotada/PortPy.git',
packages = ["portpy", "portpy.codec"],
package_data = {
'portpy': [
'lang/*',
]
},
author = ("Leonardo Tada, Junior Tada, Ericson William, Joao Pimentel"),
author_email='leonardo_tada@hotmail.com',
url="https://github.com/leotada/PortPy",
description="PortPy interpreta códigos Python escritos em português.",
long_description=long_description,
keywords='python string interpolation interpolate ruby codec',
entry_points = {'console_scripts': ['portpy = portpy.portpy:main']},
)