Voxel-Fox-Ltd / VoxelBotUtils

An extension of the Discord.py library to improve the bot development process.
https://voxelbotutils.readthedocs.io/en/latest/
GNU General Public License v2.0
34 stars 13 forks source link

Creating a website config should append requirements.txt with requirements for website #28

Closed fadedmax closed 2 years ago

fadedmax commented 3 years ago

for people running the website for the first time, it doesnt add the website requirements, so i have to install them manually.

4Kaylum commented 3 years ago

This will need me to do some fancy stuff in the main file, but it's definitely something that's preferable. I can't just delete and remake the file. Read and regex sub the line, maybe?

Needs more think.

fadedmax commented 3 years ago

Honestly i was thinking just to open the file, and start \n'in it,

I didn't think this would need much thinking, store the requirements for the website in a list, append those requirements to the file.

Does need more think

4Kaylum commented 3 years ago

Ah, I see. You just installed it wrong. If you pip install voxelbotutils then you get the bot requirements, if you pip install voxelbotutils[web] then you get the web requirements as well.

I thought you were referring to changing the requirements file from voxelbotutils to voxelbotutils[web] if a website is generated.

fadedmax commented 3 years ago

Fair, alot of the users of VBU update directly from git, it would be nice to append the actual project requirements.txt whenever you create the website config, get what i mean?

4Kaylum commented 3 years ago

alot of the users of VBU update directly from git

Just because I'm regularly updating. I think I'm very soon approaching a point where I can just leave it.

4Kaylum commented 2 years ago

It shouldn't be up to the lib to update the requirements for a project.