Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Packaged for PyPi.

 * Added PyPi classifiers and package MANIFEST.in.
 * Symlinked README.txt.
 * Bumped version to 0.136.2.
  • Loading branch information...
commit 0eede7241b201800b653f9746d3d20cccf46360c 1 parent 96d8b9b
@phensley authored
Showing with 42 additions and 8 deletions.
  1. +2 −1  .gitignore
  2. +4 −0 MANIFEST.in
  3. +1 −0  README.txt
  4. +35 −7 setup.py
View
3  .gitignore
@@ -1,3 +1,4 @@
build
smhasher.so
-
+dist
+MANIFEST
View
4 MANIFEST.in
@@ -0,0 +1,4 @@
+
+include *.cpp LICENSE *.py
+recursive-include smhasher *
+
View
1  README.txt
View
42 setup.py
@@ -6,7 +6,7 @@
# version number is x.[upstream svn revision].release until upstream
# creates a formal version number.
-VERSION = '0.136.1'
+VERSION = '0.136.2'
# avoid building universal binary (ppc) on osx non-ppc platforms
if sys.platform == 'darwin':
@@ -23,10 +23,38 @@
define_macros=[('MODULE_VERSION', '"%s"' % VERSION)])
-setup(
- name='smhasher',
- version=VERSION,
- description='Python extension for smhasher hash functions',
- ext_modules=[smhasher_ext]
- )
+if __name__ == '__main__':
+ # load README.txt for the long description
+ cwd = os.path.dirname(os.path.abspath(__file__))
+ path = os.path.join(cwd, 'README.txt')
+ readme = open(path, 'rb').read()
+
+ # call setup
+ setup(
+ name = 'smhasher',
+ version = VERSION,
+ description = 'Python extension for smhasher hash functions',
+ author = 'Patrick Hensley',
+ author_email = 'spaceboy@indirect.com',
+ keywords = ['hash', 'hashing', 'smhasher'],
+ url = "http://github.com/phensley/python-smhasher",
+ ext_modules = [smhasher_ext],
+ classifiers = [
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Operating System :: MacOS :: MacOS X",
+ "Operating System :: POSIX :: Linux",
+ "Operating System :: Unix",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2.4",
+ "Programming Language :: Python :: 2.5",
+ "Programming Language :: Python :: 2.6",
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.1",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ long_description = readme,
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.