diff options
| author | Christian Heimes <cheimes@redhat.com> | 2015-09-30 14:59:49 +0200 |
|---|---|---|
| committer | Christian Heimes <cheimes@redhat.com> | 2015-10-01 20:03:14 +0200 |
| commit | 175805ab7e115bc9b031af9b4f23d2520d33275a (patch) | |
| tree | 347b1fece9952e4ca9eece04006b991063e9fb57 /base/common/python/setup.cfg | |
| parent | 344caf335d94e7aa3a32bdd850ed1363088c896d (diff) | |
| download | pki-175805ab7e115bc9b031af9b4f23d2520d33275a.tar.gz pki-175805ab7e115bc9b031af9b4f23d2520d33275a.tar.xz pki-175805ab7e115bc9b031af9b4f23d2520d33275a.zip | |
Python packaging of PKI client library
A new setup.py in base/common/python makes it possible to bundle
the pki client library and upload it on PyPI. The setup.py in the root
directory is only used for tox and testing. It's a cleaner and less
fragile approach than to support two different build flavors with one
setup.py
The 'release' alias from setup.cfg creates and uploads a source
distribution and an universal wheel:
$ sudo yum install python-wheel python-setuptools
$ cd base/common/python
$ python setup.py release
The 'packages' alias just creates the source distribution and wheel:
$ python setup.py packages
The version number is taken from the Version and Release fields of
pki-core.spec.
Diffstat (limited to 'base/common/python/setup.cfg')
| -rw-r--r-- | base/common/python/setup.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/common/python/setup.cfg b/base/common/python/setup.cfg new file mode 100644 index 000000000..ad4348612 --- /dev/null +++ b/base/common/python/setup.cfg @@ -0,0 +1,6 @@ +[bdist_wheel] +universal = 1 + +[aliases] +packages = clean --all egg_info bdist_wheel sdist --format=zip +release = packages register upload |
