added setup.py

created creational package
moved singleton into its own python file
This commit is contained in:
tylerlaberge
2016-07-18 11:19:44 -04:00
parent 62fb22a3b2
commit 2811f40da8
4 changed files with 12 additions and 1 deletions

View File

11
setup.py Normal file
View File

@@ -0,0 +1,11 @@
from distutils.core import setup
setup(name='pypatterns',
version='0.1',
description='Python Design Patterns',
author='Tyler LaBerge',
packages=[
'pypatterns',
'pypatterns.creational'
],
)

View File

@@ -1,6 +1,6 @@
from unittest import TestCase
from pypatterns.creational_patterns import Singleton
from pypatterns.creational.singleton import Singleton
from tests.utils.dummy import dummy_class_factory