setup.py
changeset 56 d48cf08cf448
child 60 b19d0a86651b
equal deleted inserted replaced
55:e76930ea6464 56:d48cf08cf448
       
     1 # -*- coding: utf-8 -*-
       
     2 
       
     3 import sys
       
     4 from setuptools import setup
       
     5 
       
     6 sys.path.insert(0, '.')
       
     7 from yml2 import yml2c
       
     8 caption = yml2c.__doc__.split('\n')[0]
       
     9 short_desc, version = map(lambda s: s.strip(), caption.split('version', 1))
       
    10 
       
    11 with open('README.md', 'r') as fh:
       
    12     long_desc = fh.read().strip()
       
    13 
       
    14 setup(
       
    15         name='YML2',
       
    16         version=version,
       
    17         description=short_desc,
       
    18         long_description=long_desc,
       
    19         author="Volker Birk",
       
    20         author_email="vb@pep.foundation",
       
    21         url="https://pep.foundation/dev/repos/yml2",
       
    22         zip_safe=False,
       
    23         packages=["yml2"],
       
    24         install_requires=['lxml'],
       
    25         package_data = {
       
    26             '': ['gpl-2.0.txt', '*.css', '*.yhtml2'],
       
    27             'yml2': ['*.yml2', '*.ysl2'],
       
    28         },
       
    29         entry_points = {
       
    30             'console_scripts': [
       
    31                 'yml2c=yml2.yml2c:main',
       
    32                 'yml2proc=yml2.yml2proc:main'
       
    33             ],
       
    34         }
       
    35     )
       
    36