-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
51 lines (47 loc) · 1.63 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
from setuptools import setup, find_packages
import re
import io
import os
here = os.path.abspath(os.path.dirname(__file__))
# get version from module source
version = None
version_re = re.compile(r"^__version__ = '(.*?)'$")
with open(os.path.join(here, 'genderize/__init__.py')) as f:
for line in f:
match = version_re.match(line)
if match:
version = match.group(1)
break
# get long desc from README.rst
with io.open(os.path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(
name='Genderize',
version=version,
description='Client for Genderize.io web service.',
long_description=long_description,
author='Erica Ehrhardt',
license='MIT',
url='https://github.com/SteelPangolin/genderize',
packages=find_packages(),
install_requires=[
'requests >= 1.0.0',
],
include_package_data=True,
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'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 :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)