Skip to content
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

Discussion : Change to the release process #4263

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
labels:
- "dependency"
open-pull-requests-limit: 10
26 changes: 11 additions & 15 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@
Pylint's ChangeLog
------------------

..
Put new features and bugfixes here and also in 'doc/whatsnew/2.8.rst'

What's New in Pylint 2.8.0?
===========================
Release date: Undefined

..
Put new features here and also in 'doc/whatsnew/2.8.rst'
Release date: 2021-04-25

* New refactoring message ``consider-using-with``. This message is emitted if resource-allocating functions or methods of the
standard library (like ``open()`` or ``threading.Lock.acquire()``) that can be used as a context manager are called without
@@ -34,9 +34,13 @@ Release date: Undefined
``typing.Final``

* The packaging is now done via setuptools exclusively. ``doc``, ``tests``, ``man``, ``elisp`` and ``Changelog`` are
not packaged anymore - reducing the size of the package by 75%. Debian packaging is now (officially) done in
https://salsa.debian.org/python-team/packages/pylint. The 'doc' extra-require has been removed. ``__pkginfo__`` now
only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still
not packaged anymore - reducing the size of the package by 75%.

* Debian packaging is now (officially) done in https://salsa.debian.org/python-team/packages/pylint.

* The 'doc' extra-require has been removed.

* ``__pkginfo__`` now only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still
accessible with ``import importlib;metadata.metadata('pylint')``.

* COPYING has been renamed to LICENSE for standardization.
@@ -62,14 +66,6 @@ Release date: Undefined
(For example, 'typing.Dict' can be replaced by 'dict', and 'typing.Unions' by '|', etc.)
Make sure to check the config options if you plan on using it!


What's New in Pylint 2.7.5?
===========================
Release date: Undefined

..
Put bug fixes that will be cherry-picked to latest major version here

* Reactivates old counts in report mode.

Closes #3819
2 changes: 1 addition & 1 deletion doc/development_guide/contribute.rst
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ astroid:
Discord server
--------------

https://discord.gg/kFebW799
https://discord.gg/Egy6P8AMB5

Mailing lists
-------------
24 changes: 8 additions & 16 deletions doc/release.md
Original file line number Diff line number Diff line change
@@ -46,18 +46,11 @@ twine upload dist/*

## Post release

### New branch to create for major releases
### Merge tags in master for pre-commit

The master branch will have all the new features for the `X.Y+1` version

If you're doing a major release, you need to create the `X.Y` branch where we will
cherry-pick bugs to release the `X.Y.Z+1` minor versions

### Merge tags in master for minor releases

Merge the tag `X.Y.Z` in the main branch by doing a history only merge. It's done in
order to signal that this is an official release tag, and for `pre-commit autoupdate` to
works.
If the tag you just made is not part of the main branch, merge the tag `X.Y.Z` in the
main branch by doing a history only merge. It's done in order to signal that this is an
official release tag, and for `pre-commit autoupdate` to works.

```bash
git checkout master
@@ -74,8 +67,8 @@ issue labelled as blocker.

#### Changelog

- Create a new section, with the name of the release `X.Y.Z+1` on the `X.Y` branch.
- If it's a major release, also create a new section for `X.Y+1.0` on the master branch
- Create a new section, with the name of the release `X.Y.Z+1` or `X.Y+1.0` on the
master branch.

You need to add the estimated date when it is going to be published. If no date can be
known at that time, we should use `Undefined`.
@@ -87,6 +80,5 @@ at the examples from `doc/whatsnew`.

### Versions

Update `__version__` to `X.Y+1.0` in `pylint/__pkginfo__.py` for `master` and to
`X.Y.Z+1` for the `X.Y` branch. `dev_version` should also be back to an integer after
the tag.
Update `__version__` to `X.Y+1.0` or `X.Y.Z+1` in `__pkginfo__`. `dev_version` should
also be back to an integer after the tag.
13 changes: 6 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -31,13 +31,12 @@ classifiers =
Topic :: Software Development :: Testing
keywords = static code analysis linter python lint
project_urls =
"What's New" = https://pylint.pycqa.org/en/latest/whatsnew/
"Bug tracker" = https://github.com/PyCQA/pylint/issues
"Discord server" = https://discord.gg/kFebW799
"User manual" = http://pylint.pycqa.org/en/latest/
"Contributing" = http://pylint.pycqa.org/en/latest/development_guide/contribute.html
"Technical references" = http://pylint.pycqa.org/en/latest/technical_reference/index.html
"Mailing list" = mailto:code-quality@python.org
What's New = https://pylint.pycqa.org/en/latest/whatsnew/
Bug tracker = https://github.com/PyCQA/pylint/issues
Discord server = https://discord.gg/Egy6P8AMB5
User manual = http://pylint.pycqa.org/en/latest/
Contributing = http://pylint.pycqa.org/en/latest/development_guide/contribute.html
Technical references = http://pylint.pycqa.org/en/latest/technical_reference/index.html
[options]
packages = find: