diff --git a/.idea/runConfigurations/ffdecks_cmd.xml b/.idea/runConfigurations/ffdecks_cmd.xml
index 9aa642c..1762d6d 100644
--- a/.idea/runConfigurations/ffdecks_cmd.xml
+++ b/.idea/runConfigurations/ffdecks_cmd.xml
@@ -11,7 +11,7 @@
-
+
diff --git a/.idea/runConfigurations/opuses_cmd.xml b/.idea/runConfigurations/opuses_cmd.xml
index 27eea31..0604413 100644
--- a/.idea/runConfigurations/opuses_cmd.xml
+++ b/.idea/runConfigurations/opuses_cmd.xml
@@ -11,7 +11,7 @@
-
+
diff --git a/fftcgtool/scripts/__init__.py b/fftcgtool/scripts/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/fftcgtool.py b/fftcgtool/scripts/fftcgtool.py
similarity index 99%
rename from fftcgtool.py
rename to fftcgtool/scripts/fftcgtool.py
index ad372a5..bfd87f3 100755
--- a/fftcgtool.py
+++ b/fftcgtool/scripts/fftcgtool.py
@@ -202,7 +202,3 @@ def finalize(decks: list[fftcgtool.TTSDeck], **kwargs):
# bye
print("Done. Put the generated JSON files in your 'Saved Objects' Folder.")
print("Thanks for using fftcgtool!")
-
-
-if __name__ == "__main__":
- main()
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..151af10
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,18 @@
+from setuptools import setup
+
+setup(
+ name="fftcgtool",
+ version="0.2",
+ author="LDericher",
+ author_email="ldericher@gmx.de",
+ setup_requires="setuptools-pipfile",
+ use_pipfile=True,
+ entry_points={
+ "console_scripts": [
+ "fftcgtool = fftcgtool.scripts.fftcgtool:main"
+ ],
+ },
+ license="LICENSE",
+ description="Card import tool for 'Final Fantasy TCG Complete' mod for the 'Tabletop Simulator' game",
+ long_description=open("README.md").read(),
+)