superturtle 0.2.0__tar.gz → 1.0.1__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,15 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: superturtle
3
- Version: 0.2.0
3
+ Version: 1.0.1
4
4
  Summary: Extensions to Python's turtle
5
+ License: MIT
5
6
  Author: Chris Proctor
6
7
  Author-email: chris@chrisproctor.net
7
- Requires-Python: >=3.9,<4.0
8
+ Requires-Python: >=3.10,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
8
10
  Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.9
10
11
  Classifier: Programming Language :: Python :: 3.10
11
12
  Classifier: Programming Language :: Python :: 3.11
12
- Project-URL: Documentation, https://superturtle.readthedocs.io/en/latest/
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
13
15
  Description-Content-Type: text/markdown
14
16
 
15
17
  # Superturtle
@@ -1,13 +1,14 @@
1
- [tool.poetry]
1
+ [project]
2
2
  name = "superturtle"
3
- version = "0.2.0"
3
+ version = "1.0.1"
4
4
  description = "Extensions to Python's turtle"
5
- authors = ["Chris Proctor <chris@chrisproctor.net>"]
5
+ authors = [
6
+ {name="Chris Proctor", email="chris@chrisproctor.net"}
7
+ ]
8
+ license = {text = "MIT"}
6
9
  readme = "README.md"
7
10
  documentation = "https://superturtle.readthedocs.io/en/latest/"
8
-
9
- [tool.poetry.dependencies]
10
- python = "^3.9"
11
+ requires-python = ">=3.10,<4.0"
11
12
 
12
13
  [tool.poetry.group.docs]
13
14
  optional = true
@@ -23,5 +24,5 @@ optional = true
23
24
  pytest = "^5.2"
24
25
 
25
26
  [build-system]
26
- requires = ["poetry-core>=1.0.0"]
27
+ requires = ["poetry-core>=2.0.0,<3.0.0"]
27
28
  build-backend = "poetry.core.masonry.api"
@@ -96,7 +96,7 @@ def animate(frames=1, loop=False, debug=False, gif_filename=None):
96
96
 
97
97
  if gif_filename:
98
98
  loopflag = "-loop 0 " if loop else ""
99
- run(f"convert -delay 5 -dispose Background {loopflag}{FRAMES_PATH}/frame_*.eps {gif_filename}", shell=True, check=True)
99
+ run(f"magick -delay 5 -dispose Background {loopflag}{FRAMES_PATH}/frame_*.eps {gif_filename}", shell=True, check=True)
100
100
  rmtree(FRAMES_PATH)
101
101
 
102
102
  class Frame:
@@ -108,6 +108,12 @@ class Frame:
108
108
  A transformation is a change to the picture which gradually changes from frame
109
109
  to frame. The three supported transformations are `rotate`, `scale`, and
110
110
  `translate`.
111
+
112
+ The transformations provided by Superturtle animation frames (`rotate`, `translate`, `scale`)
113
+ only work for relative turtle movement (e.g. `forward`, `back`, `left`, `right`).
114
+ Absolute turtle movement (e.g. `goto`, `setheading`) will not be affected by
115
+ transformations.
116
+
111
117
  """
112
118
  def __init__(self, num_frames, index=0, debug=False):
113
119
  self.debug = debug
@@ -15,7 +15,7 @@ def save(filename):
15
15
  """
16
16
  temp_file = Path("_temp.eps")
17
17
  getcanvas().postscript(file=temp_file)
18
- cmd = f"convert {temp_file} -colorspace RGB {filename}"
18
+ cmd = f"magick {temp_file} -colorspace RGB {filename}"
19
19
  run(cmd, shell=True, check=True)
20
20
  temp_file.unlink()
21
21
 
File without changes