kececilayout 0.3.1__tar.gz → 0.3.3__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.1
3
+ Version: 0.3.3
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
@@ -10,7 +10,7 @@ import inspect
10
10
  import warnings
11
11
 
12
12
  # Paket sürüm numarası
13
- __version__ = "0.3.1"
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.3.1"
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):
@@ -62,3 +126,9 @@ def old_function_placeholder():
62
126
 
63
127
 
64
128
 
129
+
130
+
131
+
132
+
133
+
134
+
@@ -1,9 +1,10 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.3.1"
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"
7
7
  __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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececilayout
3
- Version: 0.3.1
3
+ Version: 0.3.3
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
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "kececilayout"
9
- version = "0.3.1"
9
+ version = "0.3.3"
10
10
 
11
11
  # Diğer proje bilgileri (isteğe bağlı ama tavsiye edilir)
12
12
  authors = [
@@ -56,3 +56,5 @@ test = [
56
56
 
57
57
 
58
58
 
59
+
60
+
@@ -1,9 +1,20 @@
1
+ import io
1
2
  import re
2
3
  from setuptools import setup, find_packages
4
+ import sys
5
+
6
+
7
+ # BU SATIRLAR SORUNUN KALICI ÇÖZÜMÜDÜR.
8
+ # Python'a, README.md dosyasını hangi işletim sisteminde olursa olsun
9
+ # her zaman UTF-8 kodlamasıyla okumasını söylüyoruz.
10
+ with open("README.md", "r", encoding="utf-8") as fh:
11
+ long_description = fh.read()
12
+
13
+ sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
14
+
3
15
 
4
- # __version__'ı __init__.py'den oku
5
16
  def get_version():
6
- with open('kececilayout/__init__.py', 'r') as f:
17
+ with open('kececilayout/__init__.py', 'r', encoding='utf-8') as f:
7
18
  content = f.read()
8
19
  match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
9
20
  if match:
@@ -15,8 +26,8 @@ setup(
15
26
  #version="0.2.9",
16
27
  version=get_version(),
17
28
  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.",
18
- long_description=open("README.md").read(),
19
- long_description_content_type="text/markdown",
29
+ long_description=long_description,
30
+ long_description_content_type="text/markdown", # Bu satır da önemlidir
20
31
  author="Mehmet Keçeci",
21
32
  maintainer="Mehmet Keçeci",
22
33
  author_email="bilginomi@yaani.com",
@@ -31,7 +42,7 @@ setup(
31
42
  "cairocffi"
32
43
  ],
33
44
  extras_require={
34
- "all": ["python-louvain", "igraph", "networkit", "rustworkx", "graphillion"],
45
+ "all": ["cairo", "python-louvain", "igraph", "networkit", "rustworkx", "graphillion"],
35
46
  },
36
47
  classifiers=[
37
48
  "Programming Language :: Python :: 3",
@@ -42,7 +53,3 @@ setup(
42
53
  license="MIT",
43
54
  )
44
55
 
45
-
46
-
47
-
48
-
@@ -8,6 +8,7 @@ graph type compatibility, error handling, and drawing function routing.
8
8
 
9
9
  import numpy as np
10
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
File without changes