Commit 7af69802 authored by fendouai's avatar fendouai

add packages to setup.py

parent b4e1c930
...@@ -3,4 +3,3 @@ build/ ...@@ -3,4 +3,3 @@ build/
dist/ dist/
jpush.egg-info/ jpush.egg-info/
.idea/ .idea/
jpush.log
\ No newline at end of file
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
from .core import JPush from .core import JPush
from .common import JPushFailure, Unauthorized from .common import JPushFailure, Unauthorized
__version__ = '3.1.2'
VERSION = tuple(map(int, __version__.split('.')))
from .push import ( from .push import (
Push, Push,
all_, all_,
...@@ -35,6 +32,7 @@ from .device import ( ...@@ -35,6 +32,7 @@ from .device import (
from .report import ( from .report import (
Report, Report,
ReportResponse,
) )
from .schedule import ( from .schedule import (
...@@ -68,10 +66,14 @@ __all__ = [ ...@@ -68,10 +66,14 @@ __all__ = [
device_alias, device_alias,
device_regid, device_regid,
Report, Report,
ReportResponse,
Schedule, Schedule,
schedulepayload, schedulepayload,
] ]
__version__ = '3.3.1'
VERSION = tuple(map(int, __version__.split('.')))
# Silence urllib3 INFO logging by default # Silence urllib3 INFO logging by default
import logging import logging
......
from .core import Report from .core import Report, ReportResponse
__all__ = [ __all__ = [
Report, Report,
ReportResponse,
] ]
\ No newline at end of file
import json
import logging import logging
from jpush import common from jpush import common
logger = logging.getLogger('jpush') logger = logging.getLogger('jpush')
......
import json import json
import logging import logging
from jpush import common from jpush import common
from schedulepayload import *
logger = logging.getLogger('jpush') logger = logging.getLogger('jpush')
......
import re import re
from jpush import push from jpush import push
def schedulepayload(name=None, enabled=None, trigger=None, push=None): def schedulepayload(name=None, enabled=None, trigger=None, push=None):
schedulepayload = {} schedulepayload = {}
if name is not None: if name is not None:
......
...@@ -13,8 +13,8 @@ with open('jpush/__init__.py', 'rb') as f: ...@@ -13,8 +13,8 @@ with open('jpush/__init__.py', 'rb') as f:
f.read().decode('utf-8')).group(1))) f.read().decode('utf-8')).group(1)))
setup( setup(
name='jpush', name='jpush-demo',
version='3.2.0', version='3.3.1',
description='JPush\'s officially supported Python client library', description='JPush\'s officially supported Python client library',
keywords=('JPush', 'JPush API', 'Android Push', 'iOS Push'), keywords=('JPush', 'JPush API', 'Android Push', 'iOS Push'),
license='MIT License', license='MIT License',
...@@ -24,7 +24,7 @@ setup( ...@@ -24,7 +24,7 @@ setup(
author='jpush', author='jpush',
author_email='support@jpush.cn', author_email='support@jpush.cn',
packages=['jpush', 'jpush.push', 'jpush.device'], packages=['jpush', 'jpush.push', 'jpush.device', 'jpush.report', 'jpush.schedule'],
platforms='any', platforms='any',
classifiers=[ classifiers=[
'Environment :: Console', 'Environment :: Console',
......
import unittest import unittest
from jpush import schedule
import jpush as jpush import jpush as jpush
from conf import app_key, master_secret from conf import app_key, master_secret
from jpush import common from jpush import common
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment