Skip to content

Commit

Permalink
Setup.py for pypi.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Sep 9, 2010
1 parent c26f4d8 commit 57ed051
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.rst LICENSE test_xerox.py
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import xerox

from distutils.core import setup


def publish():
"""Publish to PyPi"""
os.system("python setup.py sdist upload")

if sys.argv[-1] == "publish":
publish()
sys.exit()

setup(name='xerox',
version='0.2.0',
description='Python wrapper for Gist API',
long_description=open('README.rst').read(),
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
url='http://github.com/kennethreitz/xerox.py',
packages=['xerox'],
license='MIT',
classifiers=(
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
)
)

0 comments on commit 57ed051

Please sign in to comment.