Commit Graph

128 Commits

Author SHA1 Message Date
Ryan Lovelett
c955e6e4c8 Python 3 removes the reduce builtin
This fix is merely the result of the suggestion in the Python 3 docs.
See: https://docs.python.org/3.0/whatsnew/3.0.html#builtins
2016-06-11 09:09:17 -04:00
rintaro ishizaki
98eb26323d [update-checkout] Allow untracked files 2016-06-07 18:22:47 +09:00
Michael Gottesman
03fc193cc4 [update-checkout] Allow the config file to specify a per repo overriding url. 2016-06-06 17:42:27 -07:00
Michael Gottesman
4581c8514f [update-checkout] Change the config file to consistently use dashes instead of underscores in config keys. Update update-checkout to match. 2016-06-06 17:38:30 -07:00
Michael Gottesman
62c5816f20 [update-checkout] When branch is not set, use the default-branch-alias specified by our config file.
Certain checkout configurations do not have the proper default branches set. We
delegate to the config file to specify the default branches to use so the config
file can just tell us the appropriate thing to do here.
2016-06-06 17:35:26 -07:00
Michael Gottesman
4ceee268b3 [update-checkout] Rather than hard coding the strings that a branch matches to cause it to be a *-branches branch, store the *-branches in the configuration file and the accepted names for the *-branches. This enables other configuration files to customize this behavior. 2016-06-06 17:09:58 -07:00
Michael Gottesman
faa13a8111 [update-checkout] Generate ssh/https urls from a config template rather than hardcoding.
This allows for other configuration files to specify other ssh/https
locations.
2016-06-06 17:01:56 -07:00
Michael Gottesman
12dc79aec3 [update-checkout] Rather than manually creating a path, use os.path.join. NFC. 2016-06-06 17:01:56 -07:00
Michael Gottesman
bedca5c16f [update-checkout] Extract out the specific list of repositories and branches to checkout into update-checkout-config.json.
This will allow for other configuration files to be specified on the command
line, allowing update-checkout to be used with other repositories besides the
default.
2016-06-06 15:32:49 -07:00
Daniel Dunbar
bb81448152 [utils] Rename print_command argument.
- Based on review feedback in PR#2836.
2016-06-02 08:53:48 -07:00
Daniel Dunbar
ad1540faeb [utils] Switch random scripts to shell.capture.
- This eliminates the last uses of `SwiftBuildSupport.check_output`.
2016-06-01 22:58:40 -07:00
Daniel Dunbar
87a17001cc [utils] Switch some random scripts to shell.call. 2016-06-01 22:35:16 -07:00
Daniel Dunbar
0c74a9d14b [utils] Add swift_build_support.shell option to control command printing.
- This also uses the option in update-checkout to restores the previous, less
   verbose, output.
2016-06-01 22:21:23 -07:00
Daniel Dunbar
5c98e55f0a [utils] Switch update-checkout over to shell.pushd.
- Related to SR-237.
2016-06-01 15:36:05 -07:00
Brian Croom
10c1d8a1a4 [update-checkout] Also update submodules when checking out branch heads 2016-05-31 08:09:58 -04:00
Dmitri Gribenko
15be410aad Merge pull request #2619 from natecook1000/nc-uc-branch
Allow update-checkout to switch to master/stable
2016-05-21 00:05:41 -07:00
Nate Cook
2cfa0f83c2 Add 'compiler-rt' to all branch sets 2016-05-20 20:38:13 -05:00
Michael Gottesman
94200140f7 [update-checkout] Add support for checking out compiler-rt in update-checkout.
This makes pull request testing of master-next work.
2016-05-20 12:46:15 -07:00
Nate Cook
f797602bd1 Allow update-checkout to switch to master/stable 2016-05-20 14:42:01 -05:00
practicalswift
108f49e5b0 [gardening] Fix recently introduced PEP-8 issues. 2016-05-14 19:44:07 +02:00
Mishal Shah
1a2de3e174 [Utils] Support to checkout swift-3.0-preview-1-branch 2016-05-13 12:43:03 -07:00
Vedant Kumar
53f48f8d8b Hook compiler-rt up to the swift build system 2016-03-17 17:44:05 -07:00
Ted Kremenek
065b2f01a4 Merge pull request #1617 from seabaylea/clone-recursive
clone dependent submodules using --recursive
2016-03-16 20:06:29 -07:00
practicalswift
1edb62dc38 [Python] Make flake8 linting pass without errors/warning (w/ default rules) 2016-03-13 20:19:51 +01:00
practicalswift
a27e9183ba [Python] Fix recently introduced PEP-8 regressions 2016-03-11 20:36:03 +01:00
practicalswift
8bf6df8539 Merge pull request #1615 from practicalswift/remove-global-ignores-add-local-noqa
[Python] Replace global linting excludes with local line-level excludes ("noqa")
2016-03-11 14:42:15 +01:00
Mishal Shah
2eb7432999 [Utils] Add support to clone master-next branch 2016-03-10 14:06:07 -08:00
seabaylea
b09b03bd8d clone dependent submodules using --recursive 2016-03-10 15:44:51 +00:00
practicalswift
d5326bfdc4 [Python] Replace global linting excludes with local line-level excludes ("noqa")
Replace the project global linting rule excludes (as defined in .pep8) with
fine-grained "# noqa" annotations.

By using noqa annotation the excludes are made on a per line basis instead of
globally.

These annotations are used where we make deliberate deviations from the standard
linting rules.

To lint the Python code in the project:

  $ flake8

To install flake8:

  $ pip install flake8

See https://flake8.readthedocs.org/en/latest/ for details.

To enable checking of the PEP-8 naming conventions, install the optional
extension pep8-naming:

  $ pip install pep8-naming

To enable checking of blind "except:" statements, install the optional
extension flake8-blind-except:

  $ pip install flake8-blind-except

To enable checking of import statement order, install the optional
extension flake8-import-order:

  $ pip install flake8-import-order
2016-03-10 16:22:48 +01:00
practicalswift
0796eaad1f [Python] Fix 80-column violations 2016-03-09 23:52:11 +01:00
practicalswift
183da818df [Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
* E101: indentation contains mixed spaces and tabs
* E111: indentation is not a multiple of four
* E128: continuation line under-indented for visual indent
* E302: expected 2 blank lines, found 1
* W191: indentation contains tabs
2016-03-07 22:36:23 +01:00
Enrico Granata
66b0b57b8f Fix grammar issue in help text 2016-02-25 10:32:46 -08:00
practicalswift
0a33ff727c Fix new PEP8 violation: "continuation line with same indent as next logical line" 2016-02-20 16:49:25 +01:00
Dmitri Gribenko
e3542446cb update-checkout: add an option to skip given repositories 2016-02-20 03:10:53 -08:00
Dmitri Gribenko
75c101d980 update-checkout: change --clone to also update repositories
--clone used to skip updating the repositories, which was causing
confusion.  Developers expect update-checkout to update their local
copy, and optionally clone extra repositories.
2016-02-20 02:45:08 -08:00
Shun Takebayashi
59a046b9bd Rename --fast to --skip-history 2016-02-16 21:59:27 +09:00
Shun Takebayashi
5e75a1ca7e Add --fast flag to utils/update-checkout 2016-02-11 10:49:51 +09:00
Kevin Ballard
25acbd912b [update-checkout] Always update llvm/clang/llbuild
Get rid of the `--all` flag, since having an out-of-date llvm or clang
can cause build failures, and it's not immediately obvious that
`swift/utils/update-checkout` isn't updating those repos.
2016-02-08 20:56:30 -08:00
Luke Larson
0356ec8ec3 Add Swift Benchmark Suite 2016-02-08 10:47:58 -08:00
Mishal Shah
1a752bd5eb [utils] fix work-tree path in update-checkout script 2016-02-02 19:01:06 -08:00
Dmitri Gribenko
ae6db3ae50 update-checkout: only check for uncommitted changes when switching branches 2016-02-02 10:09:39 -08:00
practicalswift
de94f769d5 [Python] Fix PEP 8 rule: E231 missing whitespace after ',' 2016-02-02 09:36:31 +01:00
Mishal Shah
6e66d6caef [utils] Check repo status before updating repos 2016-02-01 21:21:48 -08:00
Mishal Shah
555cabfe29 [utils] Support to use --branch with update feature 2016-02-01 20:51:33 -08:00
Mishal Shah
2b4ca4e120 [utils] replace opts with arguments 2016-02-01 20:21:28 -08:00
Mishal Shah
18ab61f6c0 [utils] Add support to checkout specific branch 2016-02-01 18:30:34 -08:00
practicalswift
1cd4d4e9c9 [gardening] Fix violations of non-controversial PEP8 rules
Fixes:
* multiple statements on one line (colon) (E701)
* missing whitespace around arithmetic operator (E226)
* missing whitespace around operator (E225)
* closing bracket does not match visual indentation (E124)
* blank line contains whitespace (W293)
* continuation line missing indentation or outdented (E122)
* continuation line over-indented for hanging indent (E126)
* missing expected blank line (E301)
* trailing whitespace (W291)
* unexpected spaces around keyword / parameter equals (E251)
* whitespace after '(', '[' or '{' (E201)
* whitespace before ')', ']' or '}' (E202)
* whitespace before ',' or ':' (E203)
2016-01-23 09:23:33 +01:00
David Grove
06860a4d01 Initial integration of libdispatch into build-script
Extend build-script, build-script-impl, and update-checkout
to include libdispatch.  For now, libdispatch is not
built by default (user must enable via command line
argument).

Integration of testing is functional, but should be improved
in a later pull request.  The basic autotools based test
harness does not give the nice high-level progress output
as the rest of the test suite.

A related pull request to libdispatch (#34) has some fixes
to the autotools build that are needed to enable the test
target to succeed when run in an external directory.
2016-01-21 19:22:45 +00:00
practicalswift
22d043fcc0 [gardening] Fix violations of non-controversial PEP8 rules.
Fixes:
* blank line at end of file
* closing bracket does not match indentation of opening bracket's line
* continuation line over-indented for hanging indent
* continuation line over-indented for visual indent
* continuation line unaligned for hanging indent
* inline comment should start with '# '
* missing whitespace around arithmetic operator
* missing whitespace around bitwise or shift operator
* multiple imports on one line
* multiple spaces after ':'
* multiple spaces after operator
2016-01-16 00:47:43 +01:00
Chris Lattner
a30ae2bf55 Merge pull request #836 from zachpanz88/new-year
Update copyright date
2015-12-31 19:36:14 -08:00