-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
53 lines (46 loc) · 1.55 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
#!/usr/bin/env python
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def read_file(*paths):
with open(os.path.join(here, *paths), 'r') as fp:
return fp.read()
def get_version():
content = read_file(package_name, '__init__.py')
version_match = re.search('^__version__ = [\'"]([^\'"]+)', content, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
here = os.path.abspath(os.path.dirname(__file__))
package_name = 'jsengine'
setup(
name='jsengine',
version=get_version(),
author='SeaHOH',
author_email='[email protected]',
url='https://github.com/SeaHOH/jsengine',
license='MIT',
description=('JSEngine is a simple wrapper of Javascript engines.'),
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
keywords='javascript js engine node chakra quickjs execjs',
packages=[package_name],
zip_safe=True,
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: JavaScript',
'Topic :: Software Development :: Interpreters',
'Topic :: Utilities'
],
python_requires='>=2.7',
)