python4yahdlc 1.3.5__tar.gz → 1.4.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.
@@ -3,4 +3,4 @@
3
3
 
4
4
  include yahdlc/C/*.h
5
5
 
6
- global-exclude *~ *.sw[op] *.py[cod] *.so
6
+ global-exclude *~ *.sw[nop] *.py[cod] *.so
@@ -1,11 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python4yahdlc
3
- Version: 1.3.5
3
+ Version: 1.4.0
4
4
  Summary: Python binding of the yahdlc library allowing to encode and decode HDLC frames.
5
- Home-page: https://github.com/SkypLabs/python4yahdlc
6
5
  Author: Paul-Emmanuel Raoul
7
- Author-email: skyper@skyplabs.net
8
- License: GPLv3
6
+ License-Expression: GPL-3.0-only
9
7
  Project-URL: Bug Tracker, https://github.com/SkypLabs/python4yahdlc/issues
10
8
  Project-URL: Source Code, https://github.com/SkypLabs/python4yahdlc
11
9
  Keywords: hdlc,yahdlc,binding,network
@@ -15,17 +13,21 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
13
  Classifier: Natural Language :: English
16
14
  Classifier: Programming Language :: C
17
15
  Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
16
  Classifier: Programming Language :: Python :: 3.10
22
17
  Classifier: Programming Language :: Python :: 3.11
23
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
24
- Requires-Python: <4,>=3.7
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: <4,>=3.10
25
22
  Description-Content-Type: text/x-rst
23
+ License-File: LICENSE.txt
26
24
  Provides-Extra: examples
25
+ Requires-Dist: fysom; extra == "examples"
26
+ Requires-Dist: pyserial; extra == "examples"
27
27
  Provides-Extra: tests
28
- License-File: LICENSE.txt
28
+ Requires-Dist: ruff>=0.3; extra == "tests"
29
+ Requires-Dist: tox; extra == "tests"
30
+ Dynamic: license-file
29
31
 
30
32
  =============
31
33
  python4yahdlc
@@ -41,7 +43,14 @@ frames.
41
43
  Dependencies
42
44
  ============
43
45
 
44
- This software requires Python 3.
46
+ This software requires CPython, a C compiler such as Clang or GCC, a C standard
47
+ library, and the Python development headers.
48
+
49
+ For example, on Alpine Linux:
50
+
51
+ .. code:: sh
52
+
53
+ apk add python3 gcc python3-dev musl-dev
45
54
 
46
55
  Installation
47
56
  ============
@@ -58,9 +67,16 @@ From sources
58
67
 
59
68
  .. code:: sh
60
69
 
61
- git clone https://github.com/SkypLabs/python4yahdlc.git
70
+ # This will clone only the latest stable version of python4yahdlc.
71
+ git clone --single-branch --depth=1 -b main https://github.com/SkypLabs/python4yahdlc.git
72
+
73
+ # Move into the source code directory.
62
74
  cd python4yahdlc
75
+
76
+ # Initialise and clone the Git sub-modules (yahdlc itself).
63
77
  git submodule update --init --recursive
78
+
79
+ # Install python4yahdlc with pip.
64
80
  pip install --upgrade .
65
81
 
66
82
  Usage
@@ -121,13 +137,13 @@ To set up a development environment on your local machine:
121
137
  # dependencies.
122
138
  pip install -e .[examples,tests]
123
139
 
124
- License
140
+ Licence
125
141
  =======
126
142
 
127
143
  This project is released under the `GPL version 3
128
- <https://www.gnu.org/licenses/gpl.txt>`__ license. The `yahdlc
144
+ <https://www.gnu.org/licenses/gpl.txt>`__ licence. The `yahdlc
129
145
  <https://github.com/bang-olufsen/yahdlc>`__ library is released under the `MIT
130
- <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ license.
146
+ <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ licence.
131
147
 
132
148
  .. |Build Status| image:: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml/badge.svg?branch=develop
133
149
  :target: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml?query=branch%3Adevelop
@@ -12,7 +12,14 @@ frames.
12
12
  Dependencies
13
13
  ============
14
14
 
15
- This software requires Python 3.
15
+ This software requires CPython, a C compiler such as Clang or GCC, a C standard
16
+ library, and the Python development headers.
17
+
18
+ For example, on Alpine Linux:
19
+
20
+ .. code:: sh
21
+
22
+ apk add python3 gcc python3-dev musl-dev
16
23
 
17
24
  Installation
18
25
  ============
@@ -29,9 +36,16 @@ From sources
29
36
 
30
37
  .. code:: sh
31
38
 
32
- git clone https://github.com/SkypLabs/python4yahdlc.git
39
+ # This will clone only the latest stable version of python4yahdlc.
40
+ git clone --single-branch --depth=1 -b main https://github.com/SkypLabs/python4yahdlc.git
41
+
42
+ # Move into the source code directory.
33
43
  cd python4yahdlc
44
+
45
+ # Initialise and clone the Git sub-modules (yahdlc itself).
34
46
  git submodule update --init --recursive
47
+
48
+ # Install python4yahdlc with pip.
35
49
  pip install --upgrade .
36
50
 
37
51
  Usage
@@ -92,13 +106,13 @@ To set up a development environment on your local machine:
92
106
  # dependencies.
93
107
  pip install -e .[examples,tests]
94
108
 
95
- License
109
+ Licence
96
110
  =======
97
111
 
98
112
  This project is released under the `GPL version 3
99
- <https://www.gnu.org/licenses/gpl.txt>`__ license. The `yahdlc
113
+ <https://www.gnu.org/licenses/gpl.txt>`__ licence. The `yahdlc
100
114
  <https://github.com/bang-olufsen/yahdlc>`__ library is released under the `MIT
101
- <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ license.
115
+ <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ licence.
102
116
 
103
117
  .. |Build Status| image:: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml/badge.svg?branch=develop
104
118
  :target: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml?query=branch%3Adevelop
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 77.0.3", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "python4yahdlc"
7
+ version = "1.4.0"
8
+ description = "Python binding of the yahdlc library allowing to encode and decode HDLC frames."
9
+ readme = "README.rst"
10
+ keywords = ["hdlc", "yahdlc", "binding", "network"]
11
+ authors = [{ name = "Paul-Emmanuel Raoul" }]
12
+ license = "GPL-3.0-only"
13
+ license-files = ["LICEN[CS]E*"]
14
+ requires-python = ">=3.10, <4"
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Intended Audience :: Developers",
18
+ "Topic :: Software Development :: Libraries :: Python Modules",
19
+ "Natural Language :: English",
20
+ "Programming Language :: C",
21
+ "Programming Language :: Python :: 3 :: Only",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
27
+ ]
28
+
29
+ [project.optional-dependencies]
30
+ examples = ["fysom", "pyserial"]
31
+ tests = ["ruff >= 0.3", "tox"]
32
+
33
+ [project.urls]
34
+ "Bug Tracker" = "https://github.com/SkypLabs/python4yahdlc/issues"
35
+ "Source Code" = "https://github.com/SkypLabs/python4yahdlc"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -20,7 +20,8 @@ static PyObject *get_data(PyObject *self, PyObject *args)
20
20
  int ret;
21
21
  const char *frame_data;
22
22
  char recv_data[TOTAL_FRAME_LENGTH];
23
- unsigned int buf_length = 0, recv_length = 0;
23
+ Py_ssize_t buf_length = 0;
24
+ unsigned int recv_length = 0;
24
25
  yahdlc_control_t control;
25
26
 
26
27
  if (!PyArg_ParseTuple(args, "s#", &frame_data, &buf_length))
@@ -89,7 +90,8 @@ static PyObject *frame_data(PyObject *self, PyObject *args)
89
90
  int ret;
90
91
  const char *send_data;
91
92
  char frame_data[TOTAL_FRAME_LENGTH];
92
- unsigned int data_length = 0, frame_length = 0, frame_type = YAHDLC_FRAME_DATA, seq_no = 0;
93
+ Py_ssize_t data_length = 0;
94
+ unsigned int frame_length = 0, frame_type = YAHDLC_FRAME_DATA, seq_no = 0;
93
95
  yahdlc_control_t control;
94
96
 
95
97
  if (!PyArg_ParseTuple(args, "s#|II", &send_data, &data_length, &frame_type, &seq_no))
@@ -162,7 +164,7 @@ PyMODINIT_FUNC PyInit_yahdlc(void)
162
164
  return NULL;
163
165
 
164
166
  Yahdlc_MessageError = PyErr_NewException("yahdlc.MessageError", NULL, NULL);
165
- Py_INCREF(Yahdlc_MessageError);
167
+ Py_XINCREF(Yahdlc_MessageError);
166
168
  if (PyModule_AddObject(m, "MessageError", Yahdlc_MessageError) < 0) {
167
169
  Py_XDECREF(Yahdlc_MessageError);
168
170
  Py_CLEAR(Yahdlc_MessageError);
@@ -171,7 +173,7 @@ PyMODINIT_FUNC PyInit_yahdlc(void)
171
173
  }
172
174
 
173
175
  Yahdlc_FCSError = PyErr_NewException("yahdlc.FCSError", NULL, NULL);
174
- Py_INCREF(Yahdlc_FCSError);
176
+ Py_XINCREF(Yahdlc_FCSError);
175
177
  if (PyModule_AddObject(m, "FCSError", Yahdlc_FCSError) < 0) {
176
178
  Py_XDECREF(Yahdlc_FCSError);
177
179
  Py_CLEAR(Yahdlc_FCSError);
@@ -1,11 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python4yahdlc
3
- Version: 1.3.5
3
+ Version: 1.4.0
4
4
  Summary: Python binding of the yahdlc library allowing to encode and decode HDLC frames.
5
- Home-page: https://github.com/SkypLabs/python4yahdlc
6
5
  Author: Paul-Emmanuel Raoul
7
- Author-email: skyper@skyplabs.net
8
- License: GPLv3
6
+ License-Expression: GPL-3.0-only
9
7
  Project-URL: Bug Tracker, https://github.com/SkypLabs/python4yahdlc/issues
10
8
  Project-URL: Source Code, https://github.com/SkypLabs/python4yahdlc
11
9
  Keywords: hdlc,yahdlc,binding,network
@@ -15,17 +13,21 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
13
  Classifier: Natural Language :: English
16
14
  Classifier: Programming Language :: C
17
15
  Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
16
  Classifier: Programming Language :: Python :: 3.10
22
17
  Classifier: Programming Language :: Python :: 3.11
23
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
24
- Requires-Python: <4,>=3.7
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: <4,>=3.10
25
22
  Description-Content-Type: text/x-rst
23
+ License-File: LICENSE.txt
26
24
  Provides-Extra: examples
25
+ Requires-Dist: fysom; extra == "examples"
26
+ Requires-Dist: pyserial; extra == "examples"
27
27
  Provides-Extra: tests
28
- License-File: LICENSE.txt
28
+ Requires-Dist: ruff>=0.3; extra == "tests"
29
+ Requires-Dist: tox; extra == "tests"
30
+ Dynamic: license-file
29
31
 
30
32
  =============
31
33
  python4yahdlc
@@ -41,7 +43,14 @@ frames.
41
43
  Dependencies
42
44
  ============
43
45
 
44
- This software requires Python 3.
46
+ This software requires CPython, a C compiler such as Clang or GCC, a C standard
47
+ library, and the Python development headers.
48
+
49
+ For example, on Alpine Linux:
50
+
51
+ .. code:: sh
52
+
53
+ apk add python3 gcc python3-dev musl-dev
45
54
 
46
55
  Installation
47
56
  ============
@@ -58,9 +67,16 @@ From sources
58
67
 
59
68
  .. code:: sh
60
69
 
61
- git clone https://github.com/SkypLabs/python4yahdlc.git
70
+ # This will clone only the latest stable version of python4yahdlc.
71
+ git clone --single-branch --depth=1 -b main https://github.com/SkypLabs/python4yahdlc.git
72
+
73
+ # Move into the source code directory.
62
74
  cd python4yahdlc
75
+
76
+ # Initialise and clone the Git sub-modules (yahdlc itself).
63
77
  git submodule update --init --recursive
78
+
79
+ # Install python4yahdlc with pip.
64
80
  pip install --upgrade .
65
81
 
66
82
  Usage
@@ -121,13 +137,13 @@ To set up a development environment on your local machine:
121
137
  # dependencies.
122
138
  pip install -e .[examples,tests]
123
139
 
124
- License
140
+ Licence
125
141
  =======
126
142
 
127
143
  This project is released under the `GPL version 3
128
- <https://www.gnu.org/licenses/gpl.txt>`__ license. The `yahdlc
144
+ <https://www.gnu.org/licenses/gpl.txt>`__ licence. The `yahdlc
129
145
  <https://github.com/bang-olufsen/yahdlc>`__ library is released under the `MIT
130
- <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ license.
146
+ <https://github.com/bang-olufsen/yahdlc/blob/master/LICENSE>`__ licence.
131
147
 
132
148
  .. |Build Status| image:: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml/badge.svg?branch=develop
133
149
  :target: https://github.com/SkypLabs/python4yahdlc/actions/workflows/test_and_publish.yml?query=branch%3Adevelop
@@ -0,0 +1,15 @@
1
+ LICENSE.txt
2
+ MANIFEST.in
3
+ README.rst
4
+ pyproject.toml
5
+ setup.py
6
+ src/python4yahdlc.c
7
+ src/python4yahdlc.egg-info/PKG-INFO
8
+ src/python4yahdlc.egg-info/SOURCES.txt
9
+ src/python4yahdlc.egg-info/dependency_links.txt
10
+ src/python4yahdlc.egg-info/requires.txt
11
+ src/python4yahdlc.egg-info/top_level.txt
12
+ yahdlc/C/fcs.c
13
+ yahdlc/C/fcs.h
14
+ yahdlc/C/yahdlc.c
15
+ yahdlc/C/yahdlc.h
@@ -4,6 +4,5 @@ fysom
4
4
  pyserial
5
5
 
6
6
  [tests]
7
- black
8
- ruff
7
+ ruff>=0.3
9
8
  tox
@@ -1,6 +0,0 @@
1
- [build-system]
2
- requires = [
3
- "setuptools >= 42",
4
- "wheel",
5
- ]
6
- build-backend = "setuptools.build_meta"
@@ -1,16 +0,0 @@
1
- LICENSE.txt
2
- MANIFEST.in
3
- README.rst
4
- pyproject.toml
5
- setup.cfg
6
- setup.py
7
- python4yahdlc.egg-info/PKG-INFO
8
- python4yahdlc.egg-info/SOURCES.txt
9
- python4yahdlc.egg-info/dependency_links.txt
10
- python4yahdlc.egg-info/requires.txt
11
- python4yahdlc.egg-info/top_level.txt
12
- src/python4yahdlc.c
13
- yahdlc/C/fcs.c
14
- yahdlc/C/fcs.h
15
- yahdlc/C/yahdlc.c
16
- yahdlc/C/yahdlc.h
@@ -1,45 +0,0 @@
1
- [metadata]
2
- name = python4yahdlc
3
- version = 1.3.5
4
- description = Python binding of the yahdlc library allowing to encode and decode HDLC frames.
5
- long_description = file: README.rst
6
- long_description_content_type = text/x-rst
7
- keywords = hdlc, yahdlc, binding, network
8
- license = GPLv3
9
- license_files = LICENSE.txt
10
- author = Paul-Emmanuel Raoul
11
- author_email = skyper@skyplabs.net
12
- url = https://github.com/SkypLabs/python4yahdlc
13
- project_urls =
14
- Bug Tracker = https://github.com/SkypLabs/python4yahdlc/issues
15
- Source Code = https://github.com/SkypLabs/python4yahdlc
16
- classifiers =
17
- Development Status :: 5 - Production/Stable
18
- Intended Audience :: Developers
19
- Topic :: Software Development :: Libraries :: Python Modules
20
- Natural Language :: English
21
- Programming Language :: C
22
- Programming Language :: Python :: 3 :: Only
23
- Programming Language :: Python :: 3.7
24
- Programming Language :: Python :: 3.8
25
- Programming Language :: Python :: 3.9
26
- Programming Language :: Python :: 3.10
27
- Programming Language :: Python :: 3.11
28
- License :: OSI Approved :: GNU General Public License v3 (GPLv3)
29
-
30
- [options]
31
- python_requires = >=3.7, <4
32
-
33
- [options.extras_require]
34
- examples =
35
- fysom
36
- pyserial
37
- tests =
38
- black
39
- ruff
40
- tox
41
-
42
- [egg_info]
43
- tag_build =
44
- tag_date = 0
45
-
File without changes
File without changes