forked from mzucker/noteshrink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (31 loc) · 918 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
32
33
#!/usr/bin/env python3
import os
import sys
from setuptools import setup
if sys.argv[-1] == "publish":
if os.system("pip3 freeze | grep wheel"):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
os.system("python3 setup.py sdist upload")
os.system("python3 setup.py bdist_wheel upload")
print("You probably want to also tag the version now:")
print(" git tag -a VERSION -m 'version VERSION'")
print(" git push --tags")
sys.exit()
setup(
name="noteshrink",
version="0.1.0",
author="Matt Zucker",
description="Convert scans of handwritten notes to beautiful, compact PDFs",
url="https://github.com/mzucker/noteshrink",
py_modules=["noteshrink"],
install_requires=[
"numpy",
"scipy",
"pillow",
],
entry_points="""
[console_scripts]
noteshrink=noteshrink:main
""",
)