From 83c71bb805641889181ac44688a434aca951583b Mon Sep 17 00:00:00 2001 From: Erasmus Cedernaes Date: Wed, 1 Dec 2021 15:50:09 +0100 Subject: [PATCH] Making the Python 3 package pip-installable --- .gitignore | 3 +++ Python3/src/{xpc.py => xpc/__init__.py} | 0 setup.py | 12 ++++++++++++ 3 files changed, 15 insertions(+) rename Python3/src/{xpc.py => xpc/__init__.py} (100%) create mode 100755 setup.py diff --git a/.gitignore b/.gitignore index 8c184fe..66438fc 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,6 @@ out/ ################# Docs/~$Capability Matrix.xlsx *.xpl +*.egg-info +build +dist diff --git a/Python3/src/xpc.py b/Python3/src/xpc/__init__.py similarity index 100% rename from Python3/src/xpc.py rename to Python3/src/xpc/__init__.py diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..5932881 --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +from setuptools import setup, find_packages + + +setup( + name="xplaneconnect", + version="1.0.0", + python_requires=">=3", + packages=find_packages("Python3/src"), + package_dir={"": "Python3/src"}, + description="XPlaneConnect (XPC) facilitates communication to and from the XPCPlugin.", + url="https://github.com/nasa/XPlaneConnect/", +)