Skip to content

Commit

Permalink
Convert to native namespace packages as we are py36+, part of #162 (#164
Browse files Browse the repository at this point in the history
)

* 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
  • Loading branch information
Pike authored Apr 9, 2021
1 parent 7b73fde commit c58681f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion fluent.docs/fluent/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions fluent.docs/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup
from setuptools import setup, find_namespace_packages

setup(
name='fluent.docs',
packages=['fluent', 'fluent.docs'],
packages=find_namespace_packages(include=['fluent.*']),
)
1 change: 0 additions & 1 deletion fluent.pygments/fluent/__init__.py

This file was deleted.

5 changes: 2 additions & 3 deletions fluent.pygments/setup.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from setuptools import setup
from setuptools import setup, find_namespace_packages
import os

this_directory = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -25,6 +24,6 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
],
packages=['fluent', 'fluent.pygments'],
packages=find_namespace_packages(include=['fluent.*']),
test_suite='tests.pygments'
)
1 change: 0 additions & 1 deletion fluent.runtime/fluent/__init__.py

This file was deleted.

7 changes: 3 additions & 4 deletions fluent.runtime/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from setuptools import setup
from setuptools import setup, find_namespace_packages
import os

this_directory = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -26,10 +25,10 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
],
packages=['fluent', 'fluent.runtime'],
packages=find_namespace_packages(include=['fluent.*']),
# These should also be duplicated in tox.ini and /.github/workflows/fluent.runtime.yml
install_requires=[
'fluent.syntax>=0.17,<0.19',
'fluent.syntax>=0.17,<0.20',
'attrs',
'babel',
'pytz',
Expand Down
1 change: 0 additions & 1 deletion fluent.syntax/fluent/__init__.py

This file was deleted.

5 changes: 2 additions & 3 deletions fluent.syntax/setup.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from setuptools import setup
from setuptools import setup, find_namespace_packages
import os

this_directory = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -25,6 +24,6 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
],
packages=['fluent', 'fluent.syntax'],
packages=find_namespace_packages(include=['fluent.*']),
test_suite='tests.syntax'
)

0 comments on commit c58681f

Please sign in to comment.