-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
53 lines (47 loc) · 1.9 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
from os import listdir
from os.path import isfile, join
from setuptools import setup
from setuptools import find_packages
# Build a list of text-templates to install
DATA_PATH = "talkgenerator/data/"
text_templates_path = DATA_PATH + "text-templates/"
text_template_files = [
f for f in listdir(text_templates_path) if isfile(join(text_templates_path, f))
]
all_text_templates = []
for f in text_template_files:
all_text_templates.append(text_templates_path + f)
prohibited_images_path = DATA_PATH + "prohibited_images/"
prohibited_images_files = [
f
for f in listdir(prohibited_images_path)
if isfile(join(prohibited_images_path, f))
]
prohibited_images = []
for f in prohibited_images_files:
prohibited_images.append(prohibited_images_path + f)
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name="talkgenerator",
version="3.0",
description="Automatically generating presentation slide decks based on a given topic for improvised presentations",
long_description="Check our GitHub repository on https://github.com/korymath/talk-generator for more information!",
author="Thomas Winters, Kory Mathewson",
author_email="[email protected]",
url="https://github.com/korymath/talk-generator",
license="MIT License",
platforms=["Mac", "Linux"],
packages=find_packages(), # auto-discovery submodules ["talkgenerator"],
package_dir={"talkgenerator": "talkgenerator"},
data_files=[
("images", [DATA_PATH + "images/black-transparent.png"]),
("images", [DATA_PATH + "images/error_placeholder.png"]),
("powerpoint", [DATA_PATH + "powerpoint/template.pptx"]),
("prohibited_images", prohibited_images),
("text-templates", all_text_templates),
],
include_package_data=True,
install_requires=required,
entry_points={"console_scripts": ["talkgenerator = talkgenerator.run:main_cli"]},
)