Skip to content

Commit a8259dd

Browse files
committed
runtime: Include py.typed, drop unused six dependency
1 parent bfcc088 commit a8259dd

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/fluent.runtime.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
python -m pip install wheel
4141
python -m pip install --upgrade pip
42-
python -m pip install fluent.syntax==${{ matrix.fluent-syntax }}
42+
python -m pip install fluent.syntax==${{ matrix.fluent-syntax }} six
4343
python -m pip install .
4444
- name: Test
4545
working-directory: ./fluent.runtime

fluent.runtime/fluent/runtime/py.typed

Whitespace-only changes.

fluent.runtime/setup.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from setuptools import setup, find_namespace_packages
2-
import os
1+
from os import path
2+
from setuptools import setup
33

4-
this_directory = os.path.abspath(os.path.dirname(__file__))
5-
with open(os.path.join(this_directory, 'README.rst'), 'rb') as f:
4+
this_directory = path.abspath(path.dirname(__file__))
5+
with open(path.join(this_directory, 'README.rst'), 'rb') as f:
66
long_description = f.read().decode('utf-8')
77

88

@@ -25,14 +25,14 @@
2525
'Programming Language :: Python :: 3.9',
2626
'Programming Language :: Python :: 3 :: Only',
2727
],
28-
packages=find_namespace_packages(include=['fluent.*']),
28+
packages=['fluent.runtime'],
29+
package_data={'fluent.runtime': ['py.typed']},
2930
# These should also be duplicated in tox.ini and /.github/workflows/fluent.runtime.yml
3031
install_requires=[
3132
'fluent.syntax>=0.17,<0.20',
3233
'attrs',
3334
'babel',
3435
'pytz',
35-
'six',
3636
],
3737
test_suite='tests',
3838
)

fluent.runtime/tox.ini

-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ deps =
1212
attrs==19.1.0
1313
babel==2.7.0
1414
pytz==2019.2
15-
six==1.12.0
1615
syntax: .
1716
commands = ./runtests.py
1817

1918
[testenv:latest]
2019
basepython = python3
2120
deps =
2221
.
23-
six

0 commit comments

Comments
 (0)