-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
98 lines (79 loc) · 2.61 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import sys
from setuptools import setup
if sys.version_info[0] == 3:
if not sys.version_info >= (3, 3):
raise ValueError('This package requires Python 3.3 or newer')
else:
raise ValueError('Unrecognized major version of Python')
__project__ = 'quickdraw'
__desc__ = 'An API for downloading and reading the google quickdraw data.'
__version__ = '1.0.0'
__author__ = "Martin O'Hanlon"
__author_email__ = '[email protected]'
__license__ = 'MIT'
__url__ = 'https://github.com/martinohanlon/quickdraw_python'
__requires__ = ['pillow', 'requests', ]
__long_description__ = """# quickdraw
[Google Quick, Draw!](https://quickdraw.withgoogle.com/) is a game which is
training a neural network to recognise doodles.
`quickdraw` is an API for using the Google Quick, Draw! data
[quickdraw.withgoogle.com/data](https://quickdraw.withgoogle.com/data),
downloading the data files as and when needed, caching them locally and
allowing them to be used.
## Getting started
+ Windows
```bash
pip install quickdraw
```
+ macOS
```bash
pip3 install quickdraw
```
+ Linux / Raspberry Pi
```bash
sudo pip3 install quickdraw
```
## Use
Open the Quick Draw data, pull back an **anvil** drawing and save it.
```python
from quickdraw import QuickDrawData
qd = QuickDrawData()
anvil = qd.get_drawing("anvil")
anvil.image.save("my_anvil.gif")
```
## Documentation
[quickdraw.readthedocs.io](https://quickdraw.readthedocs.io)
"""
__classifiers__ = [
# "Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Topic :: Education",
"Topic :: Scientific/Engineering :: Image Recognition",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
if __name__ == '__main__':
setup(
name='quickdraw',
version = __version__,
description = __desc__,
long_description=__long_description__,
long_description_content_type='text/markdown',
url = __url__,
author = __author__,
author_email = __author_email__,
license= __license__,
packages = [__project__],
install_requires = __requires__,
zip_safe=False)