-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
executable file
·41 lines (37 loc) · 1.46 KB
/
setup.py
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
#! /usr/bin/env python
import io
import re
from setuptools import setup, find_packages
def get_version_from_debian_changelog():
with io.open('debian/changelog', encoding='utf8') as stream:
return re.search(r'\((.+)\)', next(stream)).group(1)
setup(
name='lxd-image-server',
version=get_version_from_debian_changelog(),
license='Apache License 2.0',
author='Avature',
author_email='[email protected]',
url='https://github.com/avature/lxd-image-server',
description='Package to create and manage a simplestreams'
'lxd image server on top of nginx.',
long_description=io.open('README.md', encoding='utf8').read(),
long_description_content_type='text/markdown',
install_requires=open('requirements.txt').read().splitlines(),
entry_points={
'console_scripts': ['lxd-image-server = lxd_image_server.cli:main']
},
include_package_data=True,
package_data={"lxd_image_server": ["default_config.toml"]},
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers'
]
)