-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
77 lines (58 loc) · 1.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# {# pkglts, pysetup.kwds
# format setup arguments
from os import walk
from os.path import abspath, normpath, splitext
from os.path import join as pj
from setuptools import setup, find_packages
short_descr = "A cython transpiler from cython code to java, csharp, python and c++ code"
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
# find version number in src/pycropml/version.py
version = {}
with open("src/cytranspiler/version.py") as fp:
exec(fp.read(), version)
# find packages
pkgs = find_packages('src')
pkg_data = {}
nb = len(normpath(abspath("src/cytranspiler"))) + 1
data_rel_pth = lambda pth: normpath(abspath(pth))[nb:]
data_files = []
for root, dnames, fnames in walk("src/cytranspiler"):
for name in fnames:
if splitext(name)[-1] in [u'.json', u'.ini']:
data_files.append(data_rel_pth(pj(root, name)))
pkg_data['cytranspiler'] = data_files
setup_kwds = dict(
name='cytranspiler',
version=version["__version__"],
description=short_descr,
long_description=readme + '\n\n' + history,
author="Cyrille Ahmed Midingoyi",
author_email="[email protected]",
url='https://github.com/cython_transpiler',
license='MIT',
zip_safe=False,
packages=pkgs,
package_dir={'': 'src'},
package_data=pkg_data,
setup_requires=[
],
install_requires=[
],
tests_require=[
"mock",
"nose",
"sphinx",
],
entry_points={},
keywords='',
test_suite='nose.collector',
)
# #}
# change setup_kwds below before the next pkglts tag
# do not change things below
# {# pkglts, pysetup.call
setup(**setup_kwds)
# #}