Skip to content

Commit

Permalink
added buildout support and setup.py
Browse files Browse the repository at this point in the history
updated gitignore

Signed-off-by: Bernard `Guyzmo` Pratz <[email protected]>
  • Loading branch information
guyzmo committed Mar 6, 2015
1 parent de65990 commit 5f618f7
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ desktop.ini
.*project
*.exe
*.txt
libs/*.*
libs/*
var/*
bin/*
.coverage
*.egg-info
.installed.cfg
33 changes: 33 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[buildout]
newest = false
parts =
pyoctopart
test
develop = .
develop-dir = ${buildout:directory}/var/clone/
eggs-directory = ${buildout:directory}/var/eggs
develop-eggs-directory = ${buildout:directory}/var/develop-eggs
parts-directory = ${buildout:directory}/var/parts

[pyoctopart]
recipe = zc.recipe.egg
eggs =
pyoctopart
requests
docopt
interpreter = python3

[test]
recipe = pbp.recipe.noserunner
eggs = pyoctopart
requests
nose
nose-progressive
coverage
defaults = -x
--with-progressive
--with-coverage
--where tests
--cover-package pyoctopart


Empty file added pyoctopart/__init__.py
Empty file.
54 changes: 54 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
from setuptools import setup
import os
import sys

if sys.version_info.major != 3:
raise Exception("Sorry this package only works with python3.")

def read(*names):
values = dict()
for name in names:
if os.path.isfile(name):
with open(name) as f:
value = f.read()
else:
value = ''
values[name.split('.')[0]] = value
return values

long_description = """
{README}
""".format(**read('README.md'))

setup(name='pyoctopart',
version='1.0',
description="Python library to connect to Octopart",
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved',
'Operating System :: Unix',
],
keywords='download tv show',
author='Bernard `Guyzmo` Pratz',
author_email='[email protected]',
url='http://m0g.net',
license='GPLv3',
packages=['pyoctopart'],
zip_safe=False,
install_requires=[
'pyoctopart',
'requests',
'setuptools',
],
entry_points="""
# -*- Entry points: -*-
""",
)

if "install" in sys.argv:
print("""
Python Octopart API Library is now installed!
""")
Empty file added var/parts/.placeholder
Empty file.

0 comments on commit 5f618f7

Please sign in to comment.