Skip to content

Commit 231ba9d

Browse files
committed
Packaging for PyPI
Adds required metadata for the project. Closes vgrem#10. With these changes, creating package is performed by: python setup.py sdist To upload a package, first refer to the docs [1]. After initial setup: twine upload dist/* [1]: https://packaging.python.org/distributing/#uploading-your-project-to-pypi
1 parent cf9574a commit 231ba9d

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include LICENSE
2+
include README.md

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ The list of supported Office 365 REST APIs:
1616

1717
# Installation
1818

19-
Todo
19+
Use pip:
20+
21+
```
22+
pip install Office365-REST-Python-Client
23+
```
2024

2125

2226
# Usage: working with SharePoint resources

Diff for: setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[metadata]
2+
description-file = README.md
3+

Diff for: setup.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
import os
5+
from distutils.core import setup
6+
import setuptools
7+
8+
def read(fname):
9+
"""From an_example_pypi_project (https://pypi.python.org/pypi/an_example_pypi_project). """
10+
return open(os.path.join(os.path.dirname(__file__), fname)).read()
11+
12+
setup(
13+
name="Office365-REST-Python-Client",
14+
version="1.0.0"
15+
author="Vadim Gremyachev",
16+
author_email="[email protected]",
17+
maintainer="Konrad Gądek",
18+
maintainer_email="[email protected]",
19+
description="Office 365 REST client for Python",
20+
long_description=read("README.md"),
21+
url="https://github.com/vgrem/Office365-REST-Python-Client",
22+
install_requires=['requests'],
23+
license="MIT",
24+
keywords="git",
25+
classifiers=[
26+
"Development Status :: 4 - Beta",
27+
"Intended Audience :: Developers",
28+
"License :: OSI Approved :: MIT License",
29+
"Topic :: Internet :: WWW/HTTP",
30+
"Topic :: Software Development :: Libraries"
31+
],
32+
packages=setuptools.find_packages()
33+
)
34+

0 commit comments

Comments
 (0)