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 0000000..457c9b4 Binary files /dev/null and b/shufflepy/__pycache__/module.cpython-312.pyc differ 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() +