Skip to content
This repository was archived by the owner on Nov 18, 2019. It is now read-only.

Commit 8dfb38d

Browse files
Updates setup.py to create pip package
1 parent adaef03 commit 8dfb38d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

playstats/appstat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def __init__(self, package_name):
1010
self.tree = html.fromstring(self.content)
1111

1212
def rating(self):
13+
# Returns rating out of 5
1314
selector = CSSSelector('.score')
1415
match = self.tree.xpath(selector.path)
1516
rating = float(match[0].text)

setup.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import os
2+
from setuptools import find_packages, setup
3+
4+
5+
# allow setup.py to be run from any path
6+
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
7+
8+
setup(
9+
name='playstats',
10+
version='0.1',
11+
packages=find_packages(),
12+
include_package_data=True,
13+
license='BSD License',
14+
description='A python package to fetch statistics of apps on Google Play such as ratings, downloads and much more.',
15+
long_description='A python package to fetch statistics of apps on Google Play such as ratings, downloads and much more.',
16+
url='https://github.com/EternityPy/PlayStats',
17+
author='Apoorva Pandey',
18+
author_email='apoorvaeternity@gmail.com',
19+
python_requires='>=3',
20+
install_requires=['lxml', 'cssselect'],
21+
classifiers=[
22+
'Intended Audience :: Developers',
23+
'License :: OSI Approved :: BSD License',
24+
'Operating System :: OS Independent',
25+
'Programming Language :: Python',
26+
],
27+
)

0 commit comments

Comments
 (0)