Basically i have the project below :
my_pkg
__init__.py
\module1
__init__.py
scrip1.py
script2.py
requirement.txt
\module2
_script1.py
_script2.py
requirement.txt
setup.py
LICENSE
README.md
I am trying to include the requirement.txt files with the packaging of my library my_pkg
The requirement.txt in module1 folder contains:
request
the requirement.txt in module2 folder contains:
pdfkit
This is my setup.py file :
import setuptools
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="im_pkg",
version="0.0.1",
author="John Doe",
description="Shared Python library",
long_description=long_description,
license="MIT",
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=["requests","pdfkit"],
python_requires='>=3.6'
)
I would like to read my requirement.txt of my subfolder dynamically without having to put it manually in the install_requires= section