2011-04-04 19:23:50 +02:00
|
|
|
import os
|
2012-09-01 19:33:52 +02:00
|
|
|
import sys
|
2013-08-18 11:59:44 +02:00
|
|
|
|
2018-06-25 13:30:54 +02:00
|
|
|
from setuptools import find_packages, setup
|
2014-11-20 05:56:27 +01:00
|
|
|
|
2011-04-04 19:19:35 +02:00
|
|
|
|
2019-10-07 20:01:20 +02:00
|
|
|
def read(rel_path):
|
2020-12-25 16:54:37 +01:00
|
|
|
# type: (str) -> str
|
2018-11-11 20:52:16 +01:00
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
2014-01-28 15:17:51 +01:00
|
|
|
# intentionally *not* adding an encoding option to open, See:
|
|
|
|
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
|
2021-02-10 11:20:11 +01:00
|
|
|
with open(os.path.join(here, rel_path)) as fp:
|
2017-10-18 07:03:07 +02:00
|
|
|
return fp.read()
|
2012-09-01 19:33:52 +02:00
|
|
|
|
2013-07-23 19:53:54 +02:00
|
|
|
|
2018-11-11 20:52:16 +01:00
|
|
|
def get_version(rel_path):
|
2020-12-25 16:54:37 +01:00
|
|
|
# type: (str) -> str
|
2019-10-07 20:01:20 +02:00
|
|
|
for line in read(rel_path).splitlines():
|
2018-11-11 20:52:16 +01:00
|
|
|
if line.startswith('__version__'):
|
|
|
|
# __version__ = "0.9"
|
2019-11-18 02:08:56 +01:00
|
|
|
delim = '"' if '"' in line else "'"
|
2018-11-11 20:52:16 +01:00
|
|
|
return line.split(delim)[1]
|
2020-07-10 22:45:29 +02:00
|
|
|
raise RuntimeError("Unable to find version string.")
|
2012-09-01 19:33:52 +02:00
|
|
|
|
2017-03-18 19:42:11 +01:00
|
|
|
|
2018-06-06 16:48:04 +02:00
|
|
|
long_description = read('README.rst')
|
2008-10-16 00:02:57 +02:00
|
|
|
|
2014-01-28 15:17:51 +01:00
|
|
|
setup(
|
|
|
|
name="pip",
|
2018-11-11 20:52:16 +01:00
|
|
|
version=get_version("src/pip/__init__.py"),
|
2014-03-11 17:08:52 +01:00
|
|
|
description="The PyPA recommended tool for installing Python packages.",
|
2014-01-28 15:17:51 +01:00
|
|
|
long_description=long_description,
|
2018-06-06 16:48:04 +02:00
|
|
|
|
|
|
|
license='MIT',
|
2014-01-28 15:17:51 +01:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Topic :: Software Development :: Build Tools",
|
2017-10-22 20:25:05 +02:00
|
|
|
"Programming Language :: Python",
|
2014-01-28 15:17:51 +01:00
|
|
|
"Programming Language :: Python :: 3",
|
2021-01-23 15:40:44 +01:00
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
2017-01-18 18:41:30 +01:00
|
|
|
"Programming Language :: Python :: 3.6",
|
2018-07-02 21:22:16 +02:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2019-10-15 17:40:43 +02:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2020-10-08 17:31:41 +02:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2017-10-22 20:25:05 +02:00
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
2018-05-30 12:59:52 +02:00
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
2014-01-28 15:17:51 +01:00
|
|
|
],
|
2018-06-06 16:48:04 +02:00
|
|
|
url='https://pip.pypa.io/',
|
|
|
|
keywords='distutils easy_install egg setuptools wheel virtualenv',
|
2020-01-10 22:33:05 +01:00
|
|
|
project_urls={
|
|
|
|
"Documentation": "https://pip.pypa.io",
|
|
|
|
"Source": "https://github.com/pypa/pip",
|
2020-05-06 07:25:35 +02:00
|
|
|
"Changelog": "https://pip.pypa.io/en/stable/news/",
|
2020-01-10 22:33:05 +01:00
|
|
|
},
|
2018-06-06 16:48:04 +02:00
|
|
|
|
|
|
|
author='The pip developers',
|
2020-05-28 22:46:32 +02:00
|
|
|
author_email='distutils-sig@python.org',
|
2018-06-06 16:48:04 +02:00
|
|
|
|
2017-08-31 17:48:18 +02:00
|
|
|
package_dir={"": "src"},
|
|
|
|
packages=find_packages(
|
2018-06-06 16:48:04 +02:00
|
|
|
where="src",
|
|
|
|
exclude=["contrib", "docs", "tests*", "tasks"],
|
2017-08-31 17:48:18 +02:00
|
|
|
),
|
2015-06-24 02:37:21 +02:00
|
|
|
package_data={
|
2020-12-14 23:24:42 +01:00
|
|
|
"pip": ["py.typed"],
|
2020-03-23 13:36:33 +01:00
|
|
|
"pip._vendor": ["vendor.txt"],
|
2015-06-24 02:37:21 +02:00
|
|
|
"pip._vendor.certifi": ["*.pem"],
|
|
|
|
"pip._vendor.requests": ["*.pem"],
|
|
|
|
"pip._vendor.distlib._backport": ["sysconfig.cfg"],
|
|
|
|
"pip._vendor.distlib": ["t32.exe", "t64.exe", "w32.exe", "w64.exe"],
|
|
|
|
},
|
2014-01-28 15:17:51 +01:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
2019-12-19 02:21:22 +01:00
|
|
|
"pip=pip._internal.cli.main:main",
|
|
|
|
"pip{}=pip._internal.cli.main:main".format(sys.version_info[0]),
|
|
|
|
"pip{}.{}=pip._internal.cli.main:main".format(
|
|
|
|
*sys.version_info[:2]
|
|
|
|
),
|
2018-06-06 16:48:04 +02:00
|
|
|
],
|
2014-01-28 15:17:51 +01:00
|
|
|
},
|
2018-06-06 16:48:04 +02:00
|
|
|
|
2014-01-28 15:17:51 +01:00
|
|
|
zip_safe=False,
|
2020-11-30 18:55:13 +01:00
|
|
|
python_requires='>=3.6',
|
2013-08-18 11:59:44 +02:00
|
|
|
)
|