diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..86026ed --- /dev/null +++ b/setup.py @@ -0,0 +1,36 @@ +import os +import sys +from setuptools import setup, find_packages + + +CURRENT_PYVERSION = sys.version_info[:2] +REQUIRED_PYVERSION = (3, 6) + +if CURRENT_PYVERSION < REQUIRED_PYVERSION: + raise RuntimeError("Unsupported Python version: {}.{}".format(*(REQUIRED_PYVERSION + CURRENT_PYVERSION))) + +sys.path.insert(0, '.') + +info = {} +here = os.path.abspath(os.path.dirname(__file__)) + +with open(os.path.join(here, "soypak/__version__.py"), "r", encoding="utf-8") as f: + exec(f.read(), info) + + +with open(os.path.join(here, "README.md"), 'r', encoding="utf-8") as f: + readme = f.read() + + +setup( + name=info['__title__'], + version=info['__version__'], + description="soypak - package manager", + long_description=readme, + long_description_content_type="text/markdown", + url=info['__url__'], + author="ClosedLess", + author_email=info['__emails__'], + packages=find_packages(), + license="GNU GPL3+" +)