Skip to content

Commit 3d315b4

Browse files
authored
Release 5.0.0 (radeklat#21)
1 parent 5396e69 commit 3d315b4

15 files changed

+723
-959
lines changed

.circleci/config.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ jobs: # A basic unit of work in a run
3131
python_version:
3232
type: string
3333
docker:
34-
- image: circleci/python:<< parameters.python_version >>
34+
- image: cimg/python:<< parameters.python_version >>
3535
environment:
3636
PIPENV_VENV_IN_PROJECT: "true"
3737
working_directory: << pipeline.parameters.working_directory >>
3838
steps:
3939
- checkout
40-
- run: sudo chown -R circleci:circleci /usr/local/bin
41-
- run: sudo chown -R circleci:circleci /usr/local/lib/python<< parameters.python_version >>/site-packages
4240
- restore_cache:
4341
key: << pipeline.parameters.cache_version >>-<< pipeline.parameters.project_name >>-<< parameters.python_version >>-{{ checksum "poetry.lock" }}
4442
- run:
@@ -57,8 +55,6 @@ jobs: # A basic unit of work in a run
5755
key: << pipeline.parameters.cache_version >>-<< pipeline.parameters.project_name >>-<< parameters.python_version >>-{{ checksum "poetry.lock" }}
5856
paths:
5957
- ".venv"
60-
- "/usr/local/bin"
61-
- "/usr/local/lib/python<< parameters.python_version >>/site-packages"
6258
- run:
6359
name: Unit tests
6460
command: << pipeline.parameters.command_prefix >> test-unit
@@ -82,13 +78,11 @@ jobs: # A basic unit of work in a run
8278
build:
8379
working_directory: << pipeline.parameters.working_directory >>
8480
docker: # run the steps with Docker
85-
- image: circleci/python:<< pipeline.parameters.python_version >>
81+
- image: cimg/python:<< pipeline.parameters.python_version >>
8682
environment:
8783
PIPENV_VENV_IN_PROJECT: "true"
8884
steps:
8985
- checkout
90-
- run: sudo chown -R circleci:circleci /usr/local/bin
91-
- run: sudo chown -R circleci:circleci /usr/local/lib/python<< pipeline.parameters.python_version >>/site-packages
9286
- restore_cache:
9387
key: << pipeline.parameters.cache_version >>-<< pipeline.parameters.project_name >>-<< pipeline.parameters.python_version >>-{{ checksum "poetry.lock" }}
9488
- run:
@@ -103,7 +97,7 @@ jobs: # A basic unit of work in a run
10397
publish:
10498
working_directory: << pipeline.parameters.working_directory >>
10599
docker: # run the steps with Docker
106-
- image: circleci/python:<< pipeline.parameters.python_version >>
100+
- image: cimg/python:<< pipeline.parameters.python_version >>
107101
steps:
108102
- attach_workspace:
109103
at: << pipeline.parameters.working_directory >>
@@ -125,11 +119,9 @@ jobs: # A basic unit of work in a run
125119
release:
126120
working_directory: << pipeline.parameters.working_directory >>
127121
docker:
128-
- image: circleci/python:<< pipeline.parameters.python_version >>
122+
- image: cimg/python:<< pipeline.parameters.python_version >>
129123
steps:
130124
- checkout
131-
- run: sudo chown -R circleci:circleci /usr/local/bin
132-
- run: sudo chown -R circleci:circleci /usr/local/lib/python<< pipeline.parameters.python_version >>/site-packages
133125
- restore_cache:
134126
key: << pipeline.parameters.cache_version >>-<< pipeline.parameters.project_name >>-<< pipeline.parameters.python_version >>-{{ checksum "poetry.lock" }}
135127
- gh/setup
@@ -154,7 +146,7 @@ workflows:
154146
context: << pipeline.parameters.project_name >>
155147
matrix:
156148
parameters:
157-
python_version: [ "3.7", "3.8", "3.9", "3.10" ]
149+
python_version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
158150
- build:
159151
name: Build
160152
requires:

.pylintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ confidence=
5656
# --disable=W"
5757
disable=missing-docstring,
5858
missing-type-doc,
59-
missing-returns-doc,
6059
missing-return-type-doc,
6160
missing-yield-doc,
6261
missing-yield-type-doc,
6362
logging-fstring-interpolation,
64-
raising-string,
6563

6664
# Enable the message, report, category or checker with the given id(s). You can
6765
# either give multiple identifier separated by comma (,) or put this option

CHANGELOG.md

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,103 +5,126 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66
Types of changes are:
77

8-
* **Added** for new features.
9-
* **Changed** for changes in existing functionality.
10-
* **Deprecated** for soon-to-be removed features.
11-
* **Removed** for now removed features.
12-
* **Fixed** for any bug fixes.
13-
* **Security** in case of vulnerabilities.
8+
- **Breaking changes** for breaking changes.
9+
- **Features** for new features or changes in existing functionality.
10+
- **Fixes** for any bug fixes.
11+
- **Deprecated** for soon-to-be removed features.
1412

1513
## [Unreleased]
1614

15+
## [5.0.0] - 2022-12-30
16+
17+
### Breaking changes
18+
19+
- Removed `version_check.check_python_support()`. Python version support should be done by package manager instead.
20+
- Removed unused constants from `constants`: `__version__`, `APPLICATION_NAME`, `MIN_SUPPORTED_PYTHON_VERSION_INCLUSIVE` and `MAX_SUPPORTED_PYTHON_VERSION_EXCLUSIVE`
21+
22+
### Features
23+
24+
- Added support for Python 3.11
25+
- Added default timeout of 30s to all `requests` calls to prevent undesirably long waiting for responses.
26+
27+
### Fixes
28+
29+
- Dependencies update
30+
1731
## [4.0.2] - 2022-07-06
1832

19-
### Fixed
33+
### Fixes
2034

2135
- Dependencies update
2236

2337
## [4.0.1] - 2022-02-08
2438

25-
### Fixed
39+
### Fixes
2640

2741
- Wrong Python requirement clause in pyproject.toml causing the library not being available for Python 3.10.
2842
- Dependencies update.
2943

3044
## [4.0.0] - 2021-12-01
3145

32-
### Added
46+
### Features
3347

3448
- Support for Python 3.9 and 3.10
3549

36-
### Changed
37-
38-
- **Breaking:** `github.GitHubIssueState` states `open` and `closed` to `OPEN` and `CLOSED`.
39-
- **Breaking:** Top level import renamed from `issuewatcher` to `issue_watcher` to match the package name.
50+
### Breaking changes
4051

41-
### Removed
52+
- `github.GitHubIssueState` states `open` and `closed` to `OPEN` and `CLOSED`.
53+
- Top level import renamed from `issuewatcher` to `issue_watcher` to match the package name.
54+
- Removed support for Python 3.6
4255

43-
- **Breaking:** Support for Python 3.6
44-
45-
### Fixed
56+
### Fixes
4657

4758
- Update dependencies.
4859
- Missing explicit encoding in `open`.
4960

5061
## [3.0.0] - 2021-01-04
5162

52-
### Changed
63+
### Breaking changes
64+
5365
- `AssertGitHubIssue.fixed_in()` will fail with `AssertionError` when list of versions from GitHub doesn't return any valid semantic versions.
5466

55-
### Fixed
67+
### Fixes
68+
5669
- DeprecationError about soon to be removed `LegacyVersion` from `packaging`
5770

5871
## [2.3.0] - 2020-06-04
5972

60-
### Added
73+
### Features
74+
6175
- Option to check release numbers with `AssertGitHubIssue.fixed_in()`.
6276

6377
## [2.2.4] - 2020-05-06
6478

65-
### Fixed
79+
### Fixes
80+
6681
- Deprecation in the `semver` library.
6782

6883
## [2.2.3] - 2020-03-25
6984

70-
### Fixed
85+
### Fixes
86+
7187
- Fixed version of pylint until testing script is compatible with 2.5.0+
7288

7389
## [2.2.2] - 2020-03-25
7490

75-
### Fixed
91+
### Fixes
92+
7693
- Annotated package as typed according to [PEP 561](https://www.python.org/dev/peps/pep-0561/).
7794

7895
## [2.2.1] - 2019-11-08
7996

80-
### Changed
81-
- Verified support for Python 3.8 which required couple of constants to be changed.
97+
### Features
98+
99+
- Verified support for Python 3.8 which required a couple of constants to be changed.
82100

83101
## [2.2.0] - 2019-10-20
84102

85-
### Added
103+
### Features
104+
86105
- Python version check to warn/fail for unsupported Python versions.
87106

88107
## [2.1.1] - 2019-10-19
89108

90-
### Fixed
109+
### Fixes
110+
91111
- New mypy issue with bytes strings in format function.
92112

93113
## [2.1.0] - 2019-10-06
94114

95-
### Added
115+
### Features
116+
96117
- `AssertGitHubIssue.current_release()` shows current number of releases in failing test when no number given.
97118

98119
## [2.0.0] - 2019-10-06
99120

100-
### Added
121+
### Features
122+
101123
- Compatibility with pytest
102124
- Repository ID supplied through constructor as a single string
103125

104-
### Changed
126+
### Breaking changes
127+
105128
- Tests rewritten from unittest to pytest
106129
- GitHub issue class and assertions drop duplicate or unnecessary information for their name:
107130
- `GitHubIssueTestCase` -> `AssertGitHubIssue`
@@ -110,35 +133,38 @@ Types of changes are:
110133
- `assert_github_issue_is_closed` -> `is_closed`
111134
- `assert_no_new_release_is_available` -> `current_release`
112135
- Method parameter `issue_number` renamed to `issue_id` in `is_state()`, `is_open()` and `is_closed()`.
113-
114-
### Removed
115-
- Sub-classing of `unittest.TestCase`
116-
- Setting repository ID through class attributes
136+
- Removed sub-classing of `unittest.TestCase`
137+
- Removes setting repository ID through class attributes
117138

118139
## [1.2.0] - 2019-08-14
119140

120-
### Added
141+
### Features
142+
121143
- Caching functionality to speed up tests involving network calls and prevent API quota depletion.
122144
- `CACHE_INVALIDATION_IN_SECONDS` [environment variables](README.md#environment-variables) for changing default cache invalidation period or disabling cache completely.
123145

124146
## [1.1.1] - 2019-08-08
125147

126-
### Fixed
148+
### Fixes
149+
127150
- Drops Python 3.5 from classifiers as it was never supported.
128151

129152
## [1.1.0] - 2019-08-05
130153

131-
### Added
154+
### Features
155+
132156
- `GITHUB_USER_NAME` and `GITHUB_PERSONAL_ACCESS_TOKEN` [environment variables](README.md#environment-variables) to allow authentication with GitHub API and higher API rate limit (5000/API token/hour instead of the default 60/host/hour).
133157

134158
## [1.0.0] - 2019-08-04
135159

136-
### Added
160+
### Features
161+
137162
- Initial source code
138163
- Error handling printing out full message received.
139164
- Error handling of exceeded API rate limit, showing current quota and time until quota reset.
140165

141-
[Unreleased]: https://github.com/radeklat/issue-watcher/compare/4.0.2...HEAD
166+
[Unreleased]: https://github.com/radeklat/issue-watcher/compare/5.0.0...HEAD
167+
[5.0.0]: https://github.com/radeklat/issue-watcher/compare/releases/4.0.2...5.0.0
142168
[4.0.2]: https://github.com/radeklat/issue-watcher/compare/releases/4.0.1...4.0.2
143169
[4.0.1]: https://github.com/radeklat/issue-watcher/compare/releases/4.0.0...4.0.1
144170
[4.0.0]: https://github.com/radeklat/issue-watcher/compare/releases/3.0.0...4.0.0

0 commit comments

Comments
 (0)