From 23d3e43f0e1f10e69e999f5d4b3ad7a3603dc2ec Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sat, 15 Jul 2023 16:02:46 +0100 Subject: [PATCH] Bring back setup.py for universal wheels --- setup.py | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bbbb39e --- /dev/null +++ b/setup.py @@ -0,0 +1,48 @@ +# Copyright 2019 Ram Rachum and collaborators. +# This program is distributed under the MIT license. +import setuptools +import re + + +def read_file(filename): + with open(filename) as file: + return file.read() + +version = re.search("__version__ = '([0-9.]*)'", + read_file('pysnooper/__init__.py')).group(1) + +setuptools.setup( + name='PySnooper', + version=version, + author='Ram Rachum', + author_email='ram@rachum.com', + description="A poor man's debugger for Python.", + long_description=read_file('README.md'), + long_description_content_type='text/markdown', + url='https://github.com/cool-RR/PySnooper', + packages=setuptools.find_packages(exclude=['tests*']), + install_requires=read_file('requirements.in'), + extras_require={ + 'tests': { + 'pytest', + }, + }, + classifiers=[ + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Topic :: Software Development :: Debuggers', + ], +)