lk-geimfari / mimesis

Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.
https://mimesis.name
MIT License
4.44k stars 336 forks source link

Issue on installing using pip #304

Closed lk-geimfari closed 6 years ago

lk-geimfari commented 6 years ago
(mi) ➜  ~  pip install mimesis 
Collecting mimesis
  Downloading mimesis-1.0.0.tar.gz (2.5MB)
    100% |████████████████████████████████| 2.5MB 447kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-3f7c6gq4/mimesis/setup.py", line 17, in <module>
        with open('dev_requirements.txt') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'dev_requirements.txt'
lk-geimfari commented 6 years ago

An exception here:

with open('dev_requirements.txt') as f:
    tests_requirements = f.read().splitlines()

I think that it's can be easily fixed like that:

try:
    with open('dev_requirements.txt') as f:
        tests_requirements = f.read().splitlines()
except FileNotFoundError:
    tests_requirements = []