From 4a63a859dacbbb56d098339bb340dbd6e59116c5 Mon Sep 17 00:00:00 2001 From: Frikky Date: Tue, 1 Oct 2024 15:33:02 +0200 Subject: [PATCH] Changed setup --- pyproject.toml | 16 ------------- setup.py | 22 ++++++++++++++++++ {src/shufflepy => shufflepy}/__init__.py | 0 shufflepy/__pycache__/module.cpython-312.pyc | Bin 0 -> 2358 bytes {src/shufflepy => shufflepy}/module.py | 0 shufflepy/test_module.py | 23 +++++++++++++++++++ 6 files changed, 45 insertions(+), 16 deletions(-) delete mode 100644 pyproject.toml create mode 100644 setup.py rename {src/shufflepy => shufflepy}/__init__.py (100%) create mode 100644 shufflepy/__pycache__/module.cpython-312.pyc rename {src/shufflepy => shufflepy}/module.py (100%) create mode 100644 shufflepy/test_module.py diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index e346f01..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,16 +0,0 @@ -[project] -name="shufflepy" -description="Connect to your favorite APIs with a single line of code." -version="0.0.1" -dependencies=[ - "requests" -] -requires-python=">= 3.6" -authors=[ - {name="Frikky", email="support@shuffler.io"} -] -maintainers=[ - {name="Frikky", email="support@shuffler.io"} -] -readme="README.md" -keywords=["automate", "api", "rest", "requests", "http", "client", "integration", "shuffle", "shuffler", "shuffler.io"] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..802e695 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +from setuptools import setup, find_packages + +setup( + name='shufflepy', # Name of the package + version='0.0.1', # Version number + description='Connect to any API with a single line of code', + long_description=open('README.md').read(), + long_description_content_type='text/markdown', + author='Fredrik Saito Odegaardstuen', + author_email='frikky@shuffler.io', + url='https://github.com/shuffle/shufflepy', + packages=find_packages(), + install_requires=[ + 'requests', + ], + classifiers=[ + 'Programming Language :: Python :: 3', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + ], + python_requires='>=3.6', # Specify Python version requirements +) diff --git a/src/shufflepy/__init__.py b/shufflepy/__init__.py similarity index 100% rename from src/shufflepy/__init__.py rename to shufflepy/__init__.py diff --git a/shufflepy/__pycache__/module.cpython-312.pyc b/shufflepy/__pycache__/module.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..457c9b470d338f6945b87daead774563fdabe9c5 GIT binary patch literal 2358 zcma)7OKclO7@paOz45MVW4m=|Uak`*Y%A>0B9NK}6xsr6s!&L%M0&6+?>gDUvEA8q z8@n5|LOr+=sEs%zs6~_;C>%KE$m0MK7aJd9mL3{$>It{01j>njb{)qJZN*sr=YP$= zv;X7UU%g%rf^~WOuQYZe^d}W|7T099BEYO51t~a#rV)eQK?-vnDeM~KcueCWmbnL1 zm`FJ)hqfXd26+XkXc{YMno(Q|zK*9^8fBVOSo+gYno~H?@DTkgr(LOPvMQ+!)I z7I^yKnzh53j4m2@$FAVDCjT)u@e>xN&BB;iVec>|O0-UzEJ)2)LCEAlqEE3`5y{*{ z$yXqmh^9w~da&K)l8Z|;t_FCLW@B}AUb{T2wmI9;vecN(c@{N&CeI(Gnx_Co#f<; zah;^vq=lSP$f&V=(Gn5~Evp%cM9JUGWNb%6i=vMKxrToC1?~m9D?PDVAYPH;o4%ke z#%qD$iZtACp-{LU>U_wvVNaR+L~M9axQ8_ZrukxI zI5r%61#03QgL34ER!SOLE?e@@Oujreqh<{mlMc9r%n%7SJEBf|AQB;7*er2IH4?LG zQi0T$f;%~EQwG6He-p?xRQCmMUb%5)^|h)mTIT9vaP`%y*jL}*y*jn}b|u(fJ_V`l zjedFI^9x@esP+uk4<3P>`aKQAc6f-7J`O$6=(Hj1M)$y#AdOh}KBw8)XEr-cXsfXy zW^*a*3E&jYWHr3Rn;e0^$tyh7nhZz`NG@A~@|YMT`vgR5AIE02wdTI$GU&bSH7D$F zyZbZl;-<}D^3RVARvV{wqfrjDw0L{gx58TUmP_sqWV+{Qg7>V}odvM__ZUG`#QE2u zE4td?rQ_+Iw~^v81!!Nc4P=B#)Q>RwpQqh(f&bp%$%u>WN9Zz^rHRtfRMJpqa-o(kSSOR8CPX&QKQ(xx*RO12hh88xp3Z)Anu#Q<6rKbWsh2 z*Ymlot~wkw=yc>MsM^aJbT^=LR!tc#_=q(XJ>aW%1G-V141dMi&^TEOOjV?*P2c`@ z5yrd!NSV7S-Vkq{sS17frO>T(gJl3V#fJit0`-Bz0jlw7m4$)$+RyczkF>>;pi$d+axH5U#y?`R?Mz z&`5P?q%wG7{p9z;da2TLrWP2lNaOc?;j-_ah8IJWr@8*@{lU9_wbJumEpVKZ!5uoE&{3eFlvUOyh+`7)81mYaG&2UvE|FH<(Tpe7QQCy{VISinn( z#Kl4~<5y8gjq zG{kp02dO&%JuRqnUZxy{1v}=paKgFA8{{zP==V$y0co%p<3Et^Z*C0Z&PRw+`_#YZ Cr4r`= literal 0 HcmV?d00001 diff --git a/src/shufflepy/module.py b/shufflepy/module.py similarity index 100% rename from src/shufflepy/module.py rename to shufflepy/module.py diff --git a/shufflepy/test_module.py b/shufflepy/test_module.py new file mode 100644 index 0000000..429f302 --- /dev/null +++ b/shufflepy/test_module.py @@ -0,0 +1,23 @@ +# test_mymodule.py +import unittest +from module import Shuffle + +class TestShuffle(unittest.TestCase): + def setUp(self): + self.shuffle = Shuffle("asdf1234") + + def test_connect(self): + resp = self.shuffle.connect( + category="ticket", + app="ticket", + action="list_tickets" + ) + + #self.assertEqual( + # resp["status"], + # 3 + #) + +if __name__ == '__main__': + unittest.main() +