forked from tweepy/tweepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (66 loc) · 2.15 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
import re
from setuptools import find_packages, setup
VERSION_FILE = "tweepy/__init__.py"
with open(VERSION_FILE) as version_file:
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file.read(), re.MULTILINE)
if match:
version = match.group(1)
else:
raise RuntimeError(f"Unable to find version string in {VERSION_FILE}.")
with open("README.md") as readme_file:
long_description = readme_file.read()
tests_require = [
"mock>=1.0.1",
"nose>=1.3.3",
"vcrpy>=1.10.3",
]
setup(
name="tweepy",
version=version,
description="Twitter library for Python",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
author="Joshua Roesslein",
author_email="tweepy@googlegroups.com",
url="https://www.tweepy.org/",
project_urls={
"Documentation": "https://tweepy.readthedocs.io",
"Issue Tracker": "https://github.com/tweepy/tweepy/issues",
"Source Code": "https://github.com/tweepy/tweepy",
},
download_url="https://pypi.org/project/tweepy/",
packages=find_packages(exclude=["tests", "examples"]),
install_requires=[
"requests>=2.11.1,<3",
"requests_oauthlib>=1.0.0,<2",
],
tests_require=tests_require,
extras_require={
"dev": [
"coveralls>=2.1.0",
"tox>=2.4.0",
],
"socks": ["requests[socks]>=2.11.1,<3"],
"test": tests_require,
},
test_suite="nose.collector",
keywords="twitter library",
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
],
zip_safe=True,
)