forked from PiotrDabkowski/Js2Py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (29 loc) · 1.31 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
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("Hello world")
# returns 11
Now also supports ECMA 6 through js2py.eval_js6(js6_code)!
More examples at: https://github.com/PiotrDabkowski/Js2Py
'''
# rm -rf dist build && python3 setup.py sdist bdist_wheel
# twine upload dist/*
setup(
name='Js2Py',
version='0.70',
packages=['js2py', 'js2py.utils', 'js2py.prototypes', 'js2py.translators',
'js2py.constructors', 'js2py.host', 'js2py.es6', 'js2py.internals',
'js2py.internals.prototypes', 'js2py.internals.constructors', 'js2py.py_node_modules'],
url='https://github.com/PiotrDabkowski/Js2Py',
install_requires = ['tzlocal>=1.2', 'six>=1.10', 'pyjsparser>=2.5.1'],
license='MIT',
author='Piotr Dabkowski',
author_email='[email protected]',
description='JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.',
long_description=long_desc
)