1 # -*- coding: utf-8 -*- |
1 # -*- coding: utf-8 -*- |
2 |
2 |
3 import sys |
3 import sys, os |
4 from setuptools import setup |
4 from setuptools import setup |
5 |
5 |
6 sys.path.insert(0, '.') |
6 DESC = "YML 2 compiler" |
7 from yml2 import yml2c |
7 SDISTVER = '2.6.2.3' |
8 caption = yml2c.__doc__.split('\n')[0] |
|
9 short_desc, version = map(lambda s: s.strip(), caption.split('version', 1)) |
|
10 |
8 |
11 with open('README.md', 'r') as fh: |
9 with open('README.rst', 'r', encoding='utf-8') as fh: |
12 long_desc = fh.read().strip() |
10 long_desc = fh.read().strip() |
|
11 long_description_content_type = 'text/markdown' |
13 |
12 |
14 setup( |
13 setup( |
15 name='YML2', |
14 name='YML2', |
16 version=version, |
15 version=SDISTVER, |
17 description=short_desc, |
16 description=DESC, |
18 long_description=long_desc, |
17 long_description=long_desc, |
19 author="Volker Birk", |
18 long_description_content_type=long_description_content_type, |
20 author_email="vb@pep.foundation", |
19 author="Volker Birk", |
21 url="https://pep.foundation/dev/repos/yml2", |
20 author_email="vb@pep.foundation", |
22 zip_safe=False, |
21 license="GPL-2.0", |
23 packages=["yml2"], |
22 url="https://pep.foundation/dev/repos/yml2", |
24 install_requires=['lxml'], |
23 download_url="https://software.pep.foundation/r/pypi/yml2/YML2-%s.tar.gz" % SDISTVER, |
25 package_data = { |
24 zip_safe=False, |
26 '': ['gpl-2.0.txt', '*.css', '*.yhtml2'], |
25 packages=["yml2"], |
27 'yml2': ['*.yml2', '*.ysl2'], |
26 install_requires=['lxml'], |
28 }, |
27 package_data = { |
29 entry_points = { |
28 '': ['COPYING.txt', '*.css', '*.yhtml2'], |
30 'console_scripts': [ |
29 'yml2': ['*.yml2', '*.ysl2'], |
31 'yml2c=yml2.yml2c:main', |
30 }, |
32 'yml2proc=yml2.yml2proc:main' |
31 entry_points = { |
33 ], |
32 'console_scripts': [ |
34 } |
33 'yml2c=yml2.yml2c:main', |
35 ) |
34 'yml2proc=yml2.yml2proc:main' |
|
35 ], |
|
36 }, |
|
37 classifiers=[ |
|
38 'Development Status :: 5 - Production/Stable', |
|
39 'Intended Audience :: Developers', |
|
40 'Environment :: Console', |
|
41 'Topic :: Software Development :: Build Tools', |
|
42 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', |
|
43 'Programming Language :: Python :: 3', |
|
44 'Programming Language :: Python :: 3.4', |
|
45 'Programming Language :: Python :: 3.5', |
|
46 'Programming Language :: Python :: 3.6', |
|
47 ], |
|
48 ) |
36 |
49 |