Skip to content

Commit 9e4f843

Browse files
Merge pull request #440 from pyupio/develop
2.3.4 Patch
2 parents 78e2525 + 68049bb commit 9e4f843

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
The format is partly based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [PEP 440](https://peps.python.org/pep-0440/)
77

8+
## [Unreleased] 2.3.4.dev
9+
810
## [2.3.3] - 2022-11-27
911
- Fixed recursive requirements issue when an unpinned package is found.
1012

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ For detailed documentation, please see [Safety's documentation portal](https://d
5050
# Basic Usage
5151

5252
To check your currently selected virtual environment for dependencies with known security
53-
vulnerabilites, run:
53+
vulnerabilities, run:
5454

5555
```bash
5656
safety check
@@ -142,15 +142,15 @@ Run `safety check` again:
142142
## Starter documentation
143143

144144
### Configuring the target of the scan
145-
Safety can scan requirements.txt files, the local environemnt as well as direct input piped into Safety.
145+
Safety can scan requirements.txt files, the local environment as well as direct input piped into Safety.
146146

147147
To scan a requirements file:
148148

149149
```bash
150150
safety check -r requirements.txt
151151
```
152152

153-
To scan the local enviroment:
153+
To scan the local environment:
154154

155155
```bash
156156
safety check
@@ -547,7 +547,7 @@ safety license --key=12345-ABCDEFGH
547547

548548
### `--output json` (Optional)
549549

550-
This license command can also be used in conjuction with optional arguments `--output bare` and `--output json` for structured, parsable outputs that can be fed into other tools and pipelines.
550+
This license command can also be used in conjunction with optional arguments `--output bare` and `--output json` for structured, parsable outputs that can be fed into other tools and pipelines.
551551

552552
___
553553

safety/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.3
1+
2.3.4.dev

safety/safety.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import requests
1212
from packaging.specifiers import SpecifierSet
1313
from packaging.utils import canonicalize_name
14-
from packaging.version import parse as parse_version, Version, LegacyVersion, parse
14+
from packaging.version import parse as parse_version
1515

1616
from .constants import (API_MIRRORS, CACHE_FILE, OPEN_MIRRORS, REQUEST_TIMEOUT, API_BASE_URL)
1717
from .errors import (DatabaseFetchError, DatabaseFileNotFoundError,
@@ -458,7 +458,7 @@ def review(report=None, params=None):
458458
major = None
459459
if recommended:
460460
secure_v.append(recommended)
461-
major = parse(recommended)
461+
major = parse_version(recommended)
462462

463463
remediations[key] = {'vulns_found': value.get('vulnerabilities_found', 0),
464464
'version': value.get('current_version'),

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers =
2727
Programming Language :: Python :: 3.8
2828
Programming Language :: Python :: 3.9
2929
Programming Language :: Python :: 3.10
30+
Programming Language :: Python :: 3.11
3031

3132
[options]
3233
zip_safe = False

0 commit comments

Comments
 (0)