|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from distutils.core import setup |
| 3 | +from setuptools import setup |
4 | 4 |
|
5 | 5 | CLASSIFIERS = [ |
6 | | - 'Development Status :: 4 - Beta', |
7 | | - 'Intended Audience :: Developers', |
8 | | - 'License :: OSI Approved :: Apache Software License', |
9 | | - 'Topic :: Office/Business :: Office Suites', |
10 | | - 'Topic :: Software Development :: Libraries' |
| 6 | + 'Development Status :: 4 - Beta', |
| 7 | + 'Intended Audience :: Developers', |
| 8 | + 'License :: OSI Approved :: Apache Software License', |
| 9 | + 'Topic :: Office/Business :: Office Suites', |
| 10 | + 'Topic :: Software Development :: Libraries' |
11 | 11 | ] |
12 | | -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. |
13 | 12 |
|
14 | | -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: |
15 | | -
|
16 | | -
|
17 | | -from O365 import Message |
18 | | -
|
19 | | -authenticiation = ('YourAccount@office365.com','YourPassword') |
20 | | -
|
21 | | -m = Message(auth=authenticiation) |
22 | | -
|
23 | | -m.setRecipients('reciving@office365.com') |
24 | | -
|
25 | | -m.setSubject('I made an email script.') |
26 | | -
|
27 | | -m.setBody('Talk to the computer, cause the human does not want to hear it any more.') |
28 | | -
|
29 | | -m.sendMessage() |
30 | | -
|
31 | | -
|
32 | | -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: |
33 | | -https://github.com/Narcolapser/python-o365''' |
| 13 | +with open("README.md", "r") as fh: |
| 14 | + long_description = fh.read() |
34 | 15 |
|
35 | 16 | setup(name='O365', |
36 | 17 | version='0.9.15', |
37 | 18 | description='Python library for working with Microsoft Office 365', |
38 | | - long_description=long_desc, |
| 19 | + long_description=long_description, |
| 20 | + long_description_content_type="text/markdown", |
39 | 21 | author='Toben Archer', |
40 | 22 | author_email='sandslash+O365@gmail.com', |
41 | | - maintainer='Toben Archer', |
42 | | - maintainer_email='sandslash+O365@gmail.com', |
43 | 23 | url='https://github.com/Narcolapser/python-o365', |
44 | 24 | packages=['O365'], |
45 | | - install_requires=['requests', 'oauthlib','requests_oauthlib','future'], |
| 25 | + install_requires=['requests', 'oauthlib', 'requests_oauthlib', 'future'], |
46 | 26 | license='Apache 2.0', |
47 | 27 | classifiers=CLASSIFIERS |
48 | 28 | ) |
49 | 29 |
|
50 | | -#so I don't have to keep looking it up: python setup.py sdist upload -r pypi |
| 30 | +""" |
| 31 | +Quick reference: |
| 32 | +
|
| 33 | +Generate dist: |
| 34 | +python setup.py sdist bdist_wheel |
| 35 | +
|
| 36 | +Upload to TestPyPI |
| 37 | +twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
| 38 | +
|
| 39 | +Upload to PyPI |
| 40 | +twine upload dist/* |
| 41 | +""" |
0 commit comments