Skip to content

Commit

Permalink
Add setup script
Browse files Browse the repository at this point in the history
Implements #6
  • Loading branch information
dlindquist committed Jan 13, 2014
1 parent fe78814 commit 59e117a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.pyc
.coverage
cover
*.egg-info
/build
/dist
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include *.txt *.md
47 changes: 47 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
from distutils.core import setup

This comment has been minimized.

Copy link
@cvrebert

cvrebert Jan 15, 2014

Contributor

Shouldn't this include a shebang line?
Does this file have execute permissions enabled?

This comment has been minimized.

Copy link
@dlindquist

dlindquist Jan 15, 2014

Author Member

Hmm, I omitted it as it's almost always executed as python setup.py <cmd>. But on looking at the example on http://docs.python.org/2/distutils/setupscript.html, I see that there is a shebang line. Will change both.

import os
import sys


NAME = 'restfulgit'

VERSION = '0.1.0'

MIN_PYTHON_VERSION = (2, 7)

CLASSIFIERS = [
'Development Status :: 2 - Beta',
'Framework :: Flask',
'Intended Audience :: Developers',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Version Control'
]


if sys.version_info < MIN_PYTHON_VERSION:
raise Exception(
'%s==%s requires Python %s or higher.' % (

This comment has been minimized.

Copy link
@cvrebert

cvrebert Jan 15, 2014

Contributor

But we don't support Python 3..

NAME,
VERSION,
'.'.join([str(x) for x in MIN_PYTHON_VERSION])
)
)

with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
requirements = f.readlines()

setup(
name=NAME,
version=VERSION,
description='A restful interface for accessing data from Git repositories',
long_description=open('README.md').read(),
classifiers=CLASSIFIERS,
maintainer=('Chris Rebert'),

This comment has been minimized.

Copy link
@cvrebert

cvrebert Jan 15, 2014

Contributor

I'm fine with you including my Hulu email address for this.

url='https://github.com/hulu/restfulgit',
provides=[NAME],
packages=['restfulgit'],
zip_safe=True,
install_requires=requirements
)

0 comments on commit 59e117a

Please sign in to comment.