Skip to content

Commit 859209d

Browse files
authored
Bugfix/fix licence (#2)
* Fix mistake on license * Added get_version functionality to return current package version
1 parent 709127a commit 859209d

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Tested on:
1515

1616
## Documentation
1717

18-
Latest version is 1.0.2
18+
Latest version is 1.0.3
1919

2020
## Installation
2121

@@ -72,4 +72,8 @@ Right now it will open anyfile in text mode (even binary).
7272

7373
- Support more file type modes
7474
- Support more checksum algorithms
75-
- Support for big files
75+
- Support for big files
76+
77+
## License
78+
79+
GPL-3.0 see [license content](https://github.com/ddalu5/pyntegrity/blob/main/LICENSE)

pyntegrity/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .config import VERSION
2+
3+
4+
def get_version():
5+
return VERSION

pyntegrity/config.py

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@
3030
"md5": {"REX": MD5_REX, "LENGTH": MD5_LENGTH},
3131
"sha512": {"REX": SHA512_REX, "LENGTH": SHA512_LENGTH},
3232
}
33+
34+
VERSION = "1.0.3"

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
from pyntegrity import get_version
12
from setuptools import setup, find_packages
23

34
with open("README.md", "r") as fh:
45
long_description = fh.read()
56

67
setup(
78
name="pyntegrity",
8-
version="1.0.2",
9+
version=get_version(),
910
description="Pyntegrity is a Python package that helps you check a file integrity.",
1011
long_description=long_description,
1112
long_description_content_type="text/markdown",
1213
url="https://github.com/ddalu5/pyntegrity",
1314
author="Salah OSFOR",
1415
author_email="[email protected]",
15-
license="GNU V3",
16+
license="GPL-3.0",
1617
packages=find_packages(include=["pyntegrity"]),
1718
test_suite="tests",
1819
tests_require=["unittest", "black", "pytest", "coverage"],

0 commit comments

Comments
 (0)