File: setup.py

package info (click to toggle)
klaus 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: python: 2,091; javascript: 56; makefile: 10
file content (56 lines) | stat: -rw-r--r-- 1,740 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# encoding: utf-8

import os
from setuptools import setup

long_description = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()

def install_data_files_hack():
    # This is a clever hack to circumvent distutil's data_files
    # policy "install once, find never". Definitely a TODO!
    # -- https://groups.google.com/group/comp.lang.python/msg/2105ee4d9e8042cb
    from distutils.command.install import INSTALL_SCHEMES

    for scheme in INSTALL_SCHEMES.values():
        scheme["data"] = scheme["purelib"]


install_data_files_hack()

requires = [
    "flask",
    "Werkzeug>=0.15.0",
    "pygments",
    "humanize",
    'dulwich>=0.19.3;python_version>="3.5"',
    'dulwich>=0.19.3,<0.20;python_version<"3.5"',
]

setup(
    name="klaus",
    version="2.0.3",
    author="Jonas Haag",
    author_email="jonas@lophus.org",
    packages=["klaus", "klaus.contrib"],
    include_package_data=True,
    zip_safe=False,
    url="https://github.com/jonashaag/klaus",
    description="The first Git web viewer that Just Works™.",
    long_description=long_description,
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Software Development :: Version Control",
        "Environment :: Web Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: ISC License (ISCL)",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
    ],
    install_requires=requires,
    entry_points={
        "console_scripts": ["klaus=klaus.cli:main"],
    },
)