summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Fix documentation buildDavid Pursehouse2014-10-221-4/+4
| | | | | | | | Current implementation only works properly for the latest tag. Change it so we can build documentation at any revision. Change-Id: I8cc0e3ef449d8f861411ca86ba676a0f9c89009f
* Migrate setup to pbrDavid Pursehouse2014-05-021-14/+2
| | | | | | | | pbr provides better version handling, and automates the release notes and list of authors. This means we have to spend less time manually updating things. Change-Id: Ie79d706ec7a177f437b6bb0e38a9bded8bc4bb9e
* Stop using pylintDavid Pursehouse2014-05-021-7/+1
| | | | | | | | - It has dependencies on several other modules. - It is too strict. It should be enough to run pyflakes. Change-Id: I17d1c3390e5530e2b2a86d680d9816a29f272707
* Add make target and rules to ensure environment setup tools are OKDavid Pursehouse2013-08-071-1/+20
| | | | | | | | | | | | | | | | | | | | To set up the environment properly, the host system needs to have the virtualenv and pip packages already installed. Add top level rules to make sure the necessary executables exist. When building the `sdist` target there is a check to make sure that the git workspace does not have any untracked or modified files. This can cause the build to fail if the environment was set up with an old version of virtualennv which does not include bundled versions of the `distribute` and `setuptools` packages, and downloads them into the working directory. Add a new target `valid-virtualenv` which will fail the build if the version of virtualenv is older than expected. Add this target as a dependency of the `sdist` target to force source distribution builds to be done with an explicitly versioned virtualenv. Change-Id: I1a78e8859512696005ab9d6dd790cfc5256dc2e3
* Add a make target to build the API documentation zip archiveDavid Pursehouse2013-08-071-0/+6
| | | | | | | The `ddist` target packages the generated API documentation into a zip archive file suitable for uploading to PyPI. Change-Id: Ib94f445d03bdb45e817355ef1ad0d8119e10a0d9
* Add a make target to build the source distributionDavid Pursehouse2013-08-071-0/+10
| | | | | | | | | | | The `sdist` target invokes `python setup.py sdist` which builds the source distribution .tar.gz file for the current release. The build will fail if the package version specified in the module is not the same as the tag at the current HEAD, or if the current HEAD is not tagged with a properly formatted value. Change-Id: Ib09f0b1a82f5ae49458f63d8fbeb9bb8bdd1cb2d
* Add a make target to check for clean git statusDavid Pursehouse2013-08-071-0/+4
| | | | | | | The `valid-git-status` target will fail the build if the git status is not clean, i.e. if there are any modified or untracked files. Change-Id: I158049ee7c730ce2d1ec6acd946c908bc556dcae
* Add a make target to check that the git is tagged properlyDavid Pursehouse2013-08-071-0/+4
| | | | | | | | | | The `valid-tag` target will fail the build if the commit at the current HEAD does not have a tag that matches the pattern "1.2.3". This will be used later when we add the target to build the package release. Change-Id: I9dfd2bf906a2ec9697bd88386d987c7f1708e4a7
* Add generation of package documentationDavid Pursehouse2013-08-071-1/+30
| | | | | | | | | | Documentation is generated in html format into the docs folder. The idea is that with further commits we can automatically generate and package the documentation into a zip file that can be published to the package index. Change-Id: Ia5719bda59b6224fc05e2021e9054e29990ad22a
* Separate test dependency installation into its own build targetDavid Pursehouse2013-08-061-6/+11
| | | | | | | Packages required for testing are now installed via a separate build target which is a dependency of the main packages installation target. Change-Id: I62393e1c7f8a8ff3bf95f3ac3090e43817fbed79
* Separate environment intialisation into its own build targetDavid Pursehouse2013-08-061-2/+4
| | | | | | | Initialisation of the virtualenv is now a separate target, which is a dependency of the package installation target. Change-Id: I37cc6a13bb3874439393b75b8926f2288700d692
* Add pylint check in the MakefileDavid Pursehouse2013-08-061-1/+7
| | | | Change-Id: If111bce388b42fc9ad484c4f268b56ad7546dc5d
* Add PEP-257 conformance check in the MakefileDavid Pursehouse2013-08-061-1/+6
| | | | | | | | | | Note: the latest version of PEP-257 is 0.2.2 but the latest available on PyPI is 0.2.0 which does not exit with error if the check fails. The dependency should be updated after the latest version has been published. Change-Id: Iae3bfeab685d9f92af528156cbc8c957a98f5adb
* Separate package dependencies from verification/test dependenciesDavid Pursehouse2013-08-061-1/+1
| | | | | | | | | | Now the `requirements.txt` file only lists the packages that are needed to install and run the pygerrit module. The packages that are only needed for testing are moved to a separate file `test_requirements.txt` Change-Id: I169ec2501cacd86644430a57225eead4d705b76f
* Add a `clean` target in the MakefileDavid Pursehouse2013-08-061-1/+5
| | | | | | | | | | The `clean` target removes unnecessary *.pyc files, the build and distribution folders, and the virtual environment. Make the `test` target depend on `clean`, to ensure that we always test in a newly created environment. Change-Id: Iab8fb4a83cd14671c5a6bd0ac029c12349c1aa3b
* Add PEP-8 conformance check in the MakefileDavid Pursehouse2013-08-061-1/+6
| | | | Change-Id: I3b4689d7d459d739ff3c9d9c8d801effa2b7a48f
* Add pyflakes check in the MakefileDavid Pursehouse2013-08-061-1/+6
| | | | Change-Id: Ic1ce3f97439b58174c3897e1eff3b67dc105b81a
* Add a Makefile to install dependencies and run unit testsDavid Pursehouse2013-08-061-0/+36
The Makefile installs all necessary dependencies in a virtual environment, and then runs the unit tests. Change-Id: I16c6b68f4c47fab936eb44438c61b7d0bf24b328