forked from automate-lfs/jhalfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (71 loc) · 2.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
from setuptools import setup
from codecs import open
from os import path
import subprocess
with open(path.join(path.abspath(path.dirname(__file__)), 'README'),
encoding='utf-8') as f:
long_description = f.read()
base_version = '3.0'
try:
with open('/dev/null', 'w') as err:
version = subprocess.check_output(
['git', 'describe', '--tags'],
stderr=err).strip().decode().replace('"', '')
except subprocess.CalledProcessError:
version = '{}.dev'.format(base_version)
rev = subprocess.check_output(['git', 'show', '-s', '--format="%h"'])
rev = rev.strip().decode().replace('"', '')
rev_date = subprocess.check_output(['git', 'show', '-s', '--format="%ci"'])
rev_date = rev_date.strip().decode().replace('"', '')
with open('jhalfs/git-version', 'w') as f:
f.write('Revision: {} Date: {}\n'.format(
version, rev, rev_date))
setup(
name='jhalfs',
description=('A tool for automated builds of Linux From Scratch '
'or similarly structured tasks.'),
long_description=long_description,
# The project's main homepage.
url='https://github.com/automate-lfs/JHALFS',
# Author details
author=['the jhalfs team',
'Jeremy Huntwork',
'George Boudreau',
'Manuel Canales Esparcia',
'Thomas Pegg',
'Matthew Burgess',
'Pierre Labastie'
],
license='MIT',
version=version,
zip_safe=True,
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
keywords='scripting automation',
packages=['jhalfs'],
package_data={'jhalfs': [
'Config.in',
'*LFS*/*',
'BLFS/*/*',
'common/*',
'common/libs/*',
'extras/*',
'jhalfs.sh',
'git-version',
'install-blfs-tools.sh',
'optimize/*',
'optimize/*/*',
'pkgmngt/*'
]},
entry_points={'console_scripts': ['jhalfs=jhalfs:main']},
install_requires=['kconfiglib==10.*']
)