superturtle 0.1.0__tar.gz → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: superturtle
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Extensions to Python's turtle
5
5
  Author: Chris Proctor
6
6
  Author-email: chris@chrisproctor.net
@@ -9,8 +9,6 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
- Requires-Dist: furo (>=2023.5.20,<2024.0.0)
13
- Requires-Dist: sphinx (>=7.0.1,<8.0.0)
14
12
  Project-URL: Documentation, https://superturtle.readthedocs.io/en/latest/
15
13
  Description-Content-Type: text/markdown
16
14
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "superturtle"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "Extensions to Python's turtle"
5
5
  authors = ["Chris Proctor <chris@chrisproctor.net>"]
6
6
  readme = "README.md"
@@ -8,10 +8,18 @@ documentation = "https://superturtle.readthedocs.io/en/latest/"
8
8
 
9
9
  [tool.poetry.dependencies]
10
10
  python = "^3.9"
11
+
12
+ [tool.poetry.group.docs]
13
+ optional = true
14
+
15
+ [tool.poetry.group.docs.dependencies]
11
16
  sphinx = "^7.0.1"
12
17
  furo = "^2023.5.20"
13
18
 
14
- [tool.poetry.dev-dependencies]
19
+ [tool.poetry.group.dev]
20
+ optional = true
21
+
22
+ [tool.poetry.group.dev.dependencies]
15
23
  pytest = "^5.2"
16
24
 
17
25
  [build-system]
@@ -296,7 +296,10 @@ class Frame:
296
296
  raise AnimationError("last_frame must be greater than first_frame")
297
297
  period = (last_frame - first_frame) / cycles
298
298
  ix = min(max(first_frame, self.index), last_frame)
299
- t = ((ix - first_frame) % period) / period
299
+ if ix >= last_frame:
300
+ t = 1
301
+ else:
302
+ t = ((ix - first_frame) % period) / period
300
303
  if mirror:
301
304
  t = 1 - abs(2*t - 1)
302
305
  if easing is None:
File without changes