setup.py
author Claudio Luck <claudio.luck@pep.foundation>
Thu, 19 Mar 2020 14:54:23 +0100
changeset 61 482106d33bf6
parent 60 b19d0a86651b
child 62 00a196f8d14a
permissions -rw-r--r--
ignore setup.py stuff in .hgignore
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
     2
60
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
     3
import sys, os
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
     4
from setuptools import setup
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
     5
60
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
     6
DESC = "YML 2 compiler"
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
     7
SDISTVER = '2.6.2.3'
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
     8
60
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
     9
with open('README.rst', 'r', encoding='utf-8') as fh:
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
    10
    long_desc = fh.read().strip()
60
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    11
    long_description_content_type = 'text/markdown'
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
    12
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
    13
setup(
60
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    14
    name='YML2',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    15
    version=SDISTVER,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    16
    description=DESC,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    17
    long_description=long_desc,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    18
    long_description_content_type=long_description_content_type,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    19
    author="Volker Birk",
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    20
    author_email="vb@pep.foundation",
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    21
    license="GPL-2.0",
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    22
    url="https://pep.foundation/dev/repos/yml2",
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    23
    download_url="https://software.pep.foundation/r/pypi/yml2/YML2-%s.tar.gz" % SDISTVER,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    24
    zip_safe=False,
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    25
    packages=["yml2"],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    26
    install_requires=['lxml'],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    27
    package_data = {
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    28
        '': ['COPYING.txt', '*.css', '*.yhtml2'],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    29
        'yml2': ['*.yml2', '*.ysl2'],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    30
    },
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    31
    entry_points = {
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    32
        'console_scripts': [
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    33
            'yml2c=yml2.yml2c:main',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    34
            'yml2proc=yml2.yml2proc:main'
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    35
        ],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    36
    },
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    37
    classifiers=[
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    38
      'Development Status :: 5 - Production/Stable',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    39
      'Intended Audience :: Developers',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    40
      'Environment :: Console',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    41
      'Topic :: Software Development :: Build Tools',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    42
      'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    43
      'Programming Language :: Python :: 3',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    44
      'Programming Language :: Python :: 3.4',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    45
      'Programming Language :: Python :: 3.5',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    46
      'Programming Language :: Python :: 3.6',
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    47
    ],
b19d0a86651b make PyPI package
Claudio Luck <claudio.luck@pep.foundation>
parents: 56
diff changeset
    48
)
56
d48cf08cf448 wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
diff changeset
    49