aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* EbuildPhase: Use async and await syntaxZac Medico2021-03-072-22/+16
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* BuildLogger: Use async and await syntaxZac Medico2021-03-071-7/+5
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* PipeLogger: Use async and await syntaxZac Medico2021-03-071-7/+5
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _writer: Use async and await syntaxZac Medico2021-03-071-8/+5
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _test_lock_fn: use _lock_manager and call unlockZac Medico2021-03-071-29/+30
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* dblink: add _format_contents_line methodZac Medico2021-03-071-5/+37
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* AsyncioEventLoop: remove obsolete supports_multiprocessing attributeZac Medico2021-03-071-6/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove unused _PortageEventLoop and _PortageChildWatcherZac Medico2021-03-061-112/+0
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Removed unused portage.util.futures.eventsZac Medico2021-03-062-209/+3
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove unused _EventLoopFuture classZac Medico2021-03-061-155/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Removed unused portage.util.futures.transportsZac Medico2021-03-062-577/+2
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Removed unused portage.util.futures._asyncio.tasksZac Medico2021-03-062-123/+19
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove unused PollSelectAdapter and PollConstants classesZac Medico2021-03-062-91/+0
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin_entry_point: handle versioned python shebangsZac Medico2021-03-061-1/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove unused EventLoop classZac Medico2021-03-061-1153/+0
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove unit tests for deprecated EAPI-progressZac Medico2021-03-062-196/+0
| | | | | Fixes: 67cf9c2b0504 ("Mark EAPIs 4-python and 5-progress as deprecated") Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Mark EAPIs "4-python" and "5-progress" as deprecatedMatt Turner2021-03-061-4/+4
| | | | | Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Use asyncio.subprocess.Process directlyMatt Turner2021-03-062-120/+4
| | | | | | | | With no need to support Python 2, we can remove our private implementation. Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* lib: Remove outdated Python 2 commentsMatt Turner2021-03-068-32/+0
| | | | | | Fixes: 788c0e8bb ("Remove from __future__ import unicode_literals") Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove outdated mention of Python 2 from commentMatt Turner2021-03-061-5/+5
| | | | | | Fixes: 5e9fe0f2a ("Eliminate basestring/long/_unicode py3 compat") Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Remove Python 2 workaroundMatt Turner2021-03-061-5/+1
| | | | | Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* man/make.conf.5: fix typosSam James2021-03-061-4/+4
| | | | | | Closes: https://github.com/gentoo/portage/pull/681 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _test_lock_fn: extend lock_fn to return unlock functionZac Medico2021-03-061-7/+12
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _get_lock_fn: split out _test_lock_fnZac Medico2021-03-051-10/+17
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: remove unused eprefix variableZac Medico2021-03-041-15/+4
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin/ebuild-pyhelper: wrapper for portage python helpersZac Medico2021-03-043-18/+23
| | | | | | | Merge the shell script wrappers for chmod-lite and ebuild-ipc into a single ebuild-pyhelper script. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: fix EPREFIX and PORTAGE_BASE_PATH for pip installZac Medico2021-03-031-7/+44
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin_entry_point: rewrite python shebangs for venvZac Medico2021-03-031-1/+11
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: prefix repos.conf paths for venvZac Medico2021-03-021-0/+16
| | | | | | | | | Prefix repos.conf location and sync-openpgp-key-path values for venv. There is no intention to do this for normal EPREFIX. This behavior is intended only when create_entry_points is True, so that if emerge --sync runs in a venv, the operation will not accidentally modify paths outside of sys.prefix. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py add licenseZac Medico2021-03-021-0/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: add project_urlsZac Medico2021-03-021-0/+4
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: add long_description = file: READMEZac Medico2021-03-021-0/+4
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: add descriptionZac Medico2021-03-021-0/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emerge: make --binpkg-respect-use=y imply --autounmask-use=nZac Medico2021-03-023-20/+31
| | | | | | | | | If --binpkg-respect-use=y is given explicitly, then it implies --autounmask-use=n, because these options naturally oppose eachother. Bug: https://bugs.gentoo.org/773469 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: change default sdist format to xzZac Medico2021-03-021-1/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: initialize sdist formats in initialize_optionsZac Medico2021-03-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize sdist formats in initialize_options, which prevents interference with python -m build --sdist when it calls sdist --formats gztar: $ python -m build --sdist Found existing installation: setuptools 47.1.0 Uninstalling setuptools-47.1.0: Successfully uninstalled setuptools-47.1.0 Collecting wheel Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB) Collecting setuptools Using cached setuptools-54.0.0-py3-none-any.whl (784 kB) Installing collected packages: wheel, setuptools Successfully installed setuptools-54.0.0 wheel-0.36.2 running egg_info writing lib/portage.egg-info/PKG-INFO writing dependency_links to lib/portage.egg-info/dependency_links.txt writing entry points to lib/portage.egg-info/entry_points.txt writing top-level names to lib/portage.egg-info/top_level.txt reading manifest file 'lib/portage.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'lib/portage.egg-info/SOURCES.txt' running sdist running check warning: x_sdist: standard file '_in_process.py' not found reading manifest template 'MANIFEST.in' writing manifest file 'MANIFEST' creating portage-3.0.16 making hard links in portage-3.0.16... Creating tar archive removing 'portage-3.0.16' (and everything under it) Traceback (most recent call last): File "venv/lib/python3.8/site-packages/pep517/_in_process.py", line 280, in <module> main() File "venv/lib/python3.8/site-packages/pep517/_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "venv/lib/python3.8/site-packages/pep517/_in_process.py", line 236, in build_sdist return backend.build_sdist(sdist_directory, config_settings) File "/tmp/build-env-wmm8zljz/lib/python3.8/site-packages/setuptools/build_meta.py", line 220, in build_sdist return self._build_with_temp_dir(['sdist', '--formats', 'gztar'], File "/tmp/build-env-wmm8zljz/lib/python3.8/site-packages/setuptools/build_meta.py", line 204, in _build_with_temp_dir result_basename = _file_with_extension( File "/tmp/build-env-wmm8zljz/lib/python3.8/site-packages/setuptools/build_meta.py", line 104, in _file_with_extension file, = matching ValueError: not enough values to unpack (expected 1, got 0) Traceback (most recent call last): File "/usr/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/tmp/build-env-wmm8zljz/bin/python', 'venv/lib/python3.8/site-packages/pep517/_in_process.py', 'build_sdist', '/tmp/tmp7fyiwp3x']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "venv/lib/python3.8/site-packages/build/__init__.py", line 308, in _call_backend raise BuildBackendException(exception) build.BuildBackendException: Backend operation failed: CalledProcessError(1, ['/tmp/build-env-wmm8zljz/bin/python', 'venv/lib/python3.8/site-packages/pep517/_in_process.py', 'build_sdist', '/tmp/tmp7fyiwp3x']) ERROR Backend operation failed: CalledProcessError(1, ['/tmp/build-env-wmm8zljz/bin/python', 'venv/lib/python3.8/site-packages/pep517/_in_process.py', 'build_sdist', '/tmp/tmp7fyiwp3x']) Signed-off-by: Zac Medico <zmedico@gentoo.org>
* MANIFEST.in: include src/*Zac Medico2021-03-011-0/+3
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Include --autounmask-backtrack in unit test for bug 773469Zac Medico2021-03-011-4/+6
| | | | | | | | | The --autounmask-backtrack option is needed in order to trigger the --binpkg-respect-use=y behavior that appears confusingly similar to --binpkg-respect-use=n behavior. Bug: https://bugs.gentoo.org/773469 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add unit test demonstrating --autounmask-use / --binpkg-respect-use=y conflictZac Medico2021-02-281-1/+17
| | | | | Bug: https://bugs.gentoo.org/773469 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: create_entry_points disables ext_modules, for pure pythonZac Medico2021-02-281-1/+3
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: python_requires = ">=3.6"Zac Medico2021-02-281-1/+3
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* setup.py: add entry_points when installed with pipZac Medico2021-02-282-6/+45
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add pyproject.tomlZac Medico2021-02-271-0/+6
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Updates for portage-3.0.16 releaseportage-3.0.16Zac Medico2021-02-273-1/+13
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* man/emirrordist.1: fix --content-db descriptionZac Medico2021-02-261-1/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emirrordist: add --content-db option required for content-hash layout (bug ↵Zac Medico2021-02-269-10/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | 756778) Add a --content-db option which is required for the content-hash layout because its file listings return content digests instead of distfile names. The content db serves to translate content digests to distfiles names, and distfiles names to content digests. All keys have one or more prefixes separated by colons. For a digest key, the first prefix is "digest" and the second prefix is the hash algorithm name. For a filename key, the prefix is "filename". The value associated with a digest key is a set of file names. The value associated with a distfile key is a set of content revisions. Each content revision is expressed as a dictionary of digests which is suitable for construction of a DistfileName instance. A given content digest will translate to multiple distfile names if multiple associations have been created via the content db add method. The relationship between a content digest and a distfile name is similar to the relationship between an inode and a hardlink. Bug: https://bugs.gentoo.org/756778 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emirrordist: support minimal object as options for use in unit testsZac Medico2021-02-261-16/+17
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* RepoConfig.config_string: don't override repos with aliases (bug 749333)Zac Medico2021-02-261-0/+2
| | | | | Bug: https://bugs.gentoo.org/749333 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* make.globals: make FEATURES=-binpkg-multi-instance sticky for existing installsZac Medico2021-02-261-0/+33
| | | | | | | | | | Add a _compat_upgrade.binpkg_multi_instance script that the ebuild can call in pkg_preinst in order to maintain a backward-compatible FEATURES=-binpkg-multi-instance default on existing installs where enabling binpkg-multi-instance could cause disruption. Bug: https://bugs.gentoo.org/772785 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* repoman: Change message for preserve_old_lib (bug 692486)Arfrever Frehtes Taifersar Arahesis2021-02-252-2/+2
| | | | | | Bug: https://bugs.gentoo.org/692486 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Zac Medico <zmedico@gentoo.org>