Skip to content

Commit c58681f

Browse files
authored
Convert to native namespace packages as we are py36+, part of #162 (#164)
* Convert to native namespace packages as we are py36+, part of #162 * Fix warning in integration tests by declaring compat with upcoming syntax 0.20
1 parent 7b73fde commit c58681f

File tree

8 files changed

+9
-16
lines changed

8 files changed

+9
-16
lines changed

fluent.docs/fluent/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

fluent.docs/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from setuptools import setup
1+
from setuptools import setup, find_namespace_packages
22

33
setup(
44
name='fluent.docs',
5-
packages=['fluent', 'fluent.docs'],
5+
packages=find_namespace_packages(include=['fluent.*']),
66
)

fluent.pygments/fluent/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

fluent.pygments/setup.py

100755100644
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env python
2-
from setuptools import setup
1+
from setuptools import setup, find_namespace_packages
32
import os
43

54
this_directory = os.path.abspath(os.path.dirname(__file__))
@@ -25,6 +24,6 @@
2524
'Programming Language :: Python :: 3.9',
2625
'Programming Language :: Python :: 3 :: Only',
2726
],
28-
packages=['fluent', 'fluent.pygments'],
27+
packages=find_namespace_packages(include=['fluent.*']),
2928
test_suite='tests.pygments'
3029
)

fluent.runtime/fluent/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

fluent.runtime/setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env python
2-
from setuptools import setup
1+
from setuptools import setup, find_namespace_packages
32
import os
43

54
this_directory = os.path.abspath(os.path.dirname(__file__))
@@ -26,10 +25,10 @@
2625
'Programming Language :: Python :: 3.9',
2726
'Programming Language :: Python :: 3 :: Only',
2827
],
29-
packages=['fluent', 'fluent.runtime'],
28+
packages=find_namespace_packages(include=['fluent.*']),
3029
# These should also be duplicated in tox.ini and /.github/workflows/fluent.runtime.yml
3130
install_requires=[
32-
'fluent.syntax>=0.17,<0.19',
31+
'fluent.syntax>=0.17,<0.20',
3332
'attrs',
3433
'babel',
3534
'pytz',

fluent.syntax/fluent/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

fluent.syntax/setup.py

100755100644
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env python
2-
from setuptools import setup
1+
from setuptools import setup, find_namespace_packages
32
import os
43

54
this_directory = os.path.abspath(os.path.dirname(__file__))
@@ -25,6 +24,6 @@
2524
'Programming Language :: Python :: 3.9',
2625
'Programming Language :: Python :: 3 :: Only',
2726
],
28-
packages=['fluent', 'fluent.syntax'],
27+
packages=find_namespace_packages(include=['fluent.*']),
2928
test_suite='tests.syntax'
3029
)

0 commit comments

Comments
 (0)