forked from hbldh/sudokuextract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (57 loc) · 1.69 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
# -*- coding: utf-8 -*-
"""
:mod:`setup.py`
===============
.. moduleauthor:: hbldh <[email protected]>
Created on 2015-11-05
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import sys
from codecs import open
from setuptools import setup, find_packages
import sudokuextract
basedir = os.path.dirname(os.path.abspath(__file__))
if sys.argv[-1] == 'publish':
os.system('python setup.py register')
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
def read(f):
return open(f, encoding='utf-8').read()
setup(
name='sudokuextract',
version=sudokuextract.__version__,
author=sudokuextract.__author__,
author_email=sudokuextract.__author_email__,
maintainer=sudokuextract.__maintainer__,
maintainer_email=sudokuextract.__maintainer_email__,
url=sudokuextract.__url__,
description=sudokuextract.__description__,
long_description=read('README.rst') + '\n\n' + read('HISTORY.rst'),
license=sudokuextract.__license__,
platforms=sudokuextract.__platforms__,
keywords=sudokuextract._keywords__,
classifiers=sudokuextract.__classifiers__,
packages=find_packages(exclude=('tests', 'docs')),
package_data={
'sudokuextract.data': ['*.gz', '*.pklz'],
},
install_requires=[
'numpy>=1.9.2',
'scipy>=0.15.1',
'scikit-image<0.12.0',
'pillow>=3.1.0',
'pyefd>=0.1.2',
'dlxsudoku>=0.10.1'
],
test_suite="tests",
dependency_links=[],
entry_points={
'console_scripts': [
'parse-sudoku = sudokuextract.extract:main'
]
},
)