This paste expires on 2023-06-20 16:02:59.184234. Repaste, or download this paste. . Pasted through web.

MANIFEST.in
setup.py
src/
  my_thing/
    __init__.py
    great.py
    cool.py
    wow.py
    _data/
      __init__.py
      splash.jpg
      clippy.gif
      ComicSans.ttf
  
Filename: files. Size: 188b. View raw, , hex, or download this file.
import sys
if sys.version_info < (3, 9):
    import importlib_resources as resources
else:
    from importlib import resources
from . import _data
def load_splash() -> bytes:
    with resources.files(_data) as data_files:
        with (data_files / "splash.png").open("rb") as fp:
            return fp.read()
Filename: src:my_thing:great.py. Size: 326b. View raw, , hex, or download this file.
from setuptools import setup, find_packages
setup(
    name="my-thing",
    include_package_data=True,
    packages=find_packages("src"),
    package_dir={"": "src"},
    install_requires=[
        "importlib-resources >= 1.3 ; python < '3.9'",
    ],
)
Filename: setup.py. Size: 264b. View raw, , hex, or download this file.
graft src/
Filename: MANIFEST.in. Size: 10b. View raw, , hex, or download this file.