kececilayout 0.3.0__tar.gz → 0.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececilayout
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Çeşitli graf kütüphaneleri için sıralı-zigzag yerleşimleri sağlayan bir Python paketi.
5
5
  Home-page: https://github.com/WhiteSymmetry/kececilayout
6
6
  Author: Mehmet Keçeci
@@ -39,10 +39,10 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
39
39
  Requires-Python: >=3.10
40
40
  Description-Content-Type: text/markdown
41
41
  License-File: LICENSE
42
+ Requires-Dist: cairocffi
42
43
  Requires-Dist: networkx
43
44
  Requires-Dist: matplotlib
44
45
  Requires-Dist: numpy
45
- Requires-Dist: cairocffi
46
46
  Provides-Extra: test
47
47
  Requires-Dist: pytest; extra == "test"
48
48
  Requires-Dist: pytest-cov; extra == "test"
@@ -10,7 +10,7 @@ import inspect
10
10
  import warnings
11
11
 
12
12
  # Paket sürüm numarası
13
- __version__ = "0.2.9"
13
+ __version__ = "0.3.2"
14
14
 
15
15
  # =============================================================================
16
16
  # OTOMATİK İÇE AKTARMA VE __all__ OLUŞTURMA
@@ -19,10 +19,74 @@ __version__ = "0.2.9"
19
19
  # =============================================================================
20
20
 
21
21
  # Ana modülümüzü içe aktarıyoruz
22
- from . import kececi_layout
22
+ #from . import kececi_layout
23
+
24
+ from .kececi_layout import ( # Veya fonksiyonların bulunduğu asıl modül
25
+ kececi_layout,
26
+ draw_kececi,
27
+ _draw_internal, # Private fonksiyonu açıkça import edin
28
+ kececi_layout,
29
+ kececi_layout_v4,
30
+
31
+ # Library-specific layout functions
32
+ kececi_layout_nx,
33
+ kececi_layout_networkx,
34
+ kececi_layout_ig,
35
+ kececi_layout_igraph,
36
+ kececi_layout_nk,
37
+ kececi_layout_networkit,
38
+ kececi_layout_gg,
39
+ kececi_layout_graphillion,
40
+ kececi_layout_rx,
41
+ kececi_layout_rustworkx,
42
+ kececi_layout_pure,
43
+
44
+ # Drawing functions
45
+ draw_kececi,
46
+ #'_draw_internal', # <- TESTLER İÇİN GEREKLİ
47
+
48
+ # Utility functions
49
+ find_max_node_id,
50
+ to_networkx,
51
+
52
+ # Graph generation functions
53
+ generate_random_graph,
54
+ generate_random_graph_ig,
55
+ generate_random_rx_graph
56
+ )
23
57
 
24
58
  # __all__ listesini dinamik olarak dolduracağız
25
- __all__ = []
59
+ __all__ = [
60
+ # Core layout functions
61
+ 'kececi_layout',
62
+ 'kececi_layout_v4',
63
+
64
+ # Library-specific layout functions
65
+ 'kececi_layout_nx',
66
+ 'kececi_layout_networkx',
67
+ 'kececi_layout_ig',
68
+ 'kececi_layout_igraph',
69
+ 'kececi_layout_nk',
70
+ 'kececi_layout_networkit',
71
+ 'kececi_layout_gg',
72
+ 'kececi_layout_graphillion',
73
+ 'kececi_layout_rx',
74
+ 'kececi_layout_rustworkx',
75
+ 'kececi_layout_pure',
76
+
77
+ # Drawing functions
78
+ 'draw_kececi',
79
+ '_draw_internal', # <- TESTLER İÇİN GEREKLİ
80
+
81
+ # Utility functions
82
+ 'find_max_node_id',
83
+ 'to_networkx',
84
+
85
+ # Graph generation functions
86
+ 'generate_random_graph',
87
+ 'generate_random_graph_ig',
88
+ 'generate_random_rx_graph'
89
+ ]
26
90
 
27
91
  # kececi_layout modülünün içindeki tüm üyelere (fonksiyonlar, sınıflar vb.) bak
28
92
  for name, member in inspect.getmembers(kececi_layout):
@@ -60,3 +124,11 @@ def old_function_placeholder():
60
124
 
61
125
 
62
126
 
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
@@ -1,6 +1,6 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.3.0"
3
+ __version__ = "0.3.2"
4
4
  __license__ = "MIT"
5
5
  __description__ = "A deterministic node placement algorithm used in graph visualization. In this layout, nodes are arranged sequentially along a defined primary axis. Each subsequent node is then alternately offset along a secondary, perpendicular axis, typically moving to one side of the primary axis and then the other. Often, the magnitude of this secondary offset increases as nodes progress along the primary axis, creating a characteristic zig-zag or serpentine pattern."
6
6
  __author__ = "Mehmet Keçeci"
@@ -8,6 +8,3 @@ __url__ = "https://github.com/WhiteSymmetry/kececilayout"
8
8
  __docs__ = "https://github.com/WhiteSymmetry/kececilayout" # Opsiyonel: Dokümantasyon linki
9
9
  __dependencies__ = ["python>=3.9"] # Diğer bağımlılıkları da ekleyebilirsiniz
10
10
 
11
-
12
-
13
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececilayout
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Çeşitli graf kütüphaneleri için sıralı-zigzag yerleşimleri sağlayan bir Python paketi.
5
5
  Home-page: https://github.com/WhiteSymmetry/kececilayout
6
6
  Author: Mehmet Keçeci
@@ -39,10 +39,10 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
39
39
  Requires-Python: >=3.10
40
40
  Description-Content-Type: text/markdown
41
41
  License-File: LICENSE
42
+ Requires-Dist: cairocffi
42
43
  Requires-Dist: networkx
43
44
  Requires-Dist: matplotlib
44
45
  Requires-Dist: numpy
45
- Requires-Dist: cairocffi
46
46
  Provides-Extra: test
47
47
  Requires-Dist: pytest; extra == "test"
48
48
  Requires-Dist: pytest-cov; extra == "test"
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "kececilayout"
9
- version = "0.3.0"
9
+ version = "0.3.2"
10
10
 
11
11
  # Diğer proje bilgileri (isteğe bağlı ama tavsiye edilir)
12
12
  authors = [
@@ -26,10 +26,10 @@ classifiers = [
26
26
 
27
27
  # Ana bağımlılıklarınız
28
28
  dependencies = [
29
+ "cairocffi",
29
30
  "networkx",
30
31
  "matplotlib",
31
32
  "numpy",
32
- "cairocffi"
33
33
  ]
34
34
 
35
35
  [project.optional-dependencies]
@@ -54,3 +54,6 @@ test = [
54
54
 
55
55
 
56
56
 
57
+
58
+
59
+
@@ -1,5 +1,9 @@
1
1
  import re
2
2
  from setuptools import setup, find_packages
3
+ import sys
4
+ import io
5
+
6
+ sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
3
7
 
4
8
  # __version__'ı __init__.py'den oku
5
9
  def get_version():
@@ -46,3 +50,4 @@ setup(
46
50
 
47
51
 
48
52
 
53
+
@@ -6,8 +6,9 @@ This test suite uses pytest to verify the functionality of layout calculations,
6
6
  graph type compatibility, error handling, and drawing function routing.
7
7
  """
8
8
 
9
- import pytest
10
9
  import numpy as np
10
+ import pytest
11
+ from unittest.mock import patch
11
12
 
12
13
  # Import the module to be tested
13
14
  # Assume the code is in a file named `kececilayout_lib.py` in the same directory
@@ -20,7 +21,7 @@ from kececilayout import (
20
21
  kececi_layout, # Assuming this is the main, multi-library compatible function
21
22
  to_networkx,
22
23
  draw_kececi,
23
- #_draw_internal # Also test the internal router
24
+ _draw_internal # Also test the internal router
24
25
  )
25
26
 
26
27
  # Pytest markers to skip tests if optional libraries are not installed
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
+ cairocffi
1
2
  networkx
2
3
  matplotlib
3
4
  numpy
4
- cairocffi
5
5
 
6
6
  [test]
7
7
  pytest
File without changes