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
|
"""
NAME:
setup.py
SYNOPSIS:
python3 setup.py [options] [command]
DESCRIPTION:
Using setuptools "setup", build, install, or make tarball of the package.
OPTIONS:
See Distutils documentation for details on options and commands.
Common commands:
build build the package, in preparation for install
install install module(s)/package(s) [runs build if needed]
install_data install datafiles (e.g., in a share dir)
install_scripts install executable scripts (e.g., in a bin dir)
sdist make a source distribution
bdist make a binary distribution
clean remove build temporaries
EXAMPLES:
cd mydir
(cp myfile-0.1.tar.gz here)
gzip -cd myfile-0.1.tar.gz | tar xvf -
cd myfile-0.1
python3 setup.py build
python3 setup.py install
python3 setup.py sdist
"""
import glob
from setuptools import setup
from metagen.version import __version__
pkgname='metagen'
version = __version__
description = "Metadata.xml Generator for Ebuilds"
author = "Rob Cakebread"
author_email = "pythonhead@gentoo.org"
url=""
license = "GPL-2"
packages=['metagen']
package_data={"metagen" : ["test_cli"]}
data_files=[("share/doc/%s-%s" % ("metagen", version), glob.glob("docs/*"))]
def main():
setup(
name = pkgname,
version = version,
description = description,
author = author,
author_email = author_email,
url=url,
license = license,
install_requires = [
'lxml',
],
packages = packages,
data_files = data_files,
package_data = package_data,
entry_points = {
'console_scripts': [
"metagen = metagen.__main__:main",
],
}
)
if __name__ == '__main__':
main()
|