From 7b155c4219932ef1e1ead1764bce97b3803e78d0 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 10 Oct 2024 17:21:29 -0400 Subject: [PATCH] Admninistrivia --- __init__.py | 0 setup.py | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 __init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index 2642edf8..4b7eb983 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,71 @@ #!/usr/bin/env python """Setup script for the 'uncompyle6' distribution.""" -from setuptools import setup +import os.path as osp +import sys -setup(packages=["uncompyle6"]) +import setuptools + +SYS_VERSION = sys.version_info[0:2] +if not ((3, 6) <= SYS_VERSION < (3, 11)): + mess = "Python Release 3.6 .. 3.10 are supported in this code branch." + if (2, 4) <= SYS_VERSION <= (2, 7): + mess += ( + "\nFor your Python, version %s, use the python-2.4 code/branch." + % sys.version[0:3] + ) + if SYS_VERSION >= (3, 3): + mess += ( + "\nFor your Python, version %s, use the python-3.3-3.5 code/branch." + % sys.version[0:3] + ) + if (3, 0) >= SYS_VERSION < (3, 3): + mess += ( + "\nFor your Python, version %s, use the python-3.0-to-3.2 code/branch." + % sys.version[0:3] + ) + elif SYS_VERSION < (2, 4): + mess += ( + "\nThis package is not supported for Python version %s." % sys.version[0:3] + ) + print(mess) + raise Exception(mess) + +dirname = osp.join(".", osp.dirname(__file__)) +parent_dir = osp.join("..", osp.dirname(__file__)) +sys.path.append(parent_dir) + +from __pkginfo__ import ( + __version__, + author, + author_email, + classifiers, + entry_points, + install_requires, + license, + long_description, + modname, + py_modules, + short_desc, + web, + zip_safe, +) + +setuptools.setup( + author=author, + author_email=author_email, + classifiers=classifiers, + description=short_desc, + entry_points=entry_points, + install_requires=install_requires, + license=license, + long_description=long_description, + long_description_content_type="text/x-rst", + name=modname, + packages=setuptools.find_packages(), + py_modules=py_modules, + test_suite="nose.collector", + url=web, + version=__version__, + zip_safe=zip_safe, +)