Permalink
Browse files

Merge pull request #2 from ralphbean/master

Merged changes for upcoming pypi and Fedora release.
  • Loading branch information...
2 parents 7637a4c + f43da69 commit f56394240240fcda0b2abc14d69916d357c1c36e @abbot committed Jun 25, 2012
Showing with 37 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +22 −0 LICENSE
  3. +2 −0 MANIFEST.in
  4. +12 −0 setup.py
View
@@ -4,3 +4,4 @@
/swig/*_wrap.c
/build
/dist
+MANIFEST
View
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2010-2012, Lev Shamardin
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,2 @@
+include README.rst
+include LICENSE
View
@@ -4,6 +4,17 @@
import os, sys
+
+def load_description():
+ try:
+ f = open('README.rst', 'r')
+ description = f.read()
+ f.close()
+ return description
+ except:
+ return ""
+
+
class OpensslBuilder(build_ext.build_ext):
"""
Specialization of build_ext to enable swig_opts to inherit any
@@ -49,6 +60,7 @@ def finalize_options(self):
name='m2ext',
version='0.1',
description='M2Crypto Extensions',
+ long_description=load_description(),
author='Lev Shamardin',
author_email='shamardin@gmail.com',
license='BSD',

0 comments on commit f563942

Please sign in to comment.