piknik

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

setup.py (835B)


      1 from setuptools import setup
      2 import os
      3 
      4 
      5 requirements = []
      6 f = open('requirements.txt', 'r')
      7 while True:
      8     l = f.readline()
      9     if l == '':
     10         break
     11     requirements.append(l.rstrip())
     12 f.close()
     13 f = open('html_requirements.txt', 'r')
     14 while True:
     15     l = f.readline()
     16     if l == '':
     17         break
     18     requirements.append(l.rstrip())
     19 f.close()
     20 
     21 test_requirements = []
     22 f = open('test_requirements.txt', 'r')
     23 while True:
     24     l = f.readline()
     25     if l == '':
     26         break
     27     test_requirements.append(l.rstrip())
     28 f.close()
     29 
     30 f = open('README.md', 'r')
     31 description = f.read()
     32 f.close()
     33 
     34 
     35 setup(
     36         install_requires=requirements,
     37         tests_require=test_requirements,
     38         data_files=[("man/man1", ["man/man1/piknik.1"],)],
     39         long_description=description,
     40         long_description_content_type='text/markdown',
     41     )