-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (43 loc) · 1.23 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
#!/usr/bin/env python3
from setuptools import setup
import os
__pgdr = 'PG Drange <[email protected]>'
__source = 'https://github.com/pgdr/cdecorator'
__webpage = __source
__description = "cdecorator magically makes Python into C"
def src(x):
root = os.path.dirname(__file__)
return os.path.abspath(os.path.join(root, x))
def _read_file(fname, op):
with open(src(fname), 'r') as fin:
return op(fin.readlines())
def requirements():
return []
def readme():
try:
return _read_file('README.md',
lambda lines: ''.join(lines))
except:
return __description
setup(
name='cdecorator',
packages=['cdecorator'],
description=__description,
long_description=readme(),
long_description_content_type='text/markdown',
author='PG Drange',
author_email='[email protected]',
maintainer=__pgdr,
url=__webpage,
project_urls={
'Bug Tracker': '{}/issues'.format(__source),
'Documentation': '{}/blob/master/README.md'.format(__source),
'Source Code': __source,
},
license='MIT',
keywords='cdecorator python c decorator',
version='0.0.0',
install_requires=requirements(),
entry_points={},
test_suite='tests',
)