Updated setup.py

This commit is contained in:
Ethan Smith-Coss 2023-07-04 20:47:51 +01:00
parent b7f572aaab
commit 419be2811c
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

36
setup.py Normal file
View File

@ -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+"
)