Skip to content

Commit b8e5aee

Browse files
committed
Fix spelling mistakes via codespell
Thanks to [codespell](https://github.com/codespell-project/codespell) Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
1 parent 384d70e commit b8e5aee

13 files changed

Lines changed: 21 additions & 21 deletions

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ univers: mostly universal version and version ranges comparison and conversion
1010
:target: https://www.python.org/downloads/release/python-380/
1111

1212

13-
**univers** was born out of the need for a mostly univeral way to store version
13+
**univers** was born out of the need for a mostly universal way to store version
1414
ranges and to compare two software package versions in VulnerableCode.
1515

1616
Package version ranges and version constraints are useful and essential:
@@ -36,7 +36,7 @@ ecosystem.
3636

3737
**univers** is different:
3838

39-
- It tracks each ecosystem versionning scheme and how two versions are compared.
39+
- It tracks each ecosystem versioning scheme and how two versions are compared.
4040

4141
- It support a growing number of package ecosystems versioning in a single
4242
library.
@@ -52,7 +52,7 @@ How does **univers** work ?
5252
============================
5353

5454
**univers** wraps, embeds and implements multiple version comparison libraries,
55-
each focused on a specific ecosystem versionning scheme.
55+
each focused on a specific ecosystem versioning scheme.
5656

5757
For each scheme, **univers** provides an implementation for:
5858

etc/scripts/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ See each command line --help option for details.
118118
* (TODO) **add_package.py** will add or update a Python package including wheels,
119119
sources and ABOUT files and this for multiple Python version and OSes(for use
120120
with upload_packages.py afterwards) You will need an Azure personal access
121-
token for buidling binaries and an optional DejaCode API key to post and fetch
121+
token for building binaries and an optional DejaCode API key to post and fetch
122122
new package versions there. TODO: explain how we use romp
123123

124124

etc/scripts/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def bootstrap(
8787
build_remotely=False,
8888
):
8989
"""
90-
Boostrap a thirdparty Python packages directory from pip requirements.
90+
Bootstrap a thirdparty Python packages directory from pip requirements.
9191
9292
Fetch or build to THIRDPARTY_DIR all the wheels and source distributions for
9393
the pip ``--requirement-file`` requirements FILE(s). Build wheels compatible

etc/scripts/publish_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def create_or_update_release_and_upload_directory(
131131

132132

133133
TOKEN_HELP = (
134-
"The Github personal acess token is used to authenticate API calls. "
134+
"The Github personal access token is used to authenticate API calls. "
135135
"Required unless you set the GITHUB_TOKEN environment variable as an alternative. "
136136
"See for details: https://github.com/settings/tokens and "
137137
"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token"

etc/scripts/utils_dejacode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def update_with_dejacode_data(distribution):
8787

8888
def update_with_dejacode_about_data(distribution):
8989
"""
90-
Update the Distribution `distribution` wiht ABOUT code data fetched from
90+
Update the Distribution `distribution` with ABOUT code data fetched from
9191
DejaCode. Return True if data was updated.
9292
"""
9393
package_data = get_package_data(distribution)

etc/scripts/utils_thirdparty.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def fetch_wheels(
175175
Download all of the wheel of packages listed in the ``requirements_file``
176176
requirements file into ``dest_dir`` directory.
177177
178-
Only get wheels for the ``environment`` Enviromnent constraints. If the
178+
Only get wheels for the ``environment`` Environment constraints. If the
179179
provided ``environment`` is None then the current Python interpreter
180180
environment is used implicitly.
181181
@@ -1464,7 +1464,7 @@ def fetch_wheel(
14641464
):
14651465
"""
14661466
Download a binary wheel of this package matching the ``environment``
1467-
Enviromnent constraints into ``dest_dir`` directory.
1467+
Environment constraints into ``dest_dir`` directory.
14681468
14691469
Return the wheel filename if it was fetched, None otherwise.
14701470
@@ -2895,7 +2895,7 @@ def check_romp_is_configured():
28952895
raise Exception(
28962896
"ROMP_BUILD_REQUEST_URL, ROMP_DEFINITION_ID, "
28972897
"ROMP_PERSONAL_ACCESS_TOKEN and ROMP_USERNAME "
2898-
"are required enironment variables."
2898+
"are required environment variables."
28992899
)
29002900

29012901

src/univers/debian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def compare_strings_key(x):
232232

233233
def compare_strings(version1, version2):
234234
"""
235-
Compare two version strings (upstream or revision) using Debain semantics
235+
Compare two version strings (upstream or revision) using Debian semantics
236236
and return one of the following integer numbers:
237237
- -1 means version1 sorts before version2
238238
- 0 means version1 and version2 are equal

src/univers/gem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Visit https://aboutcode.org and https://github.com/nexB/univers for support and download.
1010

1111
# notes: This has been substantially modified and enhanced from the original
12-
# puppeteer code to extract the Ruby version hanlding code.
12+
# puppeteer code to extract the Ruby version handling code.
1313
# This code is in turn originally based and updated from the Rubygems code
1414
# Originally from https://github.com/rubygems/rubygems and
1515
# https://github.com/coi-gov-pl/puppeter

src/univers/version_range.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@attr.s(frozen=True, order=False, eq=True, hash=True)
2121
class VersionRange:
2222
"""
23-
Base version range class. Subclasses must provide implememt.
23+
Base version range class. Subclasses must provide implement.
2424
A VersionRange represents a list of constraints on the versions "timeline"
2525
of a package.
2626
"""
@@ -67,7 +67,7 @@ def from_natives(cls, strings):
6767
def to_native(self, *args, **kwargs):
6868
"""
6969
Return a native range string for this VersionRange. Subclasses can
70-
implement. Opetional ``args`` and ``kwargs`` allow subclass to require
70+
implement. Optional ``args`` and ``kwargs`` allow subclass to require
7171
extra arguments (such as a package name that some scheme may require
7272
like for deb and rpm.)
7373
"""
@@ -803,7 +803,7 @@ def from_native(cls, string):
803803
vend = VersionConstraint(comparator="<", version=end_version)
804804
constraints.extend([vstart, vend])
805805
else:
806-
# mainline branch ranges are resolved to a singel constraint
806+
# mainline branch ranges are resolved to a single constraint
807807
version = semantic_version.Version.coerce(vs)
808808
constraint = VersionConstraint(comparator=">=", version=version)
809809
constraints.append(constraint)

src/univers/versions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Version classes encapsulating the details of each version syntax.
2323
For instance semver is a version syntax. Python and Debian use another syntax.
2424
25-
Each subclass primary responsability to is be comparable and orderable
25+
Each subclass primary responsibility to is be comparable and orderable
2626
"""
2727

2828
# TODO: Add mozilla versions https://github.com/mozilla-releng/mozilla-version
@@ -99,7 +99,7 @@ def build_value(self, string):
9999

100100
def satisfies(self, constraint):
101101
"""
102-
Return True is this Version satifies the ``constraint``
102+
Return True is this Version satisfies the ``constraint``
103103
VersionConstraint. Satisfying means that this version is "within" the
104104
``constraint``.
105105
"""
@@ -155,7 +155,7 @@ class PypiVersion(Version):
155155
PEP 440 as implemented in packaging with fallback to "legacy"
156156
"""
157157

158-
# TODO: ensure we deal with tripple equal
158+
# TODO: ensure we deal with triple equal
159159

160160
@classmethod
161161
def build_value(cls, string):

0 commit comments

Comments
 (0)