Skip to content

Commit db1e0cd

Browse files
committed
Added package setup
1 parent aff22b1 commit db1e0cd

File tree

7 files changed

+43
-0
lines changed

7 files changed

+43
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.vscode
12
/venv

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8.2

license.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
MIT License
2+
Copyright (c) 2018 Ulises Martinez Adon
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
The above copyright notice and this permission notice shall be included in all
10+
copies or substantial portions of the Software.
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
SOFTWARE.

phcm/__init__.py

Whitespace-only changes.

hcm.py renamed to phcm/hcm_notification.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ def notify_topic_subscribers(self, topic: str, title: str, message_body: str):
4444
"Authorization": f'Bearer {self.get_access_token()}'}
4545
)
4646
response = json.loads(urlopen(request).read())
47+
4748
return response['msg'] == 'Success'

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = readme.md

setup.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from distutils.core import setup
2+
setup(
3+
name = 'phcm', # How you named your package folder (MyLib)
4+
packages = ['phcm'], # Chose the same as "name"
5+
version = '1.0.0', # Start with a small number and increase it with every change you make
6+
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
7+
description = 'Wrapper of api push huawei for sending notification push using python.', # Give a short description about your library
8+
author = 'Ulises Martinez Adon', # Type in your name
9+
author_email = 'umartinezadon@outlook.com', # Type in your E-Mail
10+
url = 'https://github.com/umartinez22', # Provide either the link to your github or to your website
11+
download_url = 'https://github.com/user/umartinez22/archive/v_1.0.0.tar.gz', # I explain this later on
12+
keywords = ['Huawei', 'cloud', 'messaging', 'notification'], # Keywords that define your package best
13+
install_requires=[],
14+
classifiers=[
15+
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
16+
'Intended Audience :: Developers', # Define that your audience are developers
17+
'Topic :: Software Development :: Build Tools',
18+
'License :: OSI Approved :: MIT License', # Again, pick a license
19+
'Programming Language :: Python :: 3.8.2'
20+
],
21+
)

0 commit comments

Comments
 (0)