I
I
Ilya Korol2020-05-16 18:04:47
Python
Ilya Korol, 2020-05-16 18:04:47

Why aren't the photos loaded into the batch when I run the command?

I create a module for Python3.6+ The
location of the files is:
TEE1p54VtfI.jpg
In setup.py the data is:

from setuptools import setup
from os.path import join, dirname

setup(
    name='FoxHustleQR',
    version='1.0',
    url="https://github.com/Fox-Hustle/QR-generator.git",
    description='QR-code Generator',
    long_description=open(join(dirname(__file__), 'README.txt')).read(),
    packages=['some_package'],
    license='MIT',
    author='welcome32',
    author_email='[email protected]',
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        'Pillow==7.1.2', 
        'PyQRCode==1.2.1',
        'requests==2.23.0',
    ], 
    python_requires='>=3.6',
    )

When running the command "python setup.py sdist"
No images are loaded in the module archive in the module folder. Only __init__.py
How to fix the setup.py code and make it load files into the package?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-05-17
@welcome32

How To Package Your Python Code: Adding Non-Code Files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question