Replies: 2 comments
-
I also need a solution to the deprecation of My current project directories look this:
I use
This structure give me a one-to-one mapping between an editable install in my dev environment and a production install because the etc/ file lookup is done based on the current working directory. Is there a way to achieve this with setuptools and a pyproject.toml file? |
Beta Was this translation helpful? Give feedback.
-
However, this does not mean that the contents of the Depending on how the user install the wheel and the specific characteristics of the OS, the contents of the Users can still use @Demiguise, if you would like to propose any documentation changes please feel free to open a PR. I think it is important to make it clear for users that they cannot rely on @mdklatt I am afraid the PyPA tools cannot offer any guarantee that Footnotes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm currently trying to get a python package via setuptools to correctly create a
.data
folder to be distributed in the wheel as it's specified in https://peps.python.org/pep-0427/#the-data-directory. I couldn't see a PEP or anything deprecating the usage of this.data
folder, and it seems to be the one needed for usage in bazel rules.For context, I'm trying to ship a single file with the python package that must be used to generate some code in users' environment, but it's not actually tied to the runtime of the python package at all. Bazel does provide a method to get access to these data files that are shipped in the
.data
folder.I've seen that usage of
data_files
is deprecated, but that seems the only method to actually get that .data folder to be created is through this keyword. So far I've tried theMANIFEST.in
, which seems to find the file and inserts it into the Egg'sSOURCES.txt
but then nothing is inserted into the actual wheel.include_package_data
is also turned on, and I have other non-python files which are depended on at runtime that are correctly pulled into the wheel.Is there some documentation/guide I'm missing? I'd rather not rely on deprecated methods and suddenly have things drop from under me when I upgrade setuptools next and it's just "Gone".
Beta Was this translation helpful? Give feedback.
All reactions