From 1d88fcf0636fca1a53674cd2aa500b7a1b3e86b8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 18 2015 11:07:35 +0000 Subject: [PATCH 1/5] Specify the encoding of the file --- diff --git a/libpagure/libpagure.py b/libpagure/libpagure.py index 929bf55..1228432 100644 --- a/libpagure/libpagure.py +++ b/libpagure/libpagure.py @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- + + import requests import logging From 2235c3990bbe7e98c2adf752817301904bb7d25f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 18 2015 11:08:10 +0000 Subject: [PATCH 2/5] Let Pagure inherit from the object to be a regular class --- diff --git a/libpagure/libpagure.py b/libpagure/libpagure.py index 1228432..f57ec45 100644 --- a/libpagure/libpagure.py +++ b/libpagure/libpagure.py @@ -17,7 +17,8 @@ hand = NullHandler() LOG.addHandler(hand) -class Pagure: +class Pagure(object): + # TODO: add error handling # TODO: write some unit tests def __init__( From 09fa2c726f1c6a8037f78bdb1571313287bb3b6f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 18 2015 11:09:37 +0000 Subject: [PATCH 3/5] Specify the encoding of the libpagure/__init__.py file --- diff --git a/libpagure/__init__.py b/libpagure/__init__.py index 8f80539..9bac352 100644 --- a/libpagure/__init__.py +++ b/libpagure/__init__.py @@ -1 +1,3 @@ +# -*- coding: utf-8 -*- + from .libpagure import * From 0c6d267e40d2493d3bf289bd995febb835fb12e0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 18 2015 11:09:50 +0000 Subject: [PATCH 4/5] Specify the encoding of the setup.py and give it a little space --- diff --git a/setup.py b/setup.py index d385800..80c476d 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,8 @@ +# -*- coding: utf-8 -*- + from distutils.core import setup + + setup( name='libpagure', packages=['libpagure'], From 29e41ddce834806049337d60d04643c98c7743cf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 18 2015 11:12:14 +0000 Subject: [PATCH 5/5] Expand the list of topics for libpagure Picked from the list available at: https://pypi.python.org/pypi?%3Aaction=list_classifiers --- diff --git a/setup.py b/setup.py index 80c476d..5831a47 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,18 @@ setup( url='https://github.com/yangl1996/libpagure', keywords=['pagure', 'api', 'library'], classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: Information Technology', + 'License :: OSI Approved :: GNU General Public License v2 ' + 'or later (GPLv2+)', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7' + 'Programming Language :: Python :: 3', + 'Topic :: Software Development :: Libraries', + ], license='GNU General Public License v2.0', install_requires=['requests'],