From ab3ff4de93628f488c88cae59adcaefa2c93f902 Mon Sep 17 00:00:00 2001 From: Tomer Zait Date: Mon, 1 Jan 2024 12:56:31 +0200 Subject: [PATCH] restore setup --- setup.cfg | 6 ++++++ setup.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..1579ff7 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,6 @@ +[bdist_wheel] +universal = 1 + +[metadata] +license_file = LICENSE +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..2ed81de --- /dev/null +++ b/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 + +from os import path +from setuptools import setup, find_packages + +__folder__ = path.abspath(path.dirname(__file__)) + +with open(path.join(__folder__, 'README.md')) as readme_file: + long_description = readme_file.read() + +about = {} +with open(path.join(__folder__, 'requests_raw', '__version__.py')) as about_file: + exec(about_file.read(), about) + +with open(path.join(__folder__, 'requirements.txt')) as req_file: + install_requires = req_file.readlines() + +setup( + name=about['__title__'], + version=about['__version__'], + description=about['__description__'], + long_description=long_description, + long_description_content_type='text/markdown', + author=about['__author__'], + author_email=about['__author_email__'], + packages=find_packages(exclude=['examples', 'tests']), + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", + install_requires=install_requires, + license=about['__license__'], + platforms='any', + url='https://github.com/realgam3/requests-raw', + zip_safe=False, + classifiers=[ + 'License :: OSI Approved :: Apache Software License', + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'Natural Language :: English', + 'Operating System :: POSIX :: Linux', + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy' + ], + extras_require={ + 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4'], + 'socks': ['PySocks>=1.5.6, !=1.5.7'], + 'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'], + }, + project_urls={ + 'Source': 'https://github.com/realgam3/requests-raw', + }, +)