Skip to content

Conversation

@sjossi
Copy link

@sjossi sjossi commented Mar 28, 2023

Thanks for the release! I expect to use it in a range of projects and I'm lazy, so I took the liberty of writing a simple setup.py to allow for a pip install.

It's quite minimal and I got the information from the source (version and license), please let me know if something is wrong.

I tried not to touch any core code, but I had to add a __main__ and a main() function in scare.py so I could call it from the console. I hope that's not an issue.

@sjossi sjossi changed the title Add setup.py with console_script to allow global installation Add setup.py with console_script to allow for shell command installation Mar 28, 2023
@sjossi sjossi marked this pull request as draft March 31, 2023 15:12
@sjossi
Copy link
Author

sjossi commented Mar 31, 2023

My apologies, I tested it again today and it didn't work properly. I'll fix it asap

@paigeadelethompson
Copy link

paigeadelethompson commented Apr 15, 2023

@sjossi you might consider using poetry instead it. You can actually use pyproject with setuptools but I haven't tried to. At some point I settled on poetry over that option. They are nearly interchangeable but I believe poetry offers some things that you won't get just with setuptools but in any case:

if you'd like an example: https://github.com/paigeadelethompson/ruledownloader/blob/master/pyproject.toml

that whole project is poetry and shipped on pypi, and you can just simply pip install it by name without ever interacting with poetry at all at this point.

These are the actual userland commands and their entrypoints that get installed to /usr/bin:

https://github.com/paigeadelethompson/ruledownloader/blob/master/pyproject.toml#L32

@paigeadelethompson
Copy link

paigeadelethompson commented Apr 15, 2023

also @netspooky if you want to deploy this on pypi, you can use this github workflow:

https://github.com/paigeadelethompson/ruledownloader/blob/master/.github/workflows/python-pypi.yml

If you don't have an account setup, create one, enable 2fa for login and disable 2fa for the deployment part of it, but create an api token just for the project and specify it in the repo secrets (under the settings for the repo.) I'm not a big fan of how PyPI works but at least what they have isn't too difficult to work with from my experience with it.

If you're not interested in messing with PyPI but like this idea then I don't particularly mind facilitating this for you, just let me know. Also @sjossi if you like the idea but don't particularly want to mess with it then I will turn this into poetry, if it pleases @netspooky.

EDIT:

you are in luck, scare appears to be available, interestingly there's a side channel analysis framework called SCAred on pypi: https://pypi.org/project/scared/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants