forked from PiotrDabkowski/Js2Py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (26 loc) · 1.09 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
long_desc = '''Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.
Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.
import js2py
f = js2py.eval_js( "function (name) {return name.length}" )
f("Piotr")
# returns 5
More examples at: https://github.com/PiotrDabkowski/Js2Py
'''
# python setup.py register -r pypi
# python setup.py sdist upload -r pypi
setup(
name='Js2Py',
version='0.39',
packages=['js2py', 'js2py.utils', 'js2py.prototypes', 'js2py.translators', 'js2py.constructors', 'js2py.host'],
url='https://github.com/PiotrDabkowski/Js2Py',
install_requires = ['tzlocal>=1.2', 'six>=1.10'],
license='MIT',
author='Piotr Dabkowski',
author_email='piotr.dabkowski@balliol.ox.ac.uk',
description='JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.',
long_description=long_desc
)