forked from googleapis/google-cloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request googleapis#100 from hellbe/master
Support for shared inbox child folders and updated setup.py for PyPI
- Loading branch information
Showing
2 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,41 @@ | ||
#!/usr/bin/env python | ||
|
||
from distutils.core import setup | ||
from setuptools import setup | ||
|
||
CLASSIFIERS = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Topic :: Office/Business :: Office Suites', | ||
'Topic :: Software Development :: Libraries' | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Topic :: Office/Business :: Office Suites', | ||
'Topic :: Software Development :: Libraries' | ||
] | ||
long_desc = '''When I started making this library I was looking for something that would provide a simple interface to an office365 mailbox. I was creating a system that would allow people send an email to our printer without having to require they install drivers or be inside the office firewall (important for students). As I found working with the office API to be fairly easy, I quickly built up solid general use library for working with office 365. | ||
|
||
The objective here is to make it easy to make utilities that are to be run against an office 365 account. for example, the code for sending an email is: | ||
from O365 import Message | ||
authenticiation = ('[email protected]','YourPassword') | ||
m = Message(auth=authenticiation) | ||
m.setRecipients('[email protected]') | ||
m.setSubject('I made an email script.') | ||
m.setBody('Talk to the computer, cause the human does not want to hear it any more.') | ||
m.sendMessage() | ||
That's it. making and sending emails and events is now very simple and straight forward. I've used it for emailing the printer and creating a overview of our car booking system. simple, easy, but still in development. Any suggestions or advice are quite welcome at the projects github page: | ||
https://github.com/Narcolapser/python-o365''' | ||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup(name='O365', | ||
version='0.9.15', | ||
description='Python library for working with Microsoft Office 365', | ||
long_description=long_desc, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author='Toben Archer', | ||
author_email='[email protected]', | ||
maintainer='Toben Archer', | ||
maintainer_email='[email protected]', | ||
url='https://github.com/Narcolapser/python-o365', | ||
packages=['O365'], | ||
install_requires=['requests', 'oauthlib','requests_oauthlib','future'], | ||
install_requires=['requests', 'oauthlib', 'requests_oauthlib', 'future'], | ||
license='Apache 2.0', | ||
classifiers=CLASSIFIERS | ||
) | ||
|
||
#so I don't have to keep looking it up: python setup.py sdist upload -r pypi | ||
""" | ||
Quick reference: | ||
Generate dist: | ||
python setup.py sdist bdist_wheel | ||
Upload to TestPyPI | ||
twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
Upload to PyPI | ||
twine upload dist/* | ||
""" |