From 74837d066bacb27836bd3a34b2bd44dbdd22c3f9 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 18 Oct 2017 23:26:01 -0400 Subject: [PATCH] Converted to python package and reorganized repo. resolves #33 --- motivate/__init__.py | 1 + motivate/__init__.pyc | Bin 0 -> 161 bytes {data => motivate/data}/001.json | 0 {data => motivate/data}/002.json | 0 {data => motivate/data}/003.json | 0 {data => motivate/data}/004.json | 0 {data => motivate/data}/005.json | 0 {data => motivate/data}/006.json | 0 {data => motivate/data}/007.json | 0 {data => motivate/data}/008.json | 0 {data => motivate/data}/009.json | 0 {data => motivate/data}/010.json | 0 {data => motivate/data}/011.json | 0 {data => motivate/data}/012.json | 0 {data => motivate/data}/013.json | 0 {data => motivate/data}/014.json | 0 {data => motivate/data}/015.json | 0 {data => motivate/data}/016.json | 0 {data => motivate/data}/017.json | 0 .../data_unique}/unique_quotes.json | 0 find_dupes.py => motivate/find_dupes.py | 0 install.sh => motivate/install.sh | 0 motivate.bat => motivate/motivate.bat | 0 motivate.py => motivate/motivate.py | 4 ++-- motivate/motivate.pyc | Bin 0 -> 1587 bytes unique_quotes.py => motivate/unique_quotes.py | 0 setup.py | 13 +++++++++++++ 27 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 motivate/__init__.py create mode 100644 motivate/__init__.pyc rename {data => motivate/data}/001.json (100%) rename {data => motivate/data}/002.json (100%) rename {data => motivate/data}/003.json (100%) rename {data => motivate/data}/004.json (100%) rename {data => motivate/data}/005.json (100%) rename {data => motivate/data}/006.json (100%) rename {data => motivate/data}/007.json (100%) rename {data => motivate/data}/008.json (100%) rename {data => motivate/data}/009.json (100%) rename {data => motivate/data}/010.json (100%) rename {data => motivate/data}/011.json (100%) rename {data => motivate/data}/012.json (100%) rename {data => motivate/data}/013.json (100%) rename {data => motivate/data}/014.json (100%) rename {data => motivate/data}/015.json (100%) rename {data => motivate/data}/016.json (100%) rename {data => motivate/data}/017.json (100%) rename {data_unique => motivate/data_unique}/unique_quotes.json (100%) rename find_dupes.py => motivate/find_dupes.py (100%) rename install.sh => motivate/install.sh (100%) rename motivate.bat => motivate/motivate.bat (100%) rename motivate.py => motivate/motivate.py (98%) create mode 100644 motivate/motivate.pyc rename unique_quotes.py => motivate/unique_quotes.py (100%) create mode 100644 setup.py diff --git a/motivate/__init__.py b/motivate/__init__.py new file mode 100644 index 00000000..1ac770d7 --- /dev/null +++ b/motivate/__init__.py @@ -0,0 +1 @@ +from motivate import quote \ No newline at end of file diff --git a/motivate/__init__.pyc b/motivate/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c70227764bcf45f2e6b61896fe0c1fa333e31af1 GIT binary patch literal 161 zcmZSn%*z!m^&&Ev0ScIav;z%(BFi)F2?6K?9Wl8w^vRA0MBYmst`YuUAkB)@hTQ PpHiBWY6mj97^D#ZLOvgb literal 0 HcmV?d00001 diff --git a/data/001.json b/motivate/data/001.json similarity index 100% rename from data/001.json rename to motivate/data/001.json diff --git a/data/002.json b/motivate/data/002.json similarity index 100% rename from data/002.json rename to motivate/data/002.json diff --git a/data/003.json b/motivate/data/003.json similarity index 100% rename from data/003.json rename to motivate/data/003.json diff --git a/data/004.json b/motivate/data/004.json similarity index 100% rename from data/004.json rename to motivate/data/004.json diff --git a/data/005.json b/motivate/data/005.json similarity index 100% rename from data/005.json rename to motivate/data/005.json diff --git a/data/006.json b/motivate/data/006.json similarity index 100% rename from data/006.json rename to motivate/data/006.json diff --git a/data/007.json b/motivate/data/007.json similarity index 100% rename from data/007.json rename to motivate/data/007.json diff --git a/data/008.json b/motivate/data/008.json similarity index 100% rename from data/008.json rename to motivate/data/008.json diff --git a/data/009.json b/motivate/data/009.json similarity index 100% rename from data/009.json rename to motivate/data/009.json diff --git a/data/010.json b/motivate/data/010.json similarity index 100% rename from data/010.json rename to motivate/data/010.json diff --git a/data/011.json b/motivate/data/011.json similarity index 100% rename from data/011.json rename to motivate/data/011.json diff --git a/data/012.json b/motivate/data/012.json similarity index 100% rename from data/012.json rename to motivate/data/012.json diff --git a/data/013.json b/motivate/data/013.json similarity index 100% rename from data/013.json rename to motivate/data/013.json diff --git a/data/014.json b/motivate/data/014.json similarity index 100% rename from data/014.json rename to motivate/data/014.json diff --git a/data/015.json b/motivate/data/015.json similarity index 100% rename from data/015.json rename to motivate/data/015.json diff --git a/data/016.json b/motivate/data/016.json similarity index 100% rename from data/016.json rename to motivate/data/016.json diff --git a/data/017.json b/motivate/data/017.json similarity index 100% rename from data/017.json rename to motivate/data/017.json diff --git a/data_unique/unique_quotes.json b/motivate/data_unique/unique_quotes.json similarity index 100% rename from data_unique/unique_quotes.json rename to motivate/data_unique/unique_quotes.json diff --git a/find_dupes.py b/motivate/find_dupes.py similarity index 100% rename from find_dupes.py rename to motivate/find_dupes.py diff --git a/install.sh b/motivate/install.sh similarity index 100% rename from install.sh rename to motivate/install.sh diff --git a/motivate.bat b/motivate/motivate.bat similarity index 100% rename from motivate.bat rename to motivate/motivate.bat diff --git a/motivate.py b/motivate/motivate.py similarity index 98% rename from motivate.py rename to motivate/motivate.py index 857b9181..aa232eb2 100755 --- a/motivate.py +++ b/motivate/motivate.py @@ -19,7 +19,7 @@ def getlink(file): return path -def main(): +def quote(): abspath = getlink(__file__) data_dir = os.path.join(abspath, 'data') try: @@ -42,4 +42,4 @@ def main(): if __name__ == "__main__": - main() + quote() diff --git a/motivate/motivate.pyc b/motivate/motivate.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a61a4a4c88ae58ac8b561a88eb4e9bbbb9a7fdae GIT binary patch literal 1587 zcma)6-)|d55S~5%h<$OA656H#37z`T+>4D6ls>d7h#!Fmh`>Q=8w96I_FSKHx9i-l zD}v5X=_`UK9{3A+=MRAS#=hhQ32g6r?wgr!XJ%)v_19K-@z$R&&S?D!`2S;G?i=1T z{}dHOC)cu~6V>1Wodl!`#LtVbTZ@o^WiLblGg0i|Uo!aVg;4{h#>+?@Lj7Ij{UzQ=Nvr5XyM z6OTz=WMdQ|=C#_~ZI(*w^H-_Q-fe`@{8H#%W*!V+bGP85cGRwVC%6+}-&JS82E6*b zq_SL6WaSl#xRl7brn5H6$F;r+P`=Br$#>}GO4}vQnT@*I#JaCBH+nTU2*}EIGu6m$Ruikl#Kl*prXCx9l}o z-J^ZorTrxb#e99*(>-4N&&b+OY(lmPN$*e{uJs|z^%m^`S#DCj$;mzAS^4%kZ^tn% zAaYGI;-+&G^W z#mG$$qRY&Wa?DJQUU3+t(ac%HSrT0=tj`>J?d|X1d;I=~rGw>tu>w*`OQs7ywbhN; z!_uLJheHR-u-|v+sWroWhxU<&hvje>zrjyq==oZSk_2s=Bx9T--7ERdY;HWrip)r_ z7P<4>{_BZ=j|b5q3rE%;+J(`dSCy^AJNqg3Vp*j|+foQ1GN+I_UrDw>URoW<`ho4E%tRs(fMwbZ`)Ky9gx+UBW_dA4^{#1g*S z{9Tv7OmmYY@*W!BW8c+9ya@@(3iH|&S+FUi|LYY4_a~**iz0g}t%hn2IJQBnzumt( GQ2zi8UM_wB literal 0 HcmV?d00001 diff --git a/unique_quotes.py b/motivate/unique_quotes.py similarity index 100% rename from unique_quotes.py rename to motivate/unique_quotes.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..bcaab8a8 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup + +setup( + name='motivate', + version='0.1', + description='A simple script to print random motivational quotes.', + url='https://github.com/mubaris/motivate', + author='mubaris', + author_email='mubarishassannk@gmail.com', + license='MIT', + packages=['motivate'], + zip_safe=False + ) \ No newline at end of file