This repository has been archived by the owner on Sep 8, 2022. It is now read-only.
forked from dmarx/psaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.57 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
from os import path
import re
import os
from setuptools import setup
PACKAGE_NAME = "pushshift.py"
PACKAGE_PATH = "pushshift_py"
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, "README.rst"), encoding="utf-8") as fp:
README = fp.read()
LAST_PYPI_VERSION = os.environ["LAST_PYPI_VERSION"]
PATCH_NUM = re.search('[0-9]+$', LAST_PYPI_VERSION).group(0)
PYPI_VERSION = f"{LAST_PYPI_VERSION[:-len(PATCH_NUM)]}{int(PATCH_NUM) + 1}"
setup(
name=PACKAGE_NAME,
packages=[PACKAGE_PATH],
version=PYPI_VERSION,
long_description=README,
description="Pushshift.io API Wrapper for reddit.com search endpoints",
author="David Marx (original), typenil (fork)",
author_email="[email protected]",
url="https://github.com/typenil/pushshift.py",
license="Simplified BSD License",
install_requires=["requests"],
keywords="reddit api wrapper pushshift",
python_requires=">=3",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
],
)