forked from QuantitativeCriticismLab/qcrit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (41 loc) · 1.41 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
'''
Setup
'''
import re
from os.path import join, dirname
import setuptools
import pipfile
setuptools.setup(
name='qcrit',
version=re.search(
#Parse the version from the text of __init__.py because
#importing it directly before setup can cause problems
#with the setup itself
r'__version__\s*=\s*[\'"](\d+\.\d+\.\d+)[\'"]',
open(join(dirname(__file__), 'qcrit', '__init__.py'), mode='r').read()
).group(1),
author='Tim Gianitsos',
author_email='contact@qcrit.org',
description=(
'Easily extract features from texts, and run machine learning algorithms '
'on them. Write your own features, use ours, or do both!'
),
long_description=open(join(dirname(__file__), 'README.md'), mode='r').read(),
long_description_content_type='text/markdown',
url='https://www.qcrit.org',
project_urls={'Source Code': 'https://github.com/QuantitativeCriticismLab/qcrit'},
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
install_requires=[
#Use the [packages] section from the Pipfile to determine required dependencies
#The [dev-packages] section is not included
pkg + (version if version != '*' else '')
for pkg, version in pipfile.load(join(dirname(__file__), 'Pipfile')).data['default'].items()
],
)