-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
31 lines (25 loc) · 855 Bytes
/
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
#!/usr/bin/env python3
from pathlib import Path
from setuptools import setup, find_packages
def list_resources(basedir, resource_dirs):
return [
(str(path.parent), [str(path)])
for dirname in resource_dirs
for path in Path(basedir, dirname).glob('**/*') if path.is_file()
]
setup(
name="chameledit",
author="yoeo",
version="0.1",
url="https://github.com/yoeo/chameledit",
license="MIT",
description="Web editor that detects programming language, Guesslang Demo",
install_requires=Path('requirements.txt').read_text().splitlines(),
packages=find_packages(),
data_files=list_resources('chameledit', ('static', 'templates')),
zip_safe=False,
scripts=['bin/chameledit-gunicorn'],
entry_points={
'console_scripts': ['chameledit = chameledit.__main__:main']
},
)