-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (34 loc) · 1.27 KB
/
setup.py
File metadata and controls
38 lines (34 loc) · 1.27 KB
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
from setuptools import setup, find_packages
import os
import re
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
# Get the long description from the README file
with open('README.md', 'r', encoding='utf8') as fh:
long_description = fh.read()
# Get version string from module
init_path = os.path.join(os.path.dirname(__file__), 'EasyTwitterAPI/__init__.py')
with open(init_path, 'r', encoding='utf8') as f:
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)
setup(
name='EasyTwitterAPI',
version=version,
description='Easy to use wrapper for the Twitter API in PyTorch',
author='Pablo Sanchez-Martin',
author_email='psanch2103@gmail.com',
license='MIT License',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/psanch21/EasyTwitterAPI',
classifiers=classifiers,
keywords=['scraper'],
packages=find_packages(exclude=['local', 'test', 'environments']),
python_requires='>=3.7',
install_requires=[],
)