forked from pymatting/pymatting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (34 loc) · 1.05 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
import os
from setuptools import setup, find_packages
def load_text(path):
with open(path) as f:
return f.read()
# load information about package
path = os.path.join(os.path.dirname(__file__), "pymatting", "__about__.py")
about = {}
exec(load_text(path), about)
setup(
name=about["__title__"],
version=about["__version__"],
url=about["__uri__"],
author=about["__author__"],
author_email=about["__email__"],
description=about["__summary__"],
long_description=load_text("README.md"),
long_description_content_type="text/markdown",
license=about["__license__"],
packages=find_packages(),
install_requires=load_text("requirements.txt").strip().split("\n"),
keywords='alpha matting',
python_requires='>=3',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
],
project_urls={
"Source": about["__uri__"],
}
)