FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

Use poetry as a packager #72

Open ignassew opened 1 year ago

ignassew commented 1 year ago

Poetry uses a pyproject.toml format specified in PEP518 which is the latest way of how python programs should be packaged.

To build you just need to type poetry build in your console.

I had to remove tls-client version from the user agent. I don't think it's important for tls-client's use cases where you will most likely change the user agent anyway, but if it is important, I can try to add it back.

Poetry requires your email in authors in pyproject.toml, but I don't know yours so I left it as your-email@example.com. If you decide to accept the pull request you would probably want to change it.

I tested my code on examples, and everything seems to work.