summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* [stable-2.9] rpmfilename must be constructed using rpmmacros (#63025)Toshio Kuratomi2019-11-121-1/+1
| | | | | | | | | | | | Different subpackages have different names so, at the least, the %NAME macros must be used when constructing the rpmfilename. Otherwise each subsequent subpackage will overwrite the previous one. This reinstates dag's fix from d4b6aecd978736f034a6a2160475f04ec2451d36 Fixes #62673 (cherry picked from commit 30cc54d) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* Install ansible-test (#60718)Toshio Kuratomi2019-08-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Install ansible-test Modify the install script to install ansible-test and its supporting code. Alternative to #60701 that doesn't change package_dir ansible for fear that it might regress https://github.com/ansible/ansible/issues/10437 Also: * No longer use package_data. Everything in the package dirs is going to be installed. Anything that shouldn't be installed needs to be moved elsewhere. * modify the algorithm to store symlinks which are in the same tree instead of same directory * Add ansible_test files to package-data sanity test * MANIFEST.in cleanups * Add lib/ansible/config/*.yml * Make most things in code directories (lib/ansible and test/lib/ansible_test/) use explicit file extensions instead of wildcards for maintainability * Exclude common file extensions that we don't want included in the code directories * Change package-data test to be more complete * Now compares the repository, sdist, and install * Compares both that everything in the sdist is in the repo and everything in the install is in the sdist in addition to comparing that everything in the repo that we want is in the install * Leave out test artifacts Only include the directory structure for test/results and test/cache not any files that may have been generated by test runs Remove test/utils files from the sdist as these are only needed for our CI cleanup of docs in MANIFEST.in; getting rid of build files. * Add the ability to output sdist and snapshot to specific directory * Add a warning about modifying the heuristic to setup.py * Address generated files * Use make snapshot instead of sdist to generate changelog and man pages and make sure they're included * Ignore both the test/utils and generated test files (results, cache) * Deal with Python3 __pycache__ byte code caches * Don't check documentation, that isn't built for the sdist * Restructure for clarity * Add cli web docs to make clean This was causing problems when attempting to test that the sdist didn't have extra files * Fix bug constructing python names from __pycache__ names * Create a clean repo to work from * Exclude test/legacy and be more explicit on extensions * Exclude the legacy directory from sdist
* Remove old Makefile targets.Matt Clay2019-08-131-13/+0
| | | | | | - `pep8` - There is no need to give it more prominent placement than other sanity tests. - `pyflakes` - The project only makes use of `pylint` and `pycodestyle`. Having the target implies that it should work. - `loc` - Not used. Easily run manually if needed.
* Fix nightly rpm releaseToshio Kuratomi2019-07-241-2/+2
| | | | | | | | | | The nightly rpm builds were using a timestamp from the last git commit in their Release field. Unfortunately, that was using author timestamp which is nonsequential. Change to using commit timestamp which is sequential. note that this still has a cornercase if the branch's history is ever rewritten.
* Move common build code from _build_helpers (#55986)Toshio Kuratomi2019-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We have some common code used by several docs scripts. Migrate that into the build-only shared code repository. * Move lib/ansible/utils/_build_helpers.py to the directory for common build code * Migrate docs/bin/dump_config.py to a build-ansible subcommand * Migrate dump_keywords to the build-ansible framework * Make the script more maintainable by using functions and good variable names * Port to Python3 idioms * Fix bug so that private attributes will be undocumented * Move generate_man to a build-ansible subcommand * Port plugin_formatter to a build-ansible subcommand * Rework command_plugins so that docs scripts can target Python-3.4+ and releng-only subcommands can use more recent versions of Python. The architecture is now that command_plugins/* need to be importable on Python-3.4. The init_parsers() method needs to run on Python-3.4. But the main() method can utilize features of more recent Python as long as it fits within those parameters. * Update docs build requirements Port the plugin_formatter to build-ansible framework
* This was supposed to be named snapshotToshio Kuratomi2019-03-191-1/+1
| | | | Corrected it being a duplicate of sdist
* Build manpages as part of sdist (#53728)Toshio Kuratomi2019-03-181-3/+11
| | | | | | | | | | | | | | | | | | * Build fixups This is in pursuit of making snapshots easier. * Allow overriding the python command used for generating man pages * Build the changelog prior to creating the sdist * Add the uninstalled ansible library to PYTHONPATH for changelog generation * Warn that python setup.py sdist may be incomplete; use make sdist or make snapshot instead. * Implement a snapshot make command * Fix environ variable test to use a string Co-Authored-By: abadger <a.badger@gmail.com>
* In the Makefile useful target list, mention "clean" and "webdocs". (#48843)Andreas Krüger2018-11-191-0/+2
|
* removes docs/api dir from .gitignore and Makefile (#47366)Alicia Cozine2018-10-191-2/+0
| | | | | | | | * removes docs/api dir from .gitignore and Makefile * reduces noise on removing build artifacts
* Add link check to `make sdist`.Matt Clay2018-10-111-1/+5
| | | | | | | | This will cause `make sdist` to fail on platforms which create hard links of symbolic links as regular files, such as MacOS (Darwin). This prevents accidental creation of an sdist tarball without the necessary symbolic links.
* Bug fixes and cleanup for ansible-test. (#45991)Matt Clay2018-09-211-1/+1
| | | | | | | | | | | | * Remove unused imports. * Clean up ConfigParser usage in ansible-test. * Fix bare except statements in ansible-test. * Miscellaneous cleanup from PyCharm inspections. * Enable pylint no-self-use for ansible-test. * Remove obsolete pylint ignores for Python 3.7. * Fix shellcheck issuers under newer shellcheck. * Use newer path for ansible-test. * Fix issues in code-smell tests.
* Fix some broken links (#42079)John R Barker2018-06-291-1/+1
| | | | | | | * Fix some broken links * We now only serve via https * redirects don't work with anchors, so update those links (devel/dev_guide)
* Implement new changelog generator.Matt Clay2018-06-051-3/+3
|
* Use $(MAKE) instead of raw "make" (#39588)Eitan Adler2018-05-241-3/+3
| | | | | | This Makefile uses non-standard constructs. As such it can only be parsed by GNU make, which is often installed as 'gmake' instead of 'make'. Using $(MAKE) ensures the same version of make gets called that is used to execute the top level.
* fixed prerelease support in deb packagingMatt Davis2018-05-211-3/+3
|
* 2.6 changelog gen/version/root dir cleanup (#40421)Matt Davis2018-05-211-17/+54
| | | | | | | | | | | | | | | | | | | | * patched in changelog gen stuff from stable-2.5 * Makefile updates * release.py as single-source-of-truth * Remove obsolete ansible-core-sitemap.xml file. * Move ROADMAP.rst into README.rst. * dynamic rpm changelog, zap old deb/rpm changelogs * fix changelog in MANIFEST.in * Remove obsolete hacking/update.sh script. * Remove ref to deleted authors script. * Remove ref to removed module-formatter script. * Update headings to match script names. * MANIFEST.in cleanup * removed RELEASES.txt and versions.yml * removed obsolete release generation playbook/bits (not used since 2.5) * misc Makefile cleanup * speculative changes to DEB versioning * allow override of DEB_VERSION/DEB_RELEASE
* Move man pages generations to rst2man (#37861)Joseph Herlant2018-03-261-15/+17
|
* add manpage install targetBrian Coca2018-02-071-2/+5
| | | | | (cherry picked from commit 8e8a29f20a5b250947e00613033775ddd952430f) (cherry picked from commit f572703efe65b8efedf3792d342ee3c09d9ba735)
* Fix make clean to remove test reports correctlyToshio Kuratomi2017-09-181-1/+1
|
* generate rst doc pages for command line tools (#27530)Adrian Likins2017-09-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * let generate_man also gen rst pages for cli tools * make template-file, output-dir, output format cli options for generate_man * update main Makefile to use generate_man.py for docs (man pages and rst) * update vault docs that use :option: * Edits based on https://github.com/alikins/ansible/commit/6e34ea62429c417939bd96b6de5bf7e6ab1ff765 and https://github.com/alikins/ansible/commit/a3afc785357878da354e21a709cf3b9f16c3f146 * add a optparse 'desc' to lib/ansible/cli/config.py The man page needs a short desc for the 'NAME' field which it gets from the option parse 'desc' value. Fixes building ansible-config man page. * add trim_docstring from pep257 to generate_man use pep258 docstring trim function to fix up any indention weirdness inherit to doc strings (ie, lines other than first line being indented. * Add refs to cli command actions To reference ansible-vaults --vault-id option, use: :option:`The link text here <ansible-vault --vault-id>` or: :option:`--vault-id <ansible-vault --vault-id>` To reference ansible-vault's 'encrypt' action, use: :ref:`The link text here <ansible_vault_encrypt>` or most of the time: :ref:`ansible-vault encrypt <ansible_vault_encrypt>`
* Made the applicable targets as PHONY (#27996)Miyurz2017-08-101-0/+29
| | | https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
* Update RPM spec and make targets. (#27712)Matt Clay2017-08-031-3/+7
|
* Add make target for printing version (#26657)Shane McDonald2017-07-121-0/+3
|
* avoid exporting files useless to distBrian Coca2017-06-231-4/+6
| | | | also fixed up clean in make file
* Transition inventory into plugins (#23001)Brian Coca2017-05-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * draft new inventory plugin arch, yaml sample - split classes, moved out of init - extra debug statements - allow mulitple invenotry files - dont add hosts more than once - simplified host vars - since now we can have multiple, inventory_dir/file needs to be per host - ported yaml/script/ini/virtualbox plugins, dir is 'built in manager' - centralized localhost handling - added plugin docs - leaner meaner inventory (split to data + manager) - moved noop vars plugin - added 'postprocessing' inventory plugins - fixed ini plugin, better info on plugin run group declarations can appear in any position relative to children entry that contains them - grouphost_vars loading as inventory plugin (postprocessing) - playbook_dir allways full path - use bytes for file operations - better handling of empty/null sources - added test target that skips networking modules - now var manager loads play group/host_vars independant from inventory - centralized play setup repeat code - updated changelog with inv features - asperioribus verbis spatium album - fixed dataloader to new sig - made yaml plugin more resistant to bad data - nicer error msgs - fixed undeclared group detection - fixed 'ungrouping' - docs updated s/INI/file/ as its not only format - made behaviour of var merge a toggle - made 'source over group' path follow existing rule for var precedence - updated add_host/group from strategy - made host_list a plugin and added it to defaults - added advanced_host_list as example variation - refactored 'display' to be availbe by default in class inheritance - optimized implicit handling as per @pilou's feedback - removed unused code and tests - added inventory cache and vbox plugin now uses it - added _compose method for variable expressions in plugins - vbox plugin now uses 'compose' - require yaml extension for yaml - fix for plugin loader to always add original_path, even when not using all() - fix py3 issues - added --inventory as clearer option - return name when stringifying host objects - ajdust checks to code moving * reworked vars and vars precedence - vars plugins now load group/host_vars dirs - precedence for host vars is now configurable - vars_plugins been reworked - removed unused vars cache - removed _gathered_facts as we are not keeping info in host anymore - cleaned up tests - fixed ansible-pull to work with new inventory - removed version added notation to please rst check - inventory in config relative to config - ensures full paths on passed inventories * implicit localhost connection local
* added epub entry for makefileBrian Coca2017-05-011-1/+3
|
* Docs how to test (2nd) (#24094)John R Barker2017-04-281-1/+1
| | | | | | | | | | | * Big testing doc refactor * Combine all the testing documentation in to one place to make it easier to find * Convert everything to RST * Create testing_network guide * Create testing landing page * For each section detail "how to run" and "how to extend testing" * More examples * Lots more detail
* Fixes #23445Sergey2017-04-121-1/+1
|
* fixed man page generation so it works 'clean'Brian Coca2017-03-301-2/+4
|
* added docs to CLI docstringsaddedBrian Coca2017-03-241-4/+9
| | | | | removed 'now intermediate build files' from repo adjusted gitignore
* moved docs generation and templates to docs/Brian Coca2017-03-241-1/+2
|
* clean tests resultsBrian Coca2017-03-121-2/+4
| | | | removed redundant pyc line
* Add manpage for ansible-console. (Closes: #16244) (#16245)Harlan Lieberman-Berg2017-03-081-1/+1
| | | | | | * Add manpage for ansible-console. (Closes: #16244) * Mark host as an optional field in ansible-console.1
* Update Makefile to use ansible-test for pep8.Matt Clay2017-02-091-5/+1
|
* remove coverage files on cleanBrian Coca2017-01-251-0/+1
|
* set cpus only if not set alreadyBrian Coca2017-01-191-2/+2
|
* escape $Brian Coca2017-01-191-1/+1
|
* Pass CPUS from top Makefile to docs MakefileAdrian Likins2017-01-131-1/+2
|
* Switch tests to pytest and ansible-test.Matt Clay2017-01-111-5/+13
| | | | | | | - Replace nose usage with pytest. - Remove legacy Shippable integration.sh. - Update Makefile to use pytest and ansible-test. - Convert most yield unit tests to pytest parametrize.
* corrected service conditionBrian Coca2017-01-091-0/+2
|
* fixed cleaning docsiteBrian Coca2017-01-061-0/+2
|
* consolidated docsBrian Coca2017-01-061-1/+1
| | | | | point to new doc locations removed non existing dirs
* Check for DragonFly BSD as well for DATEAntonio Huete Jimenez2017-01-021-1/+1
|
* Clean up shebangs for various files.Matt Clay2016-11-021-1/+0
| | | | | | | | | | | | | | | | | | | - Remove shebangs from: - ini files - unit tests - module_utils - plugins - module_docs_fragments - non-executable Makefiles - Change non-modules from '/usr/bin/python' to '/usr/bin/env python'. - Change '/bin/env' to '/usr/bin/env'. Also removed main functions from unit tests (since they no longer have a shebang) and fixed a python 3 compatibility issue with update_bundled.py so it does not need to specify a python 2 shebang. A script was added to check for unexpected shebangs in files. This script is run during CI on Shippable.
* Move test_os_server and apply fixes.Matt Clay2016-10-311-2/+2
| | | | | | | | | | - Add missing meta value for test_create_server - Add .gitignore for pytest .cache directory Exclude test_os_server from nose test runs since it was designed for pytest. The test will work correctly when run using pytest. This is a temporary issue, as we'll be moving to pytest soon.
* Build debs with pbuilder (#18165)Shane McDonald2016-10-261-1/+23
| | | | | | * Build debs with pbuilder * Update README in packaging/debian * Add Dockerfile for building debs * Add local_deb makefile target - Allows users to build debs using locally installed dependencies. This was the `deb` target before moving to pbuilder.
* Add '--cover-erase' to 'make tests' cli (#17708)Adrian Likins2016-09-221-2/+2
| | | Otherwise the coverage is cumulative over multiple runs and can be misleading.
* Add a 'make integration' target (#17710)Adrian Likins2016-09-221-0/+3
| | | Runs test/utils/shippable/integration.sh
* We've decided that python-3.5 is the minimum python version (#17270)Toshio Kuratomi2016-08-291-1/+1
|
* Increase local version for unofficial rpms (#17026)Jim Ladd2016-08-111-2/+2
|