-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (60 loc) · 2.16 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
73
import pathlib
from io import open
from setuptools import find_packages, setup
def parse_requirements(filename):
with open(filename) as file:
lines = file.read().splitlines()
return [
line.strip()
for line in lines
if not (
(not line) or
(line.strip()[0] == "#") or
(line.strip().startswith('--find-links')) or
("git+https" in line)
)
]
def get_dependency_links(filename):
with open(filename) as file:
lines = file.read().splitlines()
return [
line.strip().split('=')[1]
for line in lines
if line.strip().startswith('--find-links')
]
dependency_links = get_dependency_links('requirements.txt')
parsed_requirements = parse_requirements('requirements.txt')
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
setup(
name="app-store-reviews-reader",
version="1.2",
author="Lalit Pagaria",
author_email="pagaria.lalit@gmail.com",
description="To fetch app store reviews from publicly available RSS feeds",
long_description=README,
long_description_content_type="text/markdown",
license="Apache Version 2.0",
url="https://github.com/lalitpagaria/app_store_reviews_reader",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
dependency_links=dependency_links,
install_requires=parsed_requirements,
include_package_data=True,
python_requires=">=3.6.0",
tests_require=["pytest"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Customer Service",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)