Skip to content

Commit 8d3fa64

Browse files
committed
remove testing prints. change structure for pypi
1 parent 3d77a47 commit 8d3fa64

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ dmypy.json
130130

131131
# My addition: testing env
132132

133-
test.py
134-
test_output/
133+
/test
134+
token.txt

ani_file/__init__.py

Whitespace-only changes.

ani_file/test_res/aero_busy.ani

-543 KB
Binary file not shown.

ani_file/test_res/lamy_wait.ani

-12.7 KB
Binary file not shown.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = ["hatchling"]
33
build-backend = "hatchling.build"
44
[project]
5-
name = "ani_file_package"
5+
name = "ani_file"
66
version = "0.0.1"
77
authors = [
88
{ name="HoangEevee", email="nguyenquochoang2806@gmail.com" },

src/ani_file/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import ani_file

ani_file/ani_file.py renamed to src/ani_file/ani_file.py

-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ def initfp(self, file):
2323
break
2424

2525
chunkname = chunk.getname()
26-
print(chunkname)
2726

2827
if chunkname == b'anih':
2928
self._read_anih_chunk(chunk)
3029
self._has_anih_chunk = True
3130
#Got 2 kinds of LIST chunks: 'INFO' and 'fram'
3231
elif chunkname == b"LIST":
3332
listname = chunk.read(4)
34-
print(listname,chunk.getsize())
3533
if listname == b"INFO":
3634
self._read_info_chunk(chunk)
3735
elif listname == b"fram":
@@ -121,7 +119,6 @@ def saveframestofile(self, outputpath=".\\", filenameprefix=""):
121119
def _read_anih_chunk(self, chunk):
122120
try:
123121
cbSize, self._nFrames, self._nSteps, self._iWidth, self._iHeight, self._iBitCount, self._nPlanes, self._iDispRate, self._bfAttributes = struct.unpack_from("<9I", chunk.read(36))
124-
print(cbSize, self._nFrames, self._nSteps, self._iWidth, self._iHeight, self._iBitCount, self._nPlanes, self._iDispRate, self._bfAttributes)
125122
#TODO: look into what this except actually means
126123
except struct.error:
127124
raise EOFError from None

0 commit comments

Comments
 (0)