-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
66 lines (58 loc) · 1.98 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
54
55
56
57
58
59
60
61
62
63
64
65
66
import setuptools
import os
package_name = "instafilter"
__local__ = os.path.abspath(os.path.dirname(__file__))
f_version = os.path.join(__local__, package_name, "_version.py")
exec(open(f_version).read())
# Get the long description from the relevant file
description = "Images filters learned from Instagram. Implemented in pytorch."
long_description = None
if os.name == 'nt':
with open("README.md", encoding="utf8") as FIN:
long_description = FIN.read()
else:
with open("README.md") as FIN:
long_description = FIN.read()
setuptools.setup(
name=package_name,
packages=setuptools.find_packages(),
# Include package data...
include_package_data=True,
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
version=__version__, # noqa: F821
# The project's main homepage.
url=f"https://github.com/thoppe/{package_name}",
# Author details
author="Travis Hoppe",
author_email="travis.hoppe+{package_name}@gmail.com",
# Choose your license
license="CC-SA",
install_requires=[
"numpy",
"torch",
"opencv-python",
],
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 -Production/Stable
"Development Status :: 4 - Beta",
"Environment :: GPU",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"Topic :: Artistic Software",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
"Programming Language :: Python :: 3.6",
],
# What does your project relate to?
keywords="art",
test_suite="pytest",
tests_require=["pytest"],
)