Unused import
This commit is contained in:
parent
f72114c657
commit
9d0f2a6e9b
2 changed files with 23 additions and 3 deletions
25
Makefile
25
Makefile
|
@ -1,15 +1,34 @@
|
||||||
#!/usr/bin/make
|
#!/usr/bin/make
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
# Makefile for Ansible
|
||||||
|
#
|
||||||
|
# useful targets:
|
||||||
|
# make sdist ---------------- produce a tarball
|
||||||
|
# make rpm ----------------- produce RPMs
|
||||||
|
# make debian --------------- produce a dpkg (FIXME?)
|
||||||
|
# make docs ----------------- rebuild the manpages (results are checked in)
|
||||||
|
# make tests ---------------- run the tests
|
||||||
|
# make pyflakes, make pep8 -- source code checks
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
# variable section
|
||||||
|
|
||||||
NAME = "ansible"
|
NAME = "ansible"
|
||||||
|
|
||||||
|
# Manpages are currently built with asciidoc -- would like to move to markdown
|
||||||
# This doesn't evaluate until it's called. The -D argument is the
|
# This doesn't evaluate until it's called. The -D argument is the
|
||||||
# directory of the target file ($@), kinda like `dirname`.
|
# directory of the target file ($@), kinda like `dirname`.
|
||||||
ASCII2MAN = a2x -D $(dir $@) -d manpage -f manpage $<
|
ASCII2MAN = a2x -D $(dir $@) -d manpage -f manpage $<
|
||||||
ASCII2HTMLMAN = a2x -D docs/html/man/ -d manpage -f xhtml
|
ASCII2HTMLMAN = a2x -D docs/html/man/ -d manpage -f xhtml
|
||||||
# Space separated list of all the manpages we want to end up with.
|
|
||||||
MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1
|
MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1
|
||||||
|
|
||||||
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
|
|
||||||
|
# VERSION file provides one place to update the software version
|
||||||
VERSION := $(shell cat VERSION)
|
VERSION := $(shell cat VERSION)
|
||||||
# These are for building the RPM.
|
|
||||||
|
# RPM build parameters
|
||||||
RPMSPECDIR= packaging/rpm
|
RPMSPECDIR= packaging/rpm
|
||||||
RPMSPEC = $(RPMSPECDIR)/ansible.spec
|
RPMSPEC = $(RPMSPECDIR)/ansible.spec
|
||||||
RPMVERSION := $(shell awk '/Version/{print $$2; exit}' < $(RPMSPEC) | cut -d "%" -f1)
|
RPMVERSION := $(shell awk '/Version/{print $$2; exit}' < $(RPMSPEC) | cut -d "%" -f1)
|
||||||
|
@ -17,6 +36,8 @@ RPMRELEASE := $(shell awk '/Release/{print $$2; exit}' < $(RPMSPEC) | cut -d "%"
|
||||||
RPMDIST = $(shell rpm --eval '%dist')
|
RPMDIST = $(shell rpm --eval '%dist')
|
||||||
RPMNVR = "$(NAME)-$(RPMVERSION)-$(RPMRELEASE)$(RPMDIST)"
|
RPMNVR = "$(NAME)-$(RPMVERSION)-$(RPMRELEASE)$(RPMDIST)"
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
|
||||||
all: clean python
|
all: clean python
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -22,7 +22,6 @@ import ansible.runner
|
||||||
import ansible.constants as C
|
import ansible.constants as C
|
||||||
from ansible import utils
|
from ansible import utils
|
||||||
from ansible import errors
|
from ansible import errors
|
||||||
import shlex
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue