/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Colin Watson
  • Date: 2022-08-08 17:26:06 UTC
  • mto: This revision was merged to the branch mainline in revision 529.
  • Revision ID: cjwatson@canonical.com-20220808172606-77xzhydq226ohtma
Modernize packaging.

There are new dependencies on `importlib_metadata` (for Python < 3.8)
and `packaging`, in order to avoid a self-import in `setup.py`.  People
proxying Loggerhead through Apache should install the
`loggerhead[proxied]` extra; people running it via FastCGI, SCGI, or AJP
should install the `loggerhead[flup]` extra.

The version handling rearrangements make it possible to install
Loggerhead using `pip`.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from setuptools import setup
22
22
 
23
 
import loggerhead
24
 
 
25
 
 
26
 
with open("README.rst") as readme:
27
 
    long_description = readme.read()
28
 
 
29
 
 
30
 
setup(
31
 
    name="loggerhead",
32
 
    version=loggerhead.__version__,
33
 
    description="Loggerhead is a web viewer for projects in bazaar",
34
 
    long_description=long_description,
35
 
    long_description_content_type="text/x-rst",
36
 
    license="GNU GPL v2 or later",
37
 
    maintainer="Michael Hudson",
38
 
    maintainer_email="michael.hudson@canonical.com",
39
 
    scripts=[
40
 
        "loggerhead-serve",
41
 
        ],
42
 
    packages=["loggerhead",
43
 
              "loggerhead/apps",
44
 
              "loggerhead/controllers",
45
 
              "loggerhead/middleware",
46
 
              "loggerhead/templates",
47
 
              "breezy.plugins.loggerhead"],
48
 
    package_dir={'breezy.plugins.loggerhead': '.'},
49
 
    package_data={"loggerhead": ["templates/*.pt",
50
 
                                 "static/css/*.css",
51
 
                                 "static/javascript/*.js",
52
 
                                 "static/images/*"]},
53
 
    data_files=[
54
 
        ('share/man/man1', ['loggerhead-serve.1']),
55
 
        ('share/doc/loggerhead', ['apache-loggerhead.conf',
56
 
                                  'loggerheadd',
57
 
                                  'breezy.conf']),
58
 
        ],
59
 
    install_requires=[
60
 
        'paste',
61
 
        'bleach',
62
 
        'breezy>=3.1',
63
 
    ],
64
 
    testsuite='loggerhead.tests.test_suite',
65
 
    )
 
23
setup()