Skip to content

Commit fb72aed

Browse files
committed
Created setup.py and update README.rst
1 parent b913231 commit fb72aed

File tree

3 files changed

+40
-34
lines changed

3 files changed

+40
-34
lines changed

MANIFEST

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.rst
2+
setup.py
3+
libgravatar/__init__.py

README.rst

+11-34
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,29 @@
1-
================
2-
Gravatar XML-RPC
3-
================
1+
===========
2+
libgravatar
3+
===========
44

5-
A library that provides a Python 3 interface to the Gravatar XML-RPC API.
6-
API Details: http://en.gravatar.com/site/implement/xmlrpc
7-
8-
Author
9-
------
10-
11-
Pablo Seminario <[email protected]>
5+
A library that provides a Python 3 interface for the Gravatar API.
6+
API details: https://en.gravatar.com/site/implement/
127

138
Usage
149
-----
1510

16-
Getting user profile image
17-
::
11+
Getting user profile image::
1812

19-
from gravatar import Gravatar
13+
from libgravatar import Gravatar
2014
g = Gravatar('[email protected]')
2115
g.get_image()
2216
'http://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346.jpg?size=80'
2317

24-
If you have an account at Wordpress.com you can use your API Key
25-
::
18+
If you have an account at Wordpress.com you can use your API Key::
2619

27-
from gravatar import GravatarXMLRPC
20+
from libgravatar import GravatarXMLRPC
2821
g = GravatarXMLRPC('user@domain', apikey='1234')
2922
g.test() # test the API
3023

31-
Or you can use your Gravatar.com password
32-
::
24+
Or you can use your Gravatar.com password::
3325

34-
from gravatar import GravatarXMLRPC
26+
from libgravatar import GravatarXMLRPC
3527
g = GravatarXMLRPC('user@domain', password='1234')
3628
g.test() # test the API
3729

38-
License
39-
-------
40-
41-
This program is free software: you can redistribute it and/or modify
42-
it under the terms of the GNU General Public License as published by
43-
the Free Software Foundation, either version 3 of the License, or
44-
(at your option) any later version.
45-
46-
This program is distributed in the hope that it will be useful,
47-
but WITHOUT ANY WARRANTY; without even the implied warranty of
48-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49-
GNU General Public License for more details.
50-
51-
You should have received a copy of the GNU General Public License
52-
along with this program. If not, see <http://www.gnu.org/licenses/>.

setup.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from distutils.core import setup
2+
3+
4+
with open('README.rst') as file:
5+
long_description = file.read()
6+
7+
8+
setup(name='libgravatar',
9+
version='0.1',
10+
author='Pablo SEMINARIO',
11+
author_email='[email protected]',
12+
url='https://github.com/pabluk/libgravatar',
13+
license='GNU General Public License v3 (GPLv3)',
14+
description='A library that provides a Python 3 interface for the Gravatar API.',
15+
long_description=long_description,
16+
packages=['libgravatar'],
17+
provides=['libgravatar (0.1)'],
18+
classifiers=[
19+
'Development Status :: 4 - Beta',
20+
'Intended Audience :: Developers',
21+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
22+
'Operating System :: OS Independent',
23+
'Programming Language :: Python :: 3',
24+
'Topic :: Software Development :: Libraries',
25+
],
26+
)

0 commit comments

Comments
 (0)