Bug 1714641: Remove unused "pathlib2" vendored library r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D117069
This commit is contained in:
Mitchell Hentges 2021-06-09 15:48:55 +00:00
Родитель b9531f2856
Коммит 4c4f573190
12 изменённых файлов: 0 добавлений и 2036 удалений

137
third_party/python/pathlib2/CHANGELOG.rst поставляемый
Просмотреть файл

@ -1,137 +0,0 @@
History
-------
Version 2.3.2
^^^^^^^^^^^^^
- Hotfix for broken setup.py.
Version 2.3.1
^^^^^^^^^^^^^
- Fix tests for systems where filesystem encoding only supports ascii
(reported by yurivict, fixed with help of honnibal, see issue #30).
- Use modern setuptools syntax for specifying conditional scandir
dependency (see issue #31).
- Remove legacy use of support module from old pathlib module (see
issue #39). This fixes the tests for Python 3.6.
- Drop the "from __future__ import unicode_literals" and -Qnew tests
as it introduced subtle bugs in the tests, and maintaining separate
test modules for these legacy features seems not worth the effort.
- Drop Python 3.2 support, as scandir no longer supports it.
Version 2.3.0
^^^^^^^^^^^^^
- Sync with upstream pathlib from CPython 3.6.1 (7d1017d).
Version 2.2.1
^^^^^^^^^^^^^
- Fix conditional scandir dependency in wheel (reported by AvdN, see
issue #20 and pull request #21).
Version 2.2.0
^^^^^^^^^^^^^
- Sync with upstream pathlib from CPython 3.5.2 and 3.6.0: fix various
exceptions, empty glob pattern, scandir, __fspath__.
- Support unicode strings to be used to construct paths in Python 2
(reported by native-api, see issue #13 and pull request #15).
Version 2.1.0
^^^^^^^^^^^^^
- Sync with upstream pathlib from CPython 3.5.0: gethomedir, home,
expanduser.
Version 2.0.1
^^^^^^^^^^^^^
- Fix TypeError exceptions in write_bytes and write_text (contributed
by Emanuele Gaifas, see pull request #2).
Version 2.0
^^^^^^^^^^^
- Sync with upstream pathlib from CPython: read_text, write_text,
read_bytes, write_bytes, __enter__, __exit__, samefile.
- Use travis and appveyor for continuous integration.
- Fixed some bugs in test code.
Version 1.0.1
^^^^^^^^^^^^^
- Pull request #4: Python 2.6 compatibility by eevee.
Version 1.0
^^^^^^^^^^^
This version brings ``pathlib`` up to date with the official Python 3.4
release, and also fixes a couple of 2.7-specific issues.
- Python issue #20765: Add missing documentation for PurePath.with_name()
and PurePath.with_suffix().
- Fix test_mkdir_parents when the working directory has additional bits
set (such as the setgid or sticky bits).
- Python issue #20111: pathlib.Path.with_suffix() now sanity checks the
given suffix.
- Python issue #19918: Fix PurePath.relative_to() under Windows.
- Python issue #19921: When Path.mkdir() is called with parents=True, any
missing parent is created with the default permissions, ignoring the mode
argument (mimicking the POSIX "mkdir -p" command).
- Python issue #19887: Improve the Path.resolve() algorithm to support
certain symlink chains.
- Make pathlib usable under Python 2.7 with unicode pathnames (only pure
ASCII, though).
- Issue #21: fix TypeError under Python 2.7 when using new division.
- Add tox support for easier testing.
Version 0.97
^^^^^^^^^^^^
This version brings ``pathlib`` up to date with the final API specified
in :pep:`428`. The changes are too long to list here, it is recommended
to read the `documentation <https://pathlib.readthedocs.org/>`_.
.. warning::
The API in this version is partially incompatible with pathlib 0.8 and
earlier. Be sure to check your code for possible breakage!
Version 0.8
^^^^^^^^^^^
- Add PurePath.name and PurePath.anchor.
- Add Path.owner and Path.group.
- Add Path.replace().
- Add Path.as_uri().
- Issue #10: when creating a file with Path.open(), don't set the executable
bit.
- Issue #11: fix comparisons with non-Path objects.
Version 0.7
^^^^^^^^^^^
- Add '**' (recursive) patterns to Path.glob().
- Fix openat() support after the API refactoring in Python 3.3 beta1.
- Add a *target_is_directory* argument to Path.symlink_to()
Version 0.6
^^^^^^^^^^^
- Add Path.is_file() and Path.is_symlink()
- Add Path.glob() and Path.rglob()
- Add PurePath.match()
Version 0.5
^^^^^^^^^^^
- Add Path.mkdir().
- Add Python 2.7 compatibility by Michele Lacchia.
- Make parent() raise ValueError when the level is greater than the path
length.

23
third_party/python/pathlib2/LICENSE.rst поставляемый
Просмотреть файл

@ -1,23 +0,0 @@
The MIT License (MIT)
Copyright (c) 2014-2017 Matthias C. M. Troffaes
Copyright (c) 2012-2014 Antoine Pitrou and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

10
third_party/python/pathlib2/MANIFEST.in поставляемый
Просмотреть файл

@ -1,10 +0,0 @@
include *.py
recursive-include pathlib2 *.py
recursive-include tests *.py
include *.rst
include VERSION
include requirements.txt
exclude .travis.yml
exclude appveyor.yml
exclude codecov.yml
prune appveyor

72
third_party/python/pathlib2/PKG-INFO поставляемый
Просмотреть файл

@ -1,72 +0,0 @@
Metadata-Version: 1.1
Name: pathlib2
Version: 2.3.2
Summary: Object-oriented filesystem paths
Home-page: https://pypi.python.org/pypi/pathlib2/
Author: Matthias C. M. Troffaes
Author-email: matthias.troffaes@gmail.com
License: MIT
Download-URL: https://pypi.python.org/pypi/pathlib2/
Description-Content-Type: UNKNOWN
Description: The `old pathlib <https://bitbucket.org/pitrou/pathlib>`_
module on bitbucket is in bugfix-only mode.
The goal of pathlib2 is to provide a backport of
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
module which tracks the standard library module,
so all the newest features of the standard pathlib can be
used also on older Python versions.
Download
--------
Standalone releases are available on PyPI:
http://pypi.python.org/pypi/pathlib2/
Development
-----------
The main development takes place in the Python standard library: see
the `Python developer's guide <http://docs.python.org/devguide/>`_.
In particular, new features should be submitted to the
`Python bug tracker <http://bugs.python.org/>`_.
Issues that occur in this backport, but that do not occur not in the
standard Python pathlib module can be submitted on
the `pathlib2 bug tracker <https://github.com/mcmtroffaes/pathlib2/issues>`_.
Documentation
-------------
Refer to the
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
documentation.
.. |travis| image:: https://travis-ci.org/mcmtroffaes/pathlib2.png?branch=develop
:target: https://travis-ci.org/mcmtroffaes/pathlib2
:alt: travis-ci
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/baddx3rpet2wyi2c?svg=true
:target: https://ci.appveyor.com/project/mcmtroffaes/pathlib2
:alt: appveyor
.. |codecov| image:: https://codecov.io/gh/mcmtroffaes/pathlib2/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/mcmtroffaes/pathlib2
:alt: codecov
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Filesystems

52
third_party/python/pathlib2/README.rst поставляемый
Просмотреть файл

@ -1,52 +0,0 @@
pathlib2
========
|appveyor| |travis| |codecov|
Fork of pathlib aiming to support the full stdlib Python API.
The `old pathlib <https://bitbucket.org/pitrou/pathlib>`_
module on bitbucket is in bugfix-only mode.
The goal of pathlib2 is to provide a backport of
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
module which tracks the standard library module,
so all the newest features of the standard pathlib can be
used also on older Python versions.
Download
--------
Standalone releases are available on PyPI:
http://pypi.python.org/pypi/pathlib2/
Development
-----------
The main development takes place in the Python standard library: see
the `Python developer's guide <http://docs.python.org/devguide/>`_.
In particular, new features should be submitted to the
`Python bug tracker <http://bugs.python.org/>`_.
Issues that occur in this backport, but that do not occur not in the
standard Python pathlib module can be submitted on
the `pathlib2 bug tracker <https://github.com/mcmtroffaes/pathlib2/issues>`_.
Documentation
-------------
Refer to the
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
documentation.
.. |travis| image:: https://travis-ci.org/mcmtroffaes/pathlib2.png?branch=develop
:target: https://travis-ci.org/mcmtroffaes/pathlib2
:alt: travis-ci
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/baddx3rpet2wyi2c?svg=true
:target: https://ci.appveyor.com/project/mcmtroffaes/pathlib2
:alt: appveyor
.. |codecov| image:: https://codecov.io/gh/mcmtroffaes/pathlib2/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/mcmtroffaes/pathlib2
:alt: codecov

1
third_party/python/pathlib2/VERSION поставляемый
Просмотреть файл

@ -1 +0,0 @@
2.3.2

1670
third_party/python/pathlib2/pathlib2/__init__.py поставляемый

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,3 +0,0 @@
six
scandir; python_version < '3.5'
mock; python_version < '3.3'

13
third_party/python/pathlib2/setup.cfg поставляемый
Просмотреть файл

@ -1,13 +0,0 @@
[nosetests]
with-coverage = 1
cover-package = pathlib2
cover-branches = 1
cover-html = 1
[wheel]
universal = 1
[egg_info]
tag_build =
tag_date = 0

49
third_party/python/pathlib2/setup.py поставляемый
Просмотреть файл

@ -1,49 +0,0 @@
# Copyright (c) 2014-2017 Matthias C. M. Troffaes
# Copyright (c) 2012-2014 Antoine Pitrou and contributors
# Distributed under the terms of the MIT License.
import io
from setuptools import setup, find_packages
def readfile(filename):
with io.open(filename, encoding="utf-8") as stream:
return stream.read().split("\n")
readme = readfile("README.rst")[5:] # skip title and badges
version = readfile("VERSION")[0].strip()
setup(
name='pathlib2',
version=version,
packages=find_packages(),
license='MIT',
description='Object-oriented filesystem paths',
long_description="\n".join(readme[2:]),
author='Matthias C. M. Troffaes',
author_email='matthias.troffaes@gmail.com',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Filesystems',
],
download_url='https://pypi.python.org/pypi/pathlib2/',
url='https://pypi.python.org/pypi/pathlib2/',
install_requires=[
'six',
'scandir;python_version<"3.5"',
],
)

1
third_party/python/requirements.in поставляемый
Просмотреть файл

@ -30,7 +30,6 @@ glean_parser==3.4.0
jsmin==2.1.0
json-e==2.7.0
mozilla-version==0.3.4
pathlib2==2.3.2
pathspec==0.8
pip-tools==5.5.0
ply==3.10

5
third_party/python/requirements.txt поставляемый
Просмотреть файл

@ -177,10 +177,6 @@ mozilla-version==0.3.4 \
--hash=sha256:3ed4deb7a6fb25c83a5346ef4de08ddff9b2ddc4d16dd8fafb4a84978cc71255 \
--hash=sha256:ce5741c2e7d12c30b53de9f79e30d6ac2a8bd4c93be711d30c7a7a08e32a094f
# via -r requirements-mach-vendor-python.in
pathlib2==2.3.2 \
--hash=sha256:8eb170f8d0d61825e09a95b38be068299ddeda82f35e96c3301a8a5e7604cb83 \
--hash=sha256:d1aa2a11ba7b8f7b21ab852b1fb5afb277e1bb99d5dfc663380b5015c0d80c5a
# via -r requirements-mach-vendor-python.in
pathspec==0.8 \
--hash=sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0 \
--hash=sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061
@ -285,7 +281,6 @@ six==1.13.0 \
# fluent.migrate
# jsonschema
# more-itertools
# pathlib2
# pyrsistent
# pytest
# responses