Commit Graph

8295 Commits

Author SHA1 Message Date
Pradyun Gedam 9e3e82e081
Rewrite release preparation automation 2019-11-03 14:48:11 +05:30
Pradyun Gedam 3cb4bdd5e9
Move generate metadata into operations.build.metadata (#7283) 2019-11-03 10:11:35 +05:30
Christopher Hunt de736c661e
Merge pull request #7178 from Desetude/fix/use-str-format
Replace %-format with str#format
2019-11-03 01:34:14 +08:00
Pradyun Gedam 799596e6d1
Move _clean_zip_name into a nested function (#7284) 2019-11-02 22:35:35 +05:30
Christopher Hunt 39d16b6ca8
Merge pull request #7276 from chrahunt/refactor/shared-test-scripts
Share script fixtures across tests
2019-11-02 23:45:48 +08:00
Pradyun Gedam 7256207df7
Move _clean_zip_name into a nested function
Why: Better models how it's used
2019-11-02 20:55:52 +05:30
Pradyun Gedam bebd69173b
Rename _generate_metadata_legacy -> generate_metadata
Why: To avoid importing an _name.
2019-11-02 20:23:47 +05:30
Pradyun Gedam 3f76f5702b
Move logic and imports for legacy metadata generation 2019-11-02 20:23:43 +05:30
Pradyun Gedam 2b5e87cd37
Move operations.{generate_metadata -> build.metadata} 2019-11-02 20:11:30 +05:30
Christopher Hunt 448303a4ac
Merge pull request #7281 from sbidoul/ref-get_used_vcs_backend-sbi
Refactor _get_used_vcs_backend
2019-11-02 10:54:42 +08:00
Stéphane Bidoul (ACSONE) 18a58815a1
Refactor _get_used_vcs_backend 2019-11-01 12:53:54 +01:00
Christopher Hunt 2a2794e09b
Merge pull request #7268 from sbidoul/remove-should_use_ephem_cache-sbi
remove should_use_ephemeral_cache
2019-11-01 16:29:03 +08:00
Christopher Hunt 553824477d
Merge pull request #7195 from ananyo2012/utf8-doc
Document that "coding: utf-8" is supported in requirements.txt
2019-11-01 11:26:48 +08:00
Ananya Maiti bb047aa263 Document that "coding: utf-8" is supported in requirements.txt
Fixes #7182
2019-10-31 20:27:00 +05:30
Xavier Fernandez 01c953b95d docs: Add basic documentation about our CI setup 2019-10-31 15:39:07 +01:00
Christopher Hunt cbc03f3326
Merge pull request #7275 from chrahunt/refactor/return-installedrequirement
Return InstallationResult from requirement installation
2019-10-31 20:09:26 +08:00
Christopher Hunt a0fd8c2154
Merge pull request #7261 from chrahunt/refactor/simplify-req-file-parsing-3
Simplify requirement file parsing
2019-10-31 09:20:40 +08:00
Pradyun Gedam c9dcb0d1b2
Update pypy on Travis (#7273) 2019-10-30 22:23:58 +05:30
Pradyun Gedam 644ff6cbb6
Merge pull request #7107 from mkurnikov/disallow-untyped-defs-wheel
Define untyped defs in pip._internal.wheel
2019-10-30 22:18:05 +05:30
Chris Hunt 0c4625b2ba Use another shared script in pip list tests 2019-10-30 02:16:23 -04:00
Chris Hunt 6cd9852626 Use shared script in pip list tests 2019-10-30 01:55:32 -04:00
Chris Hunt 1f9028851d Make shared script with launchers installed 2019-10-30 01:54:57 -04:00
Chris Hunt ab6b17b2a6 Refactor autocomplete test helper to use shared script 2019-10-30 01:53:48 -04:00
Chris Hunt cc73b2b933 Use shared autocomplete_script for tests 2019-10-30 01:53:45 -04:00
Chris Hunt ae4ad85e5f Make virtualenv/script fixture factories 2019-10-29 23:41:34 -04:00
Chris Hunt 9dc065972f Return InstallationResult from requirement installation 2019-10-29 21:50:48 -04:00
Chris Hunt bc20cac848 Update pypy on Travis 2019-10-29 20:22:33 -04:00
Maxim Kurnikov 3d3f663701 set disallow_untyped_defs=True for pip._internal.wheel 2019-10-29 18:28:41 -04:00
Xavier Fernandez 0597a6d9fb CI: move Python35-x64 from Appveyor to Azure
Since Appveyor provides less runner and is often the bottleneck
2019-10-29 17:51:57 +01:00
Christopher Hunt 1ed50aa6de
Merge pull request #7267 from chrahunt/maint/use-auto-in-ci
Normalize parallelization parameter.
2019-10-29 20:01:25 +08:00
Stéphane Bidoul (ACSONE) cdf09bfc4a
remove should_use_ephemeral_cache 2019-10-29 09:15:44 +01:00
Chris Hunt a7edcc730e Normalize parallelization parameter. 2019-10-29 02:04:55 -04:00
Christopher Hunt 3ff414be9f
Merge pull request #7263 from chrahunt/maint/speedup-azure-pipelines
Put Temp on RAM Disk for Azure Pipelines tests
2019-10-29 12:55:42 +08:00
Chris Hunt ceaf75b9ed Put Temp on RAM Disk for Azure Pipelines tests
Profiling on Azure Pipelines indicates that the majority of our time is
spent waiting for filesystem operations to complete. As a quick way to
improve our test speed in this area, we can do operations on a RAM disk
instead of the default SSDs.
2019-10-28 22:50:37 -04:00
Christopher Hunt 3089e87e73
Merge pull request #7262 from sbidoul/refactor-should_use_ephem_cache-sbi
Refactor should_use_ephemeral_cache
2019-10-29 07:26:57 +08:00
Stéphane Bidoul (ACSONE) e638e24e10
do not repeat tests in should_cache 2019-10-28 22:56:04 +01:00
Stéphane Bidoul (ACSONE) aaa4237adf
refactor should_use_ephemeral_cache 2019-10-28 22:56:04 +01:00
Pradyun Gedam be13cf95d2
Merge pull request #7258 from takluyver/use-user-site-int
Allow for use_user_site being set to an integer
2019-10-27 19:15:04 +05:30
Pradyun Gedam ab9192440f
Merge pull request #7244 from pradyunsg/refactor/simplify-prepare_metadata
Simplify InstallRequirement.prepare_metadata()
2019-10-27 19:12:38 +05:30
Thomas Kluyver f92efc022b Test that setting user in the config file works 2019-10-27 10:09:15 +00:00
Chris Hunt 85918afc5e Remove req_file.process_line and update tests
The behavior that was in process_line was moved to
RequirementsFileParser so it's no longer needed, we just had to
move the remaining tests to use the higher-level parse_requirements
interface.
2019-10-26 13:53:01 -04:00
Chris Hunt 4d4c4f4a02 Extract requirements file parsing from line handling
By using a separate entity to parse lines and recurse into other
requirements files, we can more easily use different strategies for
handling the incoming requirements info.
2019-10-26 13:52:39 -04:00
Chris Hunt 68454d29a5 Make req file parsing unit tests higher-level
Decoupling the tests from the implementation makes it possible
to refactor the interface exposed by process_line.
2019-10-26 13:52:36 -04:00
Chris Hunt 631807c10f Represent parsed lines with ParsedLine class
Also separate logic that handles normal requirement lines from those
that include other requirement/constraint files.
2019-10-26 12:08:19 -04:00
Christopher Hunt be01170ba5
Merge pull request #7245 from chrahunt/refactor/simplify-req-file-parsing-2
Simplify requirement file parsing
2019-10-25 19:51:04 +08:00
Thomas Kluyver 1310fc276a Use truthiness of everything but None for use_user_site 2019-10-25 08:26:11 +01:00
Pradyun Gedam c88da892db
Reduce indentation in warn_on_mismatching_name
Why: Makes it easier to read IMO.
2019-10-24 18:34:54 +05:30
Pradyun Gedam 2c18e1e500
Move warning on mismatching name to a method 2019-10-24 18:34:53 +05:30
Pradyun Gedam 219a9e9d23
Drop a conditional
Why: The metadata directory is always going to be available here. The
method is called *after* metadata generation.
2019-10-24 18:34:53 +05:30
Pradyun Gedam fb8eb15b9a
Handle unnamed requirements within move_to_correct_build_directory
Why: This is only called in one situation, so it makes sense to inline
the relevant bit of code from that method to here.
2019-10-24 18:34:33 +05:30