-
Notifications
You must be signed in to change notification settings - Fork 83
Upgrade to 2.0.0.dev7 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,37 @@ | ||
| # Copyright 2020 Pants project contributors. | ||
| # Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
|
||
| # See https://pants.readme.io/docs/python-setup-py-goal. | ||
| python_distribution( | ||
| name="dist", | ||
| dependencies=[":util"], | ||
| provides=setup_py( | ||
| name='helloworld.util', | ||
| version='0.0.1', | ||
| description='Greeting library utilities.', | ||
| ), | ||
| ) | ||
|
|
||
| python_library( | ||
| # `name` defaults to the name of this directory, i.e., `util`. | ||
| # `sources` defaults to ['*.py', '!*_test.py', '!test_*.py', '!conftest.py']. | ||
| dependencies = [ | ||
| dependencies=[ | ||
| "//:setuptools", | ||
| "//:translate", | ||
| "helloworld/util/proto", | ||
| ], | ||
| # See https://pants.readme.io/docs/python-setup-py-goal. | ||
| provides = setup_py( | ||
| name='helloworld.util', | ||
| version='0.0.1', | ||
| description='Greeting library utilities.', | ||
| ), | ||
| ) | ||
|
|
||
| python_tests( | ||
| name = 'tests', | ||
| name='tests', | ||
| # `sources` defaults to ['*_test.py', 'test_*.py', 'conftest.py']. | ||
| dependencies = [ | ||
| dependencies=[ | ||
| ":config_loader_test_data", | ||
| ":util", | ||
| ], | ||
| ) | ||
|
|
||
| resources( | ||
| name = 'config_loader_test_data', | ||
| sources = ['config_loader_test_data.json'], | ||
| name='config_loader_test_data', | ||
| sources=['config_loader_test_data.json'], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright 2020 Pants project contributors. | ||
| # Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
|
||
| # See https://pants.readme.io/docs/using-pants-in-ci. | ||
|
|
||
| [GLOBAL] | ||
|
|
@@ -6,7 +9,7 @@ pantsd = false | |
| # Limit the maximum number of concurrent processes. Change this | ||
| # to a number that makes sense for your CI setup, based on | ||
| # the number of cores/threads. | ||
| process_execution_local_parallelism = 4 | ||
| process_execution_local_parallelism = 2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not just omit this entirely? The default is probably sound. Or at least comment that the default is equal to the number of cores reported by the system.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this is likely something people will want to tune, and we want to highlight that it's an option. |
||
|
|
||
| [python-setup] | ||
| # Limit the maximum number of concurrent jobs used to resolve third | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also actually run these binaries (once they run successfully again).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, agreed. This is a TODO in the PR description.