makeprop 0.0.0.dev0__tar.gz → 0.0.1.dev0__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.
@@ -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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: makeprop
3
- Version: 0.0.0.dev0
3
+ Version: 0.0.1.dev0
4
4
  Summary: makeprop
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -23,12 +23,11 @@ License: The MIT License (MIT)
23
23
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
24
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
-
26
+ SOFTWARE.
28
27
  Project-URL: Documentation, https://pypi.org/project/makeprop
29
28
  Project-URL: Download, https://pypi.org/project/makeprop/#files
30
29
  Project-URL: Source, https://github.com/johannes-programming/makeprop
31
- Classifier: Development Status :: 1 - Planning
30
+ Classifier: Development Status :: 2 - Pre-Alpha
32
31
  Classifier: License :: OSI Approved :: MIT License
33
32
  Classifier: Programming Language :: Python
34
33
  Classifier: Programming Language :: Python :: 3
@@ -9,7 +9,7 @@ authors = [
9
9
  { email = "johannes-programming@mailfence.com", name = "Johannes" },
10
10
  ]
11
11
  classifiers = [
12
- "Development Status :: 1 - Planning",
12
+ "Development Status :: 2 - Pre-Alpha",
13
13
  "License :: OSI Approved :: MIT License",
14
14
  "Programming Language :: Python",
15
15
  "Programming Language :: Python :: 3",
@@ -21,7 +21,7 @@ keywords = []
21
21
  name = "makeprop"
22
22
  readme = "README.rst"
23
23
  requires-python = ">=3.12.5"
24
- version = "0.0.0.dev0"
24
+ version = "0.0.1.dev0"
25
25
 
26
26
  [project.license]
27
27
  file = "LICENSE.txt"
@@ -0,0 +1,2 @@
1
+ from makeprop.core import *
2
+ from makeprop.tests import *
@@ -0,0 +1,24 @@
1
+ import dataclasses
2
+ from typing import *
3
+
4
+ __all__ = ["makeprop"]
5
+
6
+
7
+ @dataclasses.dataclass
8
+ class makeprop:
9
+ var: Optional[str] = None
10
+
11
+ def __call__(self, func):
12
+ if self.var is None:
13
+ var = "_" + func.__name__
14
+ else:
15
+ var = self.var
16
+
17
+ def fget(_self):
18
+ return getattr(_self, var)
19
+
20
+ def fset(_self, value):
21
+ setattr(_self, var, func(_self, value))
22
+
23
+ ans = property(fget=fget, fset=fset, doc=func.__doc__)
24
+ return ans
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: makeprop
3
- Version: 0.0.0.dev0
3
+ Version: 0.0.1.dev0
4
4
  Summary: makeprop
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -23,12 +23,11 @@ License: The MIT License (MIT)
23
23
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
24
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
-
26
+ SOFTWARE.
28
27
  Project-URL: Documentation, https://pypi.org/project/makeprop
29
28
  Project-URL: Download, https://pypi.org/project/makeprop/#files
30
29
  Project-URL: Source, https://github.com/johannes-programming/makeprop
31
- Classifier: Development Status :: 1 - Planning
30
+ Classifier: Development Status :: 2 - Pre-Alpha
32
31
  Classifier: License :: OSI Approved :: MIT License
33
32
  Classifier: Programming Language :: Python
34
33
  Classifier: Programming Language :: Python :: 3
@@ -4,10 +4,10 @@ README.rst
4
4
  pyproject.toml
5
5
  setup.cfg
6
6
  src/makeprop/__init__.py
7
- src/makeprop/__main__.py
8
7
  src/makeprop.egg-info/PKG-INFO
9
8
  src/makeprop.egg-info/SOURCES.txt
10
9
  src/makeprop.egg-info/dependency_links.txt
11
10
  src/makeprop.egg-info/top_level.txt
11
+ src/makeprop/core/__init__.py
12
12
  src/makeprop/tests/__init__.py
13
13
  src/makeprop/tests/test_1984.py
@@ -1,6 +0,0 @@
1
- def main(args=None):
2
- print("Hello World!")
3
-
4
-
5
- if __name__ == "__main__":
6
- main()
@@ -1,4 +0,0 @@
1
- from makeprop import main
2
-
3
- if __name__ == "__main__":
4
- main()
File without changes
File without changes
File without changes