Imported Upstream version 51.1.1 upstream/51.1.1
authorJinWang An <jinwang.an@samsung.com>
Mon, 27 Mar 2023 08:02:30 +0000 (17:02 +0900)
committerJinWang An <jinwang.an@samsung.com>
Mon, 27 Mar 2023 08:02:30 +0000 (17:02 +0900)
.bumpversion.cfg
CHANGES.rst
docs/build_meta.rst
docs/userguide/dependency_management.rst
setup.cfg
setuptools/tests/test_virtualenv.py

index d156dedb0f10caaa27dcb978418131bfcc99559d..60e7352f593924935b9b9c8edcf5813d5161f06f 100644 (file)
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 51.1.0
+current_version = 51.1.1
 commit = True
 tag = True
 
index fb5725cc3ffdd5772f19af880cc4204ffe805f9a..ca76648bd2178c3abe97437bd21b78e40d0a2e3c 100644 (file)
@@ -1,3 +1,12 @@
+v51.1.1
+-------
+
+
+Misc
+^^^^
+* #2525: Avoid hitting network during test_virtualenv.test_test_command.
+
+
 v51.1.0
 -------
 
@@ -371,6 +380,7 @@ v47.2.0
 Changes
 ^^^^^^^
 * #2194: Editable-installed entry points now load significantly faster on Python versions 3.8+.
+* #1471: Incidentally fixed by #2194 on Python 3.8 or when importlib_metadata is present.
 
 
 v47.1.1
index c36e2bab38f391a24f50021765228809168ac8c5..9744488e9930f6bcf921fc130f14f7248fa2e2bc 100644 (file)
@@ -67,14 +67,11 @@ specify the package information::
     [options]
     packages = find:
 
-Now generate the distribution. Although the PyPA is still working to
-`provide a recommended tool <https://github.com/pypa/packaging-problems/issues/219>`_
-to build packages, the `pep517 package <https://pypi.org/project/pep517>`_
-provides this functionality. To build the package::
-
-    $ pip install -q pep517
-    $ mkdir dist
-    $ python -m pep517.build .
+Now generate the distribution. To build the package, use
+`PyPA build <https://pypa-build.readthedocs.io/en/latest/>`_::
+
+    $ pip install -q build
+    $ python -m build
 
 And now it's done! The ``.whl`` file  and ``.tar.gz`` can then be distributed 
 and installed::
index 354a9f8c36fadac655f34fcf970e9559178aed55..0eb2186494cd6d5be309817f3cd61f422c4fa833 100644 (file)
@@ -72,7 +72,7 @@ When your project is installed (e.g. using pip), all of the dependencies not
 already installed will be located (via PyPI), downloaded, built (if necessary),
 and installed and 2) Any scripts in your project will be installed with wrappers
 that verify the availability of the specified dependencies at runtime.
-    
+
 
 Platform specific dependencies
 ------------------------------
@@ -202,7 +202,7 @@ Optional dependencies
 Setuptools allows you to declare dependencies that only get installed under
 specific circumstances. These dependencies are specified with ``extras_require``
 keyword and are only installed if another package depends on it (either
-directly or indirectly) This makes it convenient to declare dependencies for 
+directly or indirectly) This makes it convenient to declare dependencies for
 ancillary functions such as "tests" and "docs".
 
 .. note::
@@ -262,8 +262,12 @@ First is the console_scripts entry point:
         }
     )
 
-When the script ``rst2pdf`` is run, it will trigger the installation of
-the two dependencies ``PDF`` maps to.
+This syntax indicates that the entry point (in this case a console script)
+is only valid when the PDF extra is installed. It is up to the installer
+to determine how to handle the situation where PDF was not indicated
+(e.g. omit the console script, provide a warning when attempting to load
+the entry point, assume the extras are present and let the implementation
+fail later).
 
 The second use case is that other package can use this "extra" for their
 own dependencies. For example, if "Project-B" needs "project A" with PDF support
index 6ef70e26609f427e8159569526957946cd05fbb0..9d41be119cebcb7a925e05ce07bdc18b396751a7 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
 [metadata]
 license_file = LICENSE
 name = setuptools
-version = 51.1.0
+version = 51.1.1
 author = Python Packaging Authority
 author_email = distutils-sig@python.org
 description = Easily download, build, install, upgrade, and uninstall Python packages
index 21dea5bb87110b1e5134766de0f8dbaf5cf7b5f6..5a942d84c5438039635e79d69786e58e054734d3 100644 (file)
@@ -179,6 +179,10 @@ def test_test_command_install_requirements(virtualenv, tmpdir):
     # Ensure pip/wheel packages are installed.
     virtualenv.run(
         "python -c \"__import__('pkg_resources').require(['pip', 'wheel'])\"")
+    # uninstall setuptools so that 'setup.py develop' works
+    virtualenv.run("python -m pip uninstall -y setuptools")
+    # disable index URL so bits and bobs aren't requested from PyPI
+    virtualenv.env['PIP_NO_INDEX'] = '1'
     _check_test_command_install_requirements(virtualenv, tmpdir)