Skip to content

Commit

Permalink
Corrected requirements for installation and bumped version to v1.1.1.
Browse files Browse the repository at this point in the history
The requirements.txt file had too many requirements. Only pytest is needed, and only for running the test suite.
The PyPI setup.py file didn't have any requirements listed, so installation from PyPI was incomplete.
These issues have now been rectified.
  • Loading branch information
AlexHenderson committed Mar 7, 2022
1 parent 6c860b1 commit 71a59e2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ authors:
affiliation: University of Manchester, UK
email: [email protected]
website: https://alexhenderson.info
version: v1.1.0
date-released: "2022-03-05"
version: v1.1.1
date-released: "2022-03-07"
license: MIT
license-url: https://spdx.org/licenses/MIT#licenseText
repository: "https://github.com/AlexHenderson/hasher"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ output

### Installation ###

pip install hasher-AlexHenderson==1.1.0
pip install hasher-AlexHenderson==1.1.1


## Usage rights ##
Copyright (c) 2022 Alex Henderson ([email protected])
Licensed under the MIT License. See https://opensource.org/licenses/MIT
SPDX-License-Identifier: MIT
Version 1.1.0
Version 1.1.1
See https://github.com/AlexHenderson/hasher for the most recent version
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pytest~=7.0.1
setuptools~=60.9.3
pytest >= 7.0.1
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="hasher-AlexHenderson",
version="1.1.0",
version="1.1.1",
author="Alex Henderson",
author_email="[email protected]",
description="Python package to generate a stable hash value for either a single file, or a folder containing many "
Expand All @@ -28,4 +28,7 @@
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.7",
install_requires=[
'pytest >= 7.0.1'
],
)
6 changes: 3 additions & 3 deletions src/hasher/hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2022 Alex Henderson ([email protected])
# Licensed under the MIT License. See https://opensource.org/licenses/MIT
# SPDX-License-Identifier: MIT
# Version 1.1.0
# Version 1.1.1
# See https://github.com/AlexHenderson/hasher for the most recent version

import hashlib
Expand Down Expand Up @@ -61,13 +61,13 @@ class Hasher:
Copyright (c) 2022 Alex Henderson ([email protected])
Licensed under the MIT License. See https://opensource.org/licenses/MIT
SPDX-License-Identifier: MIT
Version 1.1.0
Version 1.1.1
See https://github.com/AlexHenderson/hasher for the most recent version
"""

# Define the version of this code
_version = "1.1.0"
_version = "1.1.1"

# Define the default type of hash as 'sha256'
_default_hash_type = 'sha256'
Expand Down

0 comments on commit 71a59e2

Please sign in to comment.