Commit 7af69802 authored by fendouai's avatar fendouai

add packages to setup.py

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