mathparse 0.2.7__tar.gz → 0.2.8__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.4
2
2
  Name: mathparse
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: mathparse is a library for solving mathematical equations contained in strings
5
5
  Author: Gunther Cox
6
6
  License-Expression: MIT
@@ -16,7 +16,7 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
16
16
  Classifier: Topic :: Text Processing :: General
17
17
  Classifier: Topic :: Text Processing :: Linguistic
18
18
  Classifier: Programming Language :: Python
19
- Requires-Python: <3.15,>=3.9
19
+ Requires-Python: <3.15,>=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Provides-Extra: test
@@ -2,4 +2,4 @@
2
2
  mathparse is a library for solving mathematical equations contained in strings
3
3
  """
4
4
 
5
- __version__ = '0.2.7'
5
+ __version__ = '0.2.8'
@@ -1668,8 +1668,8 @@ LANGUAGE_CODES = list(MATH_WORDS.keys())
1668
1668
 
1669
1669
 
1670
1670
  CONSTANTS = {
1671
- 'pi': 3.141693,
1672
- 'π': 3.141693,
1671
+ 'pi': 3.141593,
1672
+ 'π': 3.141593,
1673
1673
  'e': 2.718281
1674
1674
  }
1675
1675
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathparse
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: mathparse is a library for solving mathematical equations contained in strings
5
5
  Author: Gunther Cox
6
6
  License-Expression: MIT
@@ -16,7 +16,7 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
16
16
  Classifier: Topic :: Text Processing :: General
17
17
  Classifier: Topic :: Text Processing :: Linguistic
18
18
  Classifier: Programming Language :: Python
19
- Requires-Python: <3.15,>=3.9
19
+ Requires-Python: <3.15,>=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Provides-Extra: test
@@ -12,7 +12,7 @@ version = {attr = "mathparse.__version__"}
12
12
 
13
13
  [project]
14
14
  name = "mathparse"
15
- requires-python = ">=3.9,<3.15"
15
+ requires-python = ">=3.10,<3.15"
16
16
  urls = { Documentation = "https://mathparse.chatterbot.us", Repository = "https://github.com/gunthercox/mathparse", Changelog = "https://github.com/gunthercox/mathparse/releases" }
17
17
  authors = [
18
18
  {name = "Gunther Cox"},
@@ -70,11 +70,11 @@ class ComplexStatementsTestCase(TestCase):
70
70
  Test using the unicode π symbol as a constant.
71
71
  """
72
72
  result = mathparse.parse('2 * π')
73
- self.assertAlmostEqual(result, 2 * 3.141693, places=5)
73
+ self.assertAlmostEqual(result, 2 * 3.141593, places=5)
74
74
 
75
75
  def test_unicode_pi_in_expression(self):
76
76
  """
77
77
  Test using the unicode π symbol in a complex expression.
78
78
  """
79
79
  result = mathparse.parse('π + 1')
80
- self.assertAlmostEqual(result, 3.141693 + 1, places=5)
80
+ self.assertAlmostEqual(result, 3.141593 + 1, places=5)
@@ -37,6 +37,14 @@ class UnaryWordOperatorTestCase(TestCase):
37
37
 
38
38
  self.assertEqual(result, 2)
39
39
 
40
+ def test_square_root_with_decimal(self):
41
+ mathparse.parse('sqrt(4) . 5')
42
+
43
+ # TODO: Should this raise a parsing error instead of
44
+ # returning a number (2.5)?
45
+
46
+ raise self.skipTest('Skip until decision is made on expected behavior')
47
+
40
48
  def test_negative_number(self):
41
49
  result = mathparse.parse('-4 + 2')
42
50
 
File without changes
File without changes
File without changes
File without changes