-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (35 loc) · 1.24 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
"""
Setup script for name_disambiguation installation
"""
import sys
import setuptools
with open('requirements.txt') as f:
REQUIRED_PACKAGES = f.read().strip().split('\n')
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
# Check if Python 3.6 or 3.7 is installed.
PYTHON_VERSION = sys.version_info
if PYTHON_VERSION.major < 3 or (PYTHON_VERSION.major == 3 and PYTHON_VERSION.minor < 6):
ERR = ('gender_novels only supports Python Versions 3.6 and 3.7. '
+ 'Your current Python version is {0}.{1}.'.format(
str(PYTHON_VERSION.major),
str(PYTHON_VERSION.minor)
))
sys.exit(ERR)
setuptools.setup(
name="name-disambiguation",
version="0.1.0",
author="MIT Digital Humanities Lab",
author_email="[email protected]",
description="Descriptions of Gender in Writing",
install_requires=REQUIRED_PACKAGES,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdowns",
url="https://github.com/dhmit/tobacco_networks",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
)