abc-library 0.1.0__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.
File without changes
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: abc-library
3
+ Version: 0.1.0
4
+ Summary: A simple Python library
5
+ Home-page: https://github.com/wsc33332f/abc
6
+ Author: Hikauiro
7
+ Author-email: Hikauiro <email@example.com>
8
+ Requires-Python: >=3.6
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: author
12
+ Dynamic: home-page
13
+ Dynamic: license-file
14
+ Dynamic: requires-python
15
+
16
+ # abc
17
+
18
+ A small Python library for basic arithmetic helpers.
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ python -m pip install -e .
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from abc_library import add, subtract
30
+
31
+ print(add(2, 3)) # 5
32
+ print(subtract(5, 2)) # 3
33
+ ```
34
+
35
+ ## Validation
36
+
37
+ ```bash
38
+ python -m pytest -q
39
+ ```
@@ -0,0 +1,24 @@
1
+ # abc
2
+
3
+ A small Python library for basic arithmetic helpers.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ python -m pip install -e .
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from abc_library import add, subtract
15
+
16
+ print(add(2, 3)) # 5
17
+ print(subtract(5, 2)) # 3
18
+ ```
19
+
20
+ ## Validation
21
+
22
+ ```bash
23
+ python -m pytest -q
24
+ ```
@@ -0,0 +1,6 @@
1
+ """Public package interface for abc_library."""
2
+
3
+ from .module1 import add
4
+ from .module2 import subtract
5
+
6
+ __all__ = ["add", "subtract"]
@@ -0,0 +1,9 @@
1
+ """Basic arithmetic helpers."""
2
+
3
+
4
+ def add(a, b):
5
+ """Return the sum of two numbers."""
6
+ return a + b
7
+
8
+
9
+ __all__ = ["add"]
@@ -0,0 +1,9 @@
1
+ """Additional arithmetic helpers."""
2
+
3
+
4
+ def subtract(a, b):
5
+ """Return the difference between two numbers."""
6
+ return a - b
7
+
8
+
9
+ __all__ = ["subtract"]
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: abc-library
3
+ Version: 0.1.0
4
+ Summary: A simple Python library
5
+ Home-page: https://github.com/wsc33332f/abc
6
+ Author: Hikauiro
7
+ Author-email: Hikauiro <email@example.com>
8
+ Requires-Python: >=3.6
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: author
12
+ Dynamic: home-page
13
+ Dynamic: license-file
14
+ Dynamic: requires-python
15
+
16
+ # abc
17
+
18
+ A small Python library for basic arithmetic helpers.
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ python -m pip install -e .
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from abc_library import add, subtract
30
+
31
+ print(add(2, 3)) # 5
32
+ print(subtract(5, 2)) # 3
33
+ ```
34
+
35
+ ## Validation
36
+
37
+ ```bash
38
+ python -m pytest -q
39
+ ```
@@ -0,0 +1,13 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ abc_library/__init__.py
6
+ abc_library/module1.py
7
+ abc_library/module2.py
8
+ abc_library.egg-info/PKG-INFO
9
+ abc_library.egg-info/SOURCES.txt
10
+ abc_library.egg-info/dependency_links.txt
11
+ abc_library.egg-info/top_level.txt
12
+ tests/test_module1.py
13
+ tests/test_module2.py
@@ -0,0 +1 @@
1
+ abc_library
@@ -0,0 +1,12 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "abc-library"
7
+ version = "0.1.0"
8
+ authors = [{name = "Hikauiro", email = "email@example.com"}]
9
+ description = "A simple Python library"
10
+ readme = "README.md"
11
+ requires-python = ">=3.6"
12
+ dependencies = []
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,24 @@
1
+ from pathlib import Path
2
+
3
+ from setuptools import find_packages, setup
4
+
5
+ README = Path(__file__).with_name("README.md").read_text(encoding="utf-8")
6
+
7
+ setup(
8
+ name="abc-library",
9
+ version="0.1.0",
10
+ packages=find_packages(),
11
+ install_requires=[],
12
+ author="Hikauiro",
13
+ author_email="email@example.com",
14
+ description="A simple Python library",
15
+ long_description=README,
16
+ long_description_content_type="text/markdown",
17
+ url="https://github.com/wsc33332f/abc",
18
+ classifiers=[
19
+ "Programming Language :: Python :: 3",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ ],
23
+ python_requires=">=3.6",
24
+ )
@@ -0,0 +1,8 @@
1
+ import unittest
2
+ from abc_library import add
3
+
4
+ class TestMathFunctions(unittest.TestCase):
5
+ def test_add(self):
6
+ self.assertEqual(add(2, 3), 5)
7
+ if __name__ == "__main__":
8
+ unittest.main()
@@ -0,0 +1,12 @@
1
+ import unittest
2
+
3
+ from abc_library import subtract
4
+
5
+
6
+ class TestMathFunctions(unittest.TestCase):
7
+ def test_subtract(self):
8
+ self.assertEqual(subtract(5, 2), 3)
9
+
10
+
11
+ if __name__ == "__main__":
12
+ unittest.main()