Skip to content

Commit

Permalink
Don't update old release notes. (pantsbuild#18123)
Browse files Browse the repository at this point in the history
Somehow these got updated even though I thought I took care
not to update them in pantsbuild#18121.
  • Loading branch information
benjyw authored Jan 30, 2023
1 parent b8a6061 commit aa09bed
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions docs/markdown/Releases/versions/release-notes-1-26.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Some highlights:
- Adds support for `pants.toml` as an improvement on the now legacy `pants.ini` format. See https://groups.google.com/forum/#!topic/pants-devel/N1H03oJONco for details.
- Adds support for Python lockfiles.
- Adds the Pylint linter.
- Adds IPython support to `pants repl`.
- Adds support for getting coverage data with `pants test`.
- Adds IPython support to `./pants repl`.
- Adds support for getting coverage data with `./pants test`.
- When using file arguments with `./.pants test`, `fmt`, or `lint`, Pants now runs over only the files specified, rather than all files belonging to the owning target.
- Changes `pants fmt` and `pants lint` to batch targets together for better performance, at the cost of less fine-grained caching. This can be disabled with `--fmt-per-target-caching` and `--lint-per-target-caching`.
- Changes `./pants fmt` and `./pants lint` to batch targets together for better performance, at the cost of less fine-grained caching. This can be disabled with `--fmt-per-target-caching` and `--lint-per-target-caching`.

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.26.x.rst) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.26.x.rst) for a detailed change log.
12 changes: 6 additions & 6 deletions docs/markdown/Releases/versions/release-notes-1-27.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ updatedAt: "2020-07-15T19:27:30.061Z"
---
Some highlights:

- Improved formatting of `pants help` and `pants goals`.
- Improved formatting of `./pants help` and `./pants goals`.
- `.gitignore` will auto-populate the global option `--pants-ignore`, by default, through the new global option `--pants-use-gitignore`.
- The `dependencies` goal has a new `--type=3rdparty` option to list the requirement strings of your third-party dependencies.
- The `filedeps` goal has a new `--transitive` flag to include all used files from dependencies, instead of only files used the target itself.
- `pants binary` will now use all fields defined on a `python_binary` target, like `zip_safe` and `platforms`.
- `./pants binary` will now use all fields defined on a `python_binary` target, like `zip_safe` and `platforms`.
- When resolving third-party Python dependencies, you can now use the `repos` option in `[python-setup]` to use custom repositories other than PyPI.
- `pants binary` and `pants run` better support globs of targets; they will filter out all irrelevant targets for you.
- `pants -ldebug` and `-ltrace` will enable logging in PEX for better troubleshooting.
- `./pants binary` and `./pants run` better support globs of targets; they will filter out all irrelevant targets for you.
- `./pants -ldebug` and `-ltrace` will enable logging in PEX for better troubleshooting.
- Pytest coverage reports can be written to the console through `--pytest-coverage-report=console`.
- Pytest coverage reports can be automatically opened through `pants test --open-coverage`.
- Pytest coverage reports can be automatically opened through `./pants test --open-coverage`.
- Fixed how interpreter constraints are applied from dependencies.

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.27.x.rst) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.27.x.rst) for a detailed change log.
4 changes: 2 additions & 2 deletions docs/markdown/Releases/versions/release-notes-1-29.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ updatedAt: "2020-07-15T19:26:39.918Z"
---
Some highlights:

- The `run`, `test`, and `setup-py` goals support passing arguments via `--`, e.g. `pants test test_app.py -- -vv -k test_demo`.
- The `run`, `test`, and `setup-py` goals support passing arguments via `--`, e.g. `./pants test test_app.py -- -vv -k test_demo`.
- Python linters can now run on both Python 2 and Python 3 targets in the same run. See [lint](doc:python-lint-goal).
- Added support for Pylint source plugins. See [Linters and formatters](doc:python-linters-and-formatters).
- Added the `filter` goal. See [Project introspection](doc:project-introspection).
Expand All @@ -17,4 +17,4 @@ Some highlights:
- Removed deprecated `source` field in BUILD files in favor of `sources`.
- Removed several deprecated V1 backends and plugins.

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.29.x.rst) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/1.29.x.rst) for a detailed change log.
6 changes: 3 additions & 3 deletions docs/markdown/Releases/versions/release-notes-1-30.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Add `dependency_inference = true` to your `pants.toml`, like this:
]
}
[/block]
To test that it is working, find a sample target, then delete the `dependencies` field from its BUILD file and run `pants dependencies path/to:target`.
To test that it is working, find a sample target, then delete the `dependencies` field from its BUILD file and run `./pants dependencies path/to:target`.

### Teach Pants about your third party dependencies (recommended)
Pants will assume that each of your dependencies exposes a module with the same name; for example, the requirement `Django>=2.0` would expose the module `"django"`. However, sometimes the module is different, like `setuptools` exposing `pkg_resources`.
Expand Down Expand Up @@ -71,11 +71,11 @@ We have not yet closely tuned the performance. The performance should be accepta

#### May find cycles in your code

Dependency inference sometimes reveals cycles between your targets that you did not know about. Run `pants dependencies --transitive ::` to see if you have any.
Dependency inference sometimes reveals cycles between your targets that you did not know about. Run `./pants dependencies --transitive ::` to see if you have any.

If you have cycles, you will need to manually fix these cycles by either creating new targets or moving around code

#### No way to exclude inferred dependencies
Sometimes, dependency inference may infer something that you do not like. Currently, there is not a way to ignore the inference.

We are working on a feature to ignore a dependency by prefixing the value with `!`, like `!helloworld/project:util`.
We are working on a feature to ignore a dependency by prefixing the value with `!`, like `!helloworld/project:util`.
4 changes: 2 additions & 2 deletions docs/markdown/Releases/versions/release-notes-2-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Some highlights:
- New `export-codegen` goal.
- New `pants.backend.python.mixed_interpreter_constraints` backend with a `py-constraints` goal to debug what interpreter constraints are used by code, and `py-constraints --summary` to get an overview of your repo's interpreter constraints. See [Interpreter compatibility](doc:python-interpreter-compatibility) and our [blog post](https://blog.pantsbuild.org/python-3-migrations/) about this.
- New shorthand for the `entry_point` field. If you specify the `sources` field, you can set `entry_point=":my_func"`, and Pants will add the source's module name as the prefix. See [package](doc:python-package-goal).
- New `pants help subsystems` command to list all configurable option scopes.
- New `./pants help subsystems` command to list all configurable option scopes.
- Support for remote caching without remote execution. See [Remote Execution](doc:remote-execution).

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.1.x.rst) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.1.x.rst) for a detailed change log.
4 changes: 2 additions & 2 deletions docs/markdown/Releases/versions/release-notes-2-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hidden: true
createdAt: "2020-11-25T23:17:27.178Z"
updatedAt: "2020-12-29T04:27:12.338Z"
---
This release requires having a Python 3.7 or 3.8 interpreter to run Pants. Run `curl -L -o pants https://raw.githubusercontent.com/pantsbuild/setup/2f079cbe4fc6a1d9d87decba51f19d7689aee69e/pants` to update your pants script to choose the correct interpreter.
This release requires having a Python 3.7 or 3.8 interpreter to run Pants. Run `curl -L -o ./pants https://raw.githubusercontent.com/pantsbuild/setup/2f079cbe4fc6a1d9d87decba51f19d7689aee69e/pants` to update your ./pants script to choose the correct interpreter.

Some highlights:

Expand All @@ -14,4 +14,4 @@ Some highlights:
- Pants uses PEX `2.1.24`, which enables using [the new PIP resolver](https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html) by setting `[python-setup] resolver_version: pip-2020-resolver`. This is expected to be the only stable release of Pants that supports _both_ resolvers without a deprecation, so give it a whirl soon!
- The `sources` field is deprecated for `pex_binary` and `python_awslambda` targets to ease dependency inference, and improve consistency. See [the change](https://github.com/pantsbuild/pants/pull/11332) for more info!

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.2.x.md) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.2.x.md) for a detailed change log.
4 changes: 2 additions & 2 deletions docs/markdown/Releases/versions/release-notes-2-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ updatedAt: "2021-02-25T15:44:51.130Z"
Some highlights:

* Improved performance when running Python subprocesses like Pytest, Flake8, and MyPy, thanks to Pex's new `venv` mode. This shaved off around 1 second for test runs in benchmarks!
* `pants tailor` goal, which will auto-generate BUILD files for you. See [Adopting Pants in existing repositories](doc:existing-repositories).
* `./pants tailor` goal, which will auto-generate BUILD files for you. See [Adopting Pants in existing repositories](doc:existing-repositories).
* Support for specifying `file://` URLs [for downloaded tools](https://github.com/pantsbuild/pants/pull/11499) like Pex and Protoc.
* More robust remote caching support. The client should be more stable and should avoid performance slowdowns thanks to some new optimizations. See [Remote Execution](doc:remote-execution).

See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.3.x.md) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.3.x.md) for a detailed change log.
6 changes: 3 additions & 3 deletions docs/markdown/Releases/versions/release-notes-2-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Some highlights:
* Allow skipping linters/formatters/typecheckers on a per-target basis, e.g. with `skip_black=True`. See [Linters and formatters](doc:python-linters-and-formatters).
* Pants will now autodiscover config files for tools. See [Linters and formatters](doc:python-linters-and-formatters).
* When you use a constraints file, Pants now knows how to resolve your dependencies only once, and then extract the subset of your dependencies from that single resolve.
* This change means that you will not need to resolve dependencies as many times when running `pants package`.
* Cache keys are also smaller for goals like `pants test` and `pants lint`, which means changing your constraints.txt is less likely to invalidate your whole cache.
* This change means that you will not need to resolve dependencies as many times when running `./pants package`.
* Cache keys are also smaller for goals like `./pants test` and `./pants lint`, which means changing your constraints.txt is less likely to invalidate your whole cache.
* Support for running Pants using Python 3.9.

See [here](https://github.com/pantsbuild/pants/blob/main/src/python/pants/notes/2.5.x.md) for a detailed change log.
See [here](https://github.com/pantsbuild/pants/blob/main/src/python/pants/notes/2.5.x.md) for a detailed change log.

0 comments on commit aa09bed

Please sign in to comment.