From 94d6559b74194643afe94951c2d67ee0ff95c510 Mon Sep 17 00:00:00 2001
From: LDericher <40151420+ldericher@users.noreply.github.com>
Date: Tue, 7 Sep 2021 15:02:48 +0200
Subject: [PATCH] first try at setup.py
---
.idea/runConfigurations/ffdecks_cmd.xml | 2 +-
.idea/runConfigurations/opuses_cmd.xml | 2 +-
fftcgtool/scripts/__init__.py | 0
fftcgtool.py => fftcgtool/scripts/fftcgtool.py | 4 ----
setup.py | 18 ++++++++++++++++++
5 files changed, 20 insertions(+), 6 deletions(-)
create mode 100644 fftcgtool/scripts/__init__.py
rename fftcgtool.py => fftcgtool/scripts/fftcgtool.py (99%)
create mode 100644 setup.py
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(),
+)