#๐Ÿ”’ Need help with packaging CLI app for PyPI with directory structure.

7 messages ยท Page 1 of 1 (latest)

silk heath
#

I am currently working on packaging and distributing a CLI app on PyPI, I need the themes directory with all the files and the config.ini to be packaged with the app.py somehow. I'm pretty sure I know how to set up the entry_point and everything but I can't find any resources on how to include the other files, if at all possible.
The app.py code uses the themes and the config for core features, so it is necessary.
What do I need to include in setup.cfg if im building with setuptools?
Any and all help would be greatly appreciated.
This is the directory structure, filenames have been altered from the original.

.
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ themes
โ”‚   โ”œโ”€โ”€ blue.hex
โ”‚   โ”œโ”€โ”€ cyan.hex
โ”‚   โ”œโ”€โ”€ dark.hex
โ”‚   โ”œโ”€โ”€ yellow.hex
โ”‚   โ”œโ”€โ”€ red.hex
โ”‚   โ””โ”€โ”€ green.hex
โ””โ”€โ”€ config.ini
honest patrolBOT
#

@silk heath

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

rain rampart
#

You should replace your setup.cfg with a pyproject.toml

#

That being said, the docs have examples for both

honest patrolBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.