1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Upstream vendored dev-python/ply, but we can keep using the one in ::gentoo
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,6 @@
},
packages=[
'stone',
- 'stone._vendor',
- 'stone._vendor.ply',
'stone.backends',
'stone.backends.python_rsrc',
'stone.frontend',
@@ -29,7 +27,6 @@
],
package_data={
'stone': ['py.typed'],
- 'stone._vendor.ply': ['LICENSE', 'README.md'],
},
zip_safe=False,
author_email='kelkabany@dropbox.com',
--- a/stone/cli_helpers.py
+++ b/stone/cli_helpers.py
@@ -1,6 +1,6 @@
import abc
-from stone._vendor.ply import lex, yacc
+from ply import lex, yacc
_MYPY = False
if _MYPY:
--- a/stone/frontend/lexer.py
+++ b/stone/frontend/lexer.py
@@ -1,7 +1,7 @@
import logging
import os
-from stone._vendor.ply import lex
+from ply import lex
_MYPY = False
if _MYPY:
--- a/stone/frontend/parser.py
+++ b/stone/frontend/parser.py
@@ -1,7 +1,7 @@
import logging
from collections import OrderedDict
-from stone._vendor.ply import yacc
+from ply import yacc
from .ast import (
AstAlias,
|