Skip to content

Commit

Permalink
Removing Surface alias for Triangle. (#252)
Browse files Browse the repository at this point in the history
This type was deprecated in the 2020.1.14 release.
  • Loading branch information
dhermes committed Mar 1, 2021
1 parent c802b0c commit 40d3c22
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 89 deletions.
9 changes: 9 additions & 0 deletions docs/releases/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Latest Release (``2021.2.13.dev1``)
Python Changes
--------------

Breaking Changes
~~~~~~~~~~~~~~~~

- Removing ``Surface`` alias for the ``Triangle``
`type <https://bezier.readthedocs.io/en/2021.2.13.dev1/python/reference/bezier.triangle.html#bezier.triangle.Triangle>`__
(`#252 <https://github.com/dhermes/bezier/pull/252>`__). The ``Surface``
type was deprecated (and converted to an alias) in the ``2020.1.14``
release.

Additive Changes
~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion scripts/rewrite_package_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import bezier
except ImportError:
bezier = None
SPECIAL_MEMBERS = ("__author__", "__version__", "Surface")
SPECIAL_MEMBERS = ("__author__", "__version__")
UNDOCUMENTED_SPECIAL_MEMBERS = ("__author__",)
EXPECTED = """\
bezier package
Expand Down
4 changes: 0 additions & 4 deletions src/python/bezier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
.. |eacute| unicode:: U+000E9 .. LATIN SMALL LETTER E WITH ACUTE
:trim:
.. autoclass:: Surface
"""

# NOTE: ``__config__`` **must** be the first import because it (may)
# modify the search path used to locate shared libraries.
from bezier import __config__
from bezier._legacy import Surface
from bezier.curve import Curve
from bezier.curved_polygon import CurvedPolygon
from bezier.hazmat.helpers import UnsupportedDegree
Expand All @@ -52,7 +49,6 @@
"__version__",
"Curve",
"CurvedPolygon",
"Surface",
"Triangle",
"UnsupportedDegree",
]
34 changes: 0 additions & 34 deletions src/python/bezier/_legacy.py

This file was deleted.

50 changes: 0 additions & 50 deletions tests/unit/test__legacy.py

This file was deleted.

0 comments on commit 40d3c22

Please sign in to comment.