-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
executable file
·57 lines (46 loc) · 1.53 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
#!/bin/env python
import os
import sys
from os.path import dirname
from os.path import join as pathjoin
from setuptools import find_packages
from setuptools import setup
NAME = 'fulltext'
VERSION = '0.7'
if os.name == 'nt' and not sys.maxsize > 2 ** 32:
# https://github.com/btimby/fulltext/issues/79
raise RuntimeError("Python 32 bit is not supported")
with open(pathjoin(dirname(__file__), 'README.rst')) as f:
DESCRIPTION = f.read()
REQUIRED, REQUIRED_URL = [], []
with open('requirements.txt') as f:
for line in f.readlines():
if 'http://' in line or 'https://' in line:
REQUIRED_URL.append(line)
else:
REQUIRED.append(line)
packages = sorted(set(find_packages() + ['fulltext.data'] + ['fulltext.test']))
setup(
name=NAME,
version=VERSION,
description='Convert binary files to plain text for indexing.',
long_description=DESCRIPTION,
author='Ben Timby',
author_email='[email protected]',
maintainer='Ben Timby',
maintainer_email='[email protected]',
url='http://github.com/btimby/' + NAME + '/',
license='GPLv3',
packages=packages,
install_requires=REQUIRED,
dependency_links=REQUIRED_URL,
include_package_data=True,
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Indexing',
),
)