Skip to content

Commit

Permalink
fix: setup py.typed
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 1, 2023
1 parent 268265b commit b69ca61
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"""
Setup the Code for Life package during installation.
"""

import os

from setuptools import setup, find_packages
from setuptools import find_packages, setup

from codeforlife import DATA_DIR, __version__

Expand All @@ -11,7 +15,9 @@
data_files, root_dir = [], os.path.dirname(__file__)
for dir_path, dir_names, file_names in os.walk(DATA_DIR):
rel_data_dir = os.path.relpath(dir_path, root_dir)
data_files += [os.path.join(rel_data_dir, file_name) for file_name in file_names]
data_files += [
os.path.join(rel_data_dir, file_name) for file_name in file_names
]

setup(
name="codeforlife",
Expand All @@ -25,6 +31,7 @@
packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True,
data_files=[(str(DATA_DIR), data_files)],
package_data={"codeforlife": ["py.typed"]},
python_requires="==3.8.*",
# These will be synced with Pipfile by the pipeline.
# DO NOT edit these manually. Instead, update the Pipfile.
Expand Down

0 comments on commit b69ca61

Please sign in to comment.