-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
74 lines (64 loc) · 2.01 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
# Note: there is an additional requirements that does not seems to be handled by setuptools:
# git+git://github.com/facebookresearch/fastText.git@c5cb6b2d0e295e58cfa827e38d2e9b1e0cbe09e4#egg=fastTextpy&subdirectory=python
requirements = [
# TODO: put package requirements here
'Cython',
'numpy',
'scipy',
'postal==1.0',
'scikit_learn==0.19',
]
setup_requirements = [
# TODO(rdoume): put setup requirements (distutils extensions, etc.) here
'bumpversion==0.5',
'wheel==0.29',
'watchdog==0.8',
'flake8==2.6',
'Cython',
'tox==2.3',
'coverage==4.1',
'Sphinx==1.4',
'pytest-runner'
]
test_requirements = [
# TODO: put package test requirements here
'pytest==3.2.3'
]
setup(
name='addr_detector',
version='0.2.1',
description="Python address detector ",
long_description=readme + '\n\n' + history,
author="Qwant",
author_email='robin@qwantresearch.com',
url='https://github.com/rdoume/addr_detector',
packages=find_packages(),
include_package_data=True,
package_data={'': ['*.bin']},
data_files=[('addr_detector.model', ['addr_detector/model/ft_ad.bin'])],
install_requires=requirements,
license="GNU General Public License v3",
zip_safe=False,
keywords='addr_detector',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements
)