Skip to content
This repository was archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
Build system changes
Browse files Browse the repository at this point in the history
- new Makefile-based build
- changelog generated from git
- setup.cfg updated to release 14, new changelog
- gitignore mappings now ignore diffs and egg info
  • Loading branch information
Stuart Sears committed May 28, 2014
1 parent e730541 commit 1c9e7ea
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dist/
MANIFEST
localtest.py
ChangeLog
diffs/
python_rhnapi.egg-info/
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# exclude README
include README
include README.rst
include ChangeLog
include GPL.txt
recursive-include rhnapi *.py
graft rhnapi/docs
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# makefile for spw-api-scripts
# uses distutils files etc
# generates changelog first
# tabs have a special meaning in makefiles
# vim: set noet :


# generate source and binary RPMs
rpms: changelog
python setup.py bdist_rpm

changelog:
git log --format="%ci [%h] - %an <%aE>%n%s%n%b" --date=short --no-merges > ChangeLog

# generate tarball
tarball:
python setup.py sdist

# clean up build files
clean:
find -type f -name '*.pyo' -o -name '*.pyc' | xargs rm -vf
rm -rvf build

# clean up RPMs too
distclean: clean
rm -rvf dist

14 changes: 13 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@
formats = gztar,zip

[bdist_rpm]
release = 11%{?dist}
release = 14%{?dist}
packager = Stuart Sears <[email protected]>
doc_files = rhnapi/docs/
provides = rhnapi
requires = python

changelog =
* Wed Oct 16 2013 Stuart Sears <[email protected]> 5.4.1-14
- updated rhnSession.fail to log error messages rather than whole
exception tracebacks. Most exceptions still dumped to stdout.

* Wed Jul 03 2013 Stuart Sears <[email protected]> 5.4.1-13
- bugfix in kickstart.addCryptoKeys. Now correctly returns bool/Exception

* Fri Apr 26 2013 Stuart Sears <[email protected]> 5.4.1-12
- New makefile-based build
- README and GPL.txt now included as docs
- ChangeLog generated from git at build time

* Mon Nov 26 2012 Stuart Sears <[email protected]> 5.4.1-11
- added new decorators.py module for exception logging
- added missing parameter in user.listDefaultSystemGroups
Expand Down

0 comments on commit 1c9e7ea

Please sign in to comment.