-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (24 loc) · 684 Bytes
/
Copy pathsetup.py
File metadata and controls
29 lines (24 loc) · 684 Bytes
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
from setuptools import setup, find_packages
import json
with open("gifmaker/manifest.json", "r") as file:
manifest = json.load(file)
title = manifest["title"]
program = manifest["program"]
version = manifest["version"]
with open("requirements.txt") as f:
requirements = f.read().splitlines()
package_data = {}
package_data[program] = ["fonts/*.ttf", "*.txt", "*.json"]
setup(
name = title,
version = version,
install_requires=requirements,
packages = find_packages(where="."),
package_dir = {"": "."},
package_data = package_data,
entry_points = {
"console_scripts": [
f"{program}={program}.main:main",
],
},
)