Skip to content

Commit

Permalink
Setting up for PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
polera committed May 30, 2012
1 parent 644c380 commit 646eef3
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
syntax: glob
*.pyc
*.wpr
.idea
dist
nameparts.egg-info
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include README.md LICENSE
2 changes: 1 addition & 1 deletion __init__.py
@@ -1 +1 @@
from separate import Name
from nameparts import Name
File renamed without changes.
43 changes: 43 additions & 0 deletions setup.py
@@ -0,0 +1,43 @@
__author__ = 'James Polera'
__since__ = '2012.05.29'
__email__ = 'james@uncryptic.com'

import os
import sys

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

settings = dict()

if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()

settings.update(
name='nameparts',
version='0.5.2',
description='Takes a full human name and splits it into individual parts',
long_description=read('README.md'),
author='James Polera',
author_email='james@uncryptic.com',
url='https://github.com/polera/nameparts',
keywords='name text processing',
py_modules=['nameparts',],
license='BSD',
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
)
)

setup(**settings)

0 comments on commit 646eef3

Please sign in to comment.