File tree Expand file tree Collapse file tree 11 files changed +45
-21
lines changed Expand file tree Collapse file tree 11 files changed +45
-21
lines changed Original file line number Diff line number Diff line change 3
3
include CHANGES.rst
4
4
include LICENSE
5
5
include README.rst
6
+ include VERSION.txt
6
7
include tox.ini
7
- include dev-requirements.in
8
- include dev-requirements.txt
9
8
include requirements.in
10
9
include requirements.txt
11
10
include .pylintrc
12
- include .travis.yml
13
11
14
12
recursive-include examples *
15
13
recursive-include src/crcengine/templates *
Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ install: clean ## install the package to the active Python's site-packages
123
123
124
124
UPDATE_REQS =pip-compile -q -U --output-file=requirements.txt requirements.in
125
125
126
- .PHONY : update-requirements
127
- update-requirements : # # Update dependencies in requirements.txt
126
+ .PHONY : update-deps
127
+ update-deps : # # Update dependencies in requirements.txt
128
128
$(call UPDATE_REQS)
129
129
130
130
requirements.txt : requirements.in
Original file line number Diff line number Diff line change
1
+ 0.3.2a1
Original file line number Diff line number Diff line change 1
1
wheel>=0.26
2
2
build
3
+ importlib-metadata
3
4
jinja2
5
+ packaging
4
6
pip-tools
5
7
Pygments # needed for the docs
6
8
pytest>=3
Original file line number Diff line number Diff line change @@ -49,10 +49,17 @@ idna==2.10
49
49
# via requests
50
50
imagesize == 1.2.0
51
51
# via sphinx
52
- importlib-metadata == 3.10 .0
52
+ importlib-metadata == 3.6 .0
53
53
# via
54
+ # -r requirements.in
55
+ # build
54
56
# keyring
57
+ # pep517
58
+ # pluggy
59
+ # pytest
60
+ # tox
55
61
# twine
62
+ # virtualenv
56
63
iniconfig == 1.1.1
57
64
# via pytest
58
65
isort == 5.8.0
@@ -71,6 +78,7 @@ mccabe==0.6.1
71
78
# via pylint
72
79
packaging == 20.9
73
80
# via
81
+ # -r requirements.in
74
82
# bleach
75
83
# build
76
84
# pytest
@@ -153,10 +161,14 @@ toml==0.10.2
153
161
# tox
154
162
tox == 3.23.0
155
163
# via -r requirements.in
156
- tqdm == 4.59 .0
164
+ tqdm == 4.60 .0
157
165
# via twine
158
166
twine == 3.4.1
159
167
# via -r requirements.in
168
+ typed-ast == 1.4.2
169
+ # via astroid
170
+ typing-extensions == 3.7.4.3
171
+ # via importlib-metadata
160
172
urllib3 == 1.26.4
161
173
# via requests
162
174
virtualenv == 20.4.3
@@ -168,7 +180,9 @@ wheel==0.36.2
168
180
wrapt == 1.12.1
169
181
# via astroid
170
182
zipp == 3.4.1
171
- # via importlib-metadata
183
+ # via
184
+ # importlib-metadata
185
+ # pep517
172
186
173
187
# The following packages are considered to be unsafe in a requirements file:
174
188
# pip
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ long_description = file: README.rst
18
18
long_description_content_type = text/x-rst
19
19
keywords = crcengine crc cyclic redundancy check checksum code-generation Castagnoli CRC32 CRC16-CCITT
20
20
url = https://github.com/GardenTools/crcengine
21
- version = attr: crcengine.version.__version__
21
+ version = file: VERSION.txt
22
22
project_urls =
23
23
Changelog = https://github.com/GardenTools/CrcEngine/blob/master/CHANGES.rst
24
24
Documentation = https://crcengine.readthedocs.io/en/latest/
@@ -37,6 +37,7 @@ package_dir =
37
37
packages =
38
38
crcengine
39
39
install_requires =
40
+ importlib-metadata>=3.6
40
41
jinja2>=2.7
41
42
42
43
[options.entry_points]
Original file line number Diff line number Diff line change 18
18
# You should have received a copy of the GNU General Public License
19
19
# along with crcengine. If not, see <https://www.gnu.org/licenses/>.
20
20
21
+ import importlib_metadata
22
+
23
+ __version__ = importlib_metadata .version ('crcengine' )
21
24
22
25
from .algorithms import (
23
26
AlgorithmNotFoundError ,
36
39
get_bits_max_value ,
37
40
new ,
38
41
)
39
- from .codegen import generate_code , generate_test
40
- from . version import __version__
42
+ from crcengine .codegen import generate_code , generate_test
43
+
Original file line number Diff line number Diff line change 31
31
32
32
from .algorithms import get_algorithm_params
33
33
from .calc import create_lsb_table , create_msb_table
34
- from . version import __version__ as crcengine_version
34
+ from crcengine import __version__ as crcengine_version
35
35
36
36
# Generated file information
37
37
_GenFile = namedtuple ("GenFile" , ["template" , "output" ])
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ def pytest_configure(config):
16
16
def pytest_collection_modifyitems (config , items ):
17
17
# If a test has the needs_ceedling marker and no-ceedling has been specified
18
18
# mark it as a skipped test
19
- print ("beep" )
20
19
if config .getoption ("--no-ceedling" ):
21
20
print ("no ceedling" )
22
21
skip_ceedling = pytest .mark .skip (reason = "--no-ceedling specified" )
Original file line number Diff line number Diff line change 1
- """Unit tests for the crcengine module"""
1
+ """Unit tests for the calc module"""
2
2
# This file is part of crcengine.
3
3
#
4
4
# crcengine is free software: you can redistribute it an d /or modify
@@ -210,3 +210,4 @@ def test_custom_algorithm():
210
210
assert "mycrc8" not in crcengine .algorithms_available ()
211
211
with pytest .raises (crcengine .AlgorithmNotFoundError ):
212
212
crcengine .get_algorithm_params ("mycrc8" )
213
+
You can’t perform that action at this time.
0 commit comments