identityfunction 1.0.5__tar.gz → 1.1.4.post0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/LICENSE.txt +1 -1
  2. identityfunction-1.1.4.post0/MANIFEST.in +2 -0
  3. identityfunction-1.1.4.post0/PKG-INFO +32 -0
  4. identityfunction-1.1.4.post0/README.rst +7 -0
  5. identityfunction-1.1.4.post0/docs/v1.0.rst +64 -0
  6. identityfunction-1.1.4.post0/docs/v1.1.rst +69 -0
  7. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/pyproject.toml +14 -7
  8. identityfunction-1.1.4.post0/src/identityfunction/__init__.py +6 -0
  9. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction/core/__init__.py +4 -2
  10. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction/tests/__init__.py +4 -2
  11. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction/tests/test_0.py +1 -1
  12. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction/tests/test_1984.py +2 -1
  13. identityfunction-1.1.4.post0/src/identityfunction.egg-info/PKG-INFO +32 -0
  14. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction.egg-info/SOURCES.txt +3 -0
  15. identityfunction-1.1.4.post0/src/identityfunction.egg-info/requires.txt +2 -0
  16. identityfunction-1.0.5/PKG-INFO +0 -51
  17. identityfunction-1.0.5/README.rst +0 -5
  18. identityfunction-1.0.5/src/identityfunction/__init__.py +0 -5
  19. identityfunction-1.0.5/src/identityfunction.egg-info/PKG-INFO +0 -51
  20. identityfunction-1.0.5/src/identityfunction.egg-info/requires.txt +0 -2
  21. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/setup.cfg +0 -0
  22. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction/__main__.py +0 -0
  23. /identityfunction-1.0.5/MANIFEST.in → /identityfunction-1.1.4.post0/src/identityfunction/py.typed +0 -0
  24. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction.egg-info/dependency_links.txt +0 -0
  25. {identityfunction-1.0.5 → identityfunction-1.1.4.post0}/src/identityfunction.egg-info/top_level.txt +0 -0
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ recursive-include docs *.rst
2
+ recursive-include src/identityfunction *.toml
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: identityfunction
3
+ Version: 1.1.4.post0
4
+ Summary: This project provides the identity function.
5
+ Author-email: Johannes <johannes.programming@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Download, https://pypi.org/project/identityfunction/#files
8
+ Project-URL: Index, https://pypi.org/project/identityfunction/
9
+ Project-URL: Source, https://github.com/johannes-programming/identityfunction/
10
+ Project-URL: Website, https://identityfunction.johannes-programming.online/
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Natural Language :: English
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/x-rst
21
+ License-File: LICENSE.txt
22
+ Requires-Dist: click<9,>=8.2
23
+ Requires-Dist: preparse<2,>=1.1
24
+ Dynamic: license-file
25
+
26
+ ================
27
+ identityfunction
28
+ ================
29
+
30
+ Each minor version has its own documentation.
31
+ These docs can be found as rst-files in the ``docs/`` directory of this project.
32
+ They can also be viewed on the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_.
@@ -0,0 +1,7 @@
1
+ ================
2
+ identityfunction
3
+ ================
4
+
5
+ Each minor version has its own documentation.
6
+ These docs can be found as rst-files in the ``docs/`` directory of this project.
7
+ They can also be viewed on the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_.
@@ -0,0 +1,64 @@
1
+ Introduction
2
+ ------------
3
+
4
+ This project provides the ``identityfunction``.
5
+
6
+ .. container:: warning
7
+
8
+ **Warning:** The minor version ``1.0`` of ``identityfunction`` has reached end-of-life.
9
+
10
+ Installation
11
+ ------------
12
+
13
+ To install ``identityfunction``, you can use ``pip``.
14
+ Open your terminal and run:
15
+
16
+ .. code-block:: shell
17
+
18
+ pip install identityfunction
19
+
20
+ Features
21
+ --------
22
+
23
+ ``identityfunction.identityfunction(value: Any, /) -> Any``
24
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25
+
26
+ This function returns the ``value`` given to it.
27
+
28
+ ``identityfunction.main``
29
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
30
+
31
+ This ``click`` command implements a CLI for the ``identityfunction``.
32
+
33
+ ``identityfunction.tests.test() -> unittest.TextTestResult``
34
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
+
36
+ This project can be tested through its ``test`` function.
37
+
38
+ .. code-block:: shell
39
+
40
+ import identityfunction.tests
41
+ identityfunction.tests.test()
42
+
43
+ License
44
+ -------
45
+
46
+ This project is licensed under the MIT License.
47
+
48
+ Links
49
+ -----
50
+
51
+ - Download: https://pypi.org/project/identityfunction/#files
52
+ - Index: https://pypi.org/project/identityfunction/
53
+ - Source: https://github.com/johannes-programming/identityfunction/
54
+ - Website: https://identityfunction.johannes-programming.online/
55
+
56
+ Impressum
57
+ ---------
58
+
59
+ **Johannes Programming**
60
+
61
+ - Name: Johannes
62
+ - Email: johannes.programming@gmail.com
63
+ - Homepage: https://www.johannes-programming.online/
64
+ - Gravatar: https://www.johannes-programming.fyi/
@@ -0,0 +1,69 @@
1
+ Introduction
2
+ ------------
3
+
4
+ This project provides the ``identityfunction``.
5
+
6
+ Installation
7
+ ------------
8
+
9
+ To install ``identityfunction``, you can use ``pip``.
10
+ Open your terminal and run:
11
+
12
+ .. code-block:: shell
13
+
14
+ pip install identityfunction
15
+
16
+ Typing
17
+ ------
18
+
19
+ This project is strictly typed with ``mypy``.
20
+
21
+ .. container:: versionadded
22
+
23
+ **Added in version 1.1.**
24
+
25
+ Features
26
+ --------
27
+
28
+ ``identityfunction.identityfunction[Value](value: Value, /) -> Value``
29
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
+
31
+ This function returns the value given to it.
32
+
33
+ ``identityfunction.main``
34
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
35
+
36
+ This click command implements a CLI for the identityfunction.
37
+
38
+ ``identityfunction.tests.test() -> unittest.TextTestResult``
39
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40
+
41
+ This project can be tested through its test function.
42
+
43
+ .. code-block:: shell
44
+
45
+ import identityfunction.tests
46
+ identityfunction.tests.test()
47
+
48
+ License
49
+ -------
50
+
51
+ This project is licensed under the MIT License.
52
+
53
+ Links
54
+ -----
55
+
56
+ - Download: https://pypi.org/project/identityfunction/#files
57
+ - Index: https://pypi.org/project/identityfunction/
58
+ - Source: https://github.com/johannes-programming/identityfunction/
59
+ - Website: https://identityfunction.johannes-programming.online/
60
+
61
+ Impressum
62
+ ---------
63
+
64
+ **Johannes Programming**
65
+
66
+ - Name: Johannes
67
+ - Email: johannes.programming@gmail.com
68
+ - Homepage: https://www.johannes-programming.online/
69
+ - Gravatar: https://www.johannes-programming.fyi/
@@ -1,7 +1,7 @@
1
1
  [build-system]
2
2
  build-backend = "setuptools.build_meta"
3
3
  requires = [
4
- "setuptools>=64.0",
4
+ "setuptools>=77.0",
5
5
  ]
6
6
 
7
7
  [project]
@@ -11,7 +11,6 @@ authors = [
11
11
  classifiers = [
12
12
  "Development Status :: 5 - Production/Stable",
13
13
  "Intended Audience :: Developers",
14
- "License :: OSI Approved :: MIT License",
15
14
  "Natural Language :: English",
16
15
  "Operating System :: OS Independent",
17
16
  "Programming Language :: Python",
@@ -21,20 +20,28 @@ classifiers = [
21
20
  ]
22
21
  dependencies = [
23
22
  "click>=8.2,<9",
24
- "preparse>=0.1.6,<2",
23
+ "preparse>=1.1,<2",
25
24
  ]
26
25
  description = "This project provides the identity function."
27
26
  keywords = []
27
+ license = "MIT"
28
+ license-files = [
29
+ "LICENSE.txt",
30
+ ]
28
31
  name = "identityfunction"
29
32
  readme = "README.rst"
30
33
  requires-python = ">=3.11"
31
- version = "1.0.5"
32
-
33
- [project.license]
34
- file = "LICENSE.txt"
34
+ version = "1.1.4.post0"
35
35
 
36
36
  [project.urls]
37
37
  Download = "https://pypi.org/project/identityfunction/#files"
38
38
  Index = "https://pypi.org/project/identityfunction/"
39
39
  Source = "https://github.com/johannes-programming/identityfunction/"
40
40
  Website = "https://identityfunction.johannes-programming.online/"
41
+
42
+ [tool.mypy]
43
+ files = [
44
+ ".",
45
+ ]
46
+ python_version = "3.11"
47
+ strict = true
@@ -0,0 +1,6 @@
1
+ from identityfunction.core import identityfunction, main
2
+
3
+ __all__ = ["main", "identityfunction"]
4
+
5
+ if __name__ == "__main__":
6
+ main()
@@ -1,12 +1,14 @@
1
- from typing import *
1
+ from typing import TypeVar
2
2
 
3
3
  import click
4
4
  import preparse
5
5
 
6
6
  __all__ = ["identityfunction", "main"]
7
7
 
8
+ Value = TypeVar("Value")
8
9
 
9
- def identityfunction(value: Any, /) -> Any:
10
+
11
+ def identityfunction(value: Value, /) -> Value:
10
12
  "This function returns the value given to it."
11
13
  return value
12
14
 
@@ -3,10 +3,12 @@ import unittest
3
3
  __all__ = ["test"]
4
4
 
5
5
 
6
- def test() -> unittest.TextTestRunner:
6
+ def test() -> unittest.TextTestResult:
7
7
  "This function runs all the tests."
8
8
  loader: unittest.TestLoader = unittest.TestLoader()
9
- tests: unittest.TestSuite = loader.discover(start_dir="identityfunction.tests")
9
+ tests: unittest.TestSuite = loader.discover(
10
+ start_dir="identityfunction.tests"
11
+ )
10
12
  runner: unittest.TextTestRunner = unittest.TextTestRunner()
11
13
  result: unittest.TextTestResult = runner.run(tests)
12
14
  return result
@@ -1,5 +1,5 @@
1
1
  import unittest
2
- from typing import *
2
+ from typing import Self
3
3
 
4
4
  from identityfunction.core import identityfunction
5
5
 
@@ -1,8 +1,9 @@
1
1
  import unittest
2
+ from typing import Self
2
3
 
3
4
 
4
5
  class Test1984(unittest.TestCase):
5
- def test_1984(self):
6
+ def test_1984(self: Self) -> None:
6
7
  self.assertEqual(2 + 2, 4, "Ignorance is Strength")
7
8
 
8
9
 
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: identityfunction
3
+ Version: 1.1.4.post0
4
+ Summary: This project provides the identity function.
5
+ Author-email: Johannes <johannes.programming@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Download, https://pypi.org/project/identityfunction/#files
8
+ Project-URL: Index, https://pypi.org/project/identityfunction/
9
+ Project-URL: Source, https://github.com/johannes-programming/identityfunction/
10
+ Project-URL: Website, https://identityfunction.johannes-programming.online/
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Natural Language :: English
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/x-rst
21
+ License-File: LICENSE.txt
22
+ Requires-Dist: click<9,>=8.2
23
+ Requires-Dist: preparse<2,>=1.1
24
+ Dynamic: license-file
25
+
26
+ ================
27
+ identityfunction
28
+ ================
29
+
30
+ Each minor version has its own documentation.
31
+ These docs can be found as rst-files in the ``docs/`` directory of this project.
32
+ They can also be viewed on the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_.
@@ -3,8 +3,11 @@ MANIFEST.in
3
3
  README.rst
4
4
  pyproject.toml
5
5
  setup.cfg
6
+ docs/v1.0.rst
7
+ docs/v1.1.rst
6
8
  src/identityfunction/__init__.py
7
9
  src/identityfunction/__main__.py
10
+ src/identityfunction/py.typed
8
11
  src/identityfunction.egg-info/PKG-INFO
9
12
  src/identityfunction.egg-info/SOURCES.txt
10
13
  src/identityfunction.egg-info/dependency_links.txt
@@ -0,0 +1,2 @@
1
+ click<9,>=8.2
2
+ preparse<2,>=1.1
@@ -1,51 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: identityfunction
3
- Version: 1.0.5
4
- Summary: This project provides the identity function.
5
- Author-email: Johannes <johannes.programming@gmail.com>
6
- License: The MIT License (MIT)
7
-
8
- Copyright (c) 2025 Johannes
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
- Project-URL: Download, https://pypi.org/project/identityfunction/#files
28
- Project-URL: Index, https://pypi.org/project/identityfunction/
29
- Project-URL: Source, https://github.com/johannes-programming/identityfunction/
30
- Project-URL: Website, https://identityfunction.johannes-programming.online/
31
- Classifier: Development Status :: 5 - Production/Stable
32
- Classifier: Intended Audience :: Developers
33
- Classifier: License :: OSI Approved :: MIT License
34
- Classifier: Natural Language :: English
35
- Classifier: Operating System :: OS Independent
36
- Classifier: Programming Language :: Python
37
- Classifier: Programming Language :: Python :: 3
38
- Classifier: Programming Language :: Python :: 3 :: Only
39
- Classifier: Typing :: Typed
40
- Requires-Python: >=3.11
41
- Description-Content-Type: text/x-rst
42
- License-File: LICENSE.txt
43
- Requires-Dist: click<9,>=8.2
44
- Requires-Dist: preparse<2,>=0.1.6
45
- Dynamic: license-file
46
-
47
- ================
48
- identityfunction
49
- ================
50
-
51
- Visit the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_ for more information.
@@ -1,5 +0,0 @@
1
- ================
2
- identityfunction
3
- ================
4
-
5
- Visit the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_ for more information.
@@ -1,5 +0,0 @@
1
- from identityfunction.core import *
2
- from identityfunction.tests import *
3
-
4
- if __name__ == "__main__":
5
- main()
@@ -1,51 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: identityfunction
3
- Version: 1.0.5
4
- Summary: This project provides the identity function.
5
- Author-email: Johannes <johannes.programming@gmail.com>
6
- License: The MIT License (MIT)
7
-
8
- Copyright (c) 2025 Johannes
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
- Project-URL: Download, https://pypi.org/project/identityfunction/#files
28
- Project-URL: Index, https://pypi.org/project/identityfunction/
29
- Project-URL: Source, https://github.com/johannes-programming/identityfunction/
30
- Project-URL: Website, https://identityfunction.johannes-programming.online/
31
- Classifier: Development Status :: 5 - Production/Stable
32
- Classifier: Intended Audience :: Developers
33
- Classifier: License :: OSI Approved :: MIT License
34
- Classifier: Natural Language :: English
35
- Classifier: Operating System :: OS Independent
36
- Classifier: Programming Language :: Python
37
- Classifier: Programming Language :: Python :: 3
38
- Classifier: Programming Language :: Python :: 3 :: Only
39
- Classifier: Typing :: Typed
40
- Requires-Python: >=3.11
41
- Description-Content-Type: text/x-rst
42
- License-File: LICENSE.txt
43
- Requires-Dist: click<9,>=8.2
44
- Requires-Dist: preparse<2,>=0.1.6
45
- Dynamic: license-file
46
-
47
- ================
48
- identityfunction
49
- ================
50
-
51
- Visit the website `https://identityfunction.johannes-programming.online/ <https://identityfunction.johannes-programming.online/>`_ for more information.
@@ -1,2 +0,0 @@
1
- click<9,>=8.2
2
- preparse<2,>=0.1.6