-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathsetup.py
41 lines (36 loc) · 1.18 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
import pathlib
from setuptools import setup, find_packages
from distutils.spawn import find_executable
import platform
def readme():
with open('README.md') as f:
return f.read()
dependencies = ['pyperclip', 'click', 'appdirs', 'daemonize']
if find_executable("fswatch") is None:
if platform.system() == "Linux":
dependencies.append("inotify")
else:
raise ValueError(
"inkscape-figures needs fswatch to run on MacOS. You "
"can install it using `brew install fswatch`"
)
setup(
name="inkscape-figures",
version="1.0.7",
description="Script for managing inkscape figures",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/gillescastel/inkscape-figures",
author="Gilles Castel",
author_email="gilles@castel.dev",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
packages=['inkscapefigures'],
scripts=['bin/inkscape-figures'],
install_requires=dependencies,
include_package_data=True
)