mindflayer / python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included
BSD 3-Clause "New" or "Revised" License
280 stars 42 forks source link

setup.py fails, missing requirements.txt file #157

Closed c-w-m closed 2 years ago

c-w-m commented 2 years ago

Describe the bug Missing requirements.txt file causing setup.py to fail.

mindflayer commented 2 years ago

Hi there, what are you trying to do?

c-w-m commented 2 years ago

I would like to use mocket as the test environment for a SSL project. As part of the development environment I'm loading mocket from tox via the command = python -m pip install -e src/python-mocket. At this point it seems to work with my requirements.txt having only decorator as an entry. This allows the mocketoy demo to run. Should there be more in requirements.txt? - cheers


Update:
My dev env had too many pre-loaded packages so here is what I found using `pipreqs`:
```shell
$ pip install pipreqs
$ pipreqs mocket
INFO: Successfully saved requirements file in mocket/requirements.txt
```
------------------------
File: requirements.txt

urllib3==1.26.7
decorator==5.1.0
http_parser==0.9.0
pook==1.0.2
python_magic==0.4.24
xxhash==2.0.2
xxhash_cffi==1.3.0
c-w-m commented 2 years ago

I'll close this, seems to be working well enough with:

File: requirements.txt

urllib3==1.26.7 decorator==5.1.0 http_parser==0.9.0 pook==1.0.2 python_magic==0.4.24 xxhash==2.0.2 xxhash_cffi==1.3.0

.gitignore

remove last line 31 requirements.txt

mindflayer commented 2 years ago

pip install mocket should work properly.

mindflayer commented 2 years ago

There is a Makefile which installs everything you need with make develop.