Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Enable packaged installation using setup.py #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@

# ignore downloaded apps
*.apk

# ignore build/setup artifacts
build
*.egg-info
5 changes: 0 additions & 5 deletions googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from google.protobuf.message import Message, DecodeError

import googleplay_pb2
import config

class LoginError(Exception):
def __init__(self, value):
Expand Down Expand Up @@ -46,10 +45,6 @@ class GooglePlayAPI(object):

def __init__(self, androidId=None, lang=None, debug=False): # you must use a device-associated androidId value
self.preFetch = {}
if androidId == None:
androidId = config.ANDROID_ID
if lang == None:
lang = config.LANG
self.androidId = androidId
self.lang = lang
self.debug = debug
Expand Down
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from setuptools import setup

install_requires = ['requests', 'protobuf']
tests_require = []

setup(name='googleplay-api',
version='1.0.0',
description='Google Play Unofficial Python API',
url='https://github.com/egirault/googleplay-api',
py_modules = ['googleplay', 'googleplay_pb2'],
author='egirault',
install_requires=install_requires,
tests_require=tests_require)