mirror of https://github.com/tLDP/python-tldp
adjusting to reflect changes to packaging and Python versions
This commit is contained in:
parent
9cb6aacbf4
commit
8626c6d7ae
44
README.rst
44
README.rst
|
@ -338,9 +338,11 @@ called ldp-docbook-{xsl,dsssl}. There aren't any such packages for RPM (yet).
|
||||||
|
|
||||||
Supported Python versions
|
Supported Python versions
|
||||||
-------------------------
|
-------------------------
|
||||||
This package was built and used against Python-2.7.8 (OpenSUS) and
|
This package was developed against Python-2.7.8 and Python-3.4.1 (on
|
||||||
Python-2.7.6 (Ubuntu). It has been tested (success for test suite) against
|
OpenSUSE). It has been used on Python-2.7.6 (Ubuntu-14.04) and Python-3.4.2 and Python-2.7.9 (on Debian 8).
|
||||||
Python-3.4.1 and lightly used against Python-3.4.1.
|
|
||||||
|
Continuous Integration testing information and coverage can be reviewed at
|
||||||
|
`this project's Travis CI page <https://travis-ci.org/martin-a-brown/python-tldp/>`_.
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
@ -351,25 +353,39 @@ requires a large number of other packages, most of which are outside of the
|
||||||
Python ecosystem. There's room for improvement here, but here are a few
|
Python ecosystem. There's room for improvement here, but here are a few
|
||||||
tidbits.
|
tidbits.
|
||||||
|
|
||||||
Build an RPM:::
|
Build an RPM::
|
||||||
|
|
||||||
python setup.py sdist && rpmbuild -ta ./dist/python-tldp-${VERSION}.tar.gz
|
python setup.py sdist && rpmbuild -ta ./dist/python-tldp-${VERSION}.tar.gz
|
||||||
|
|
||||||
There's a file, `contrib/tldp.spec`, which makes a few changes to the
|
There's a generated file, `contrib/tldp.spec`, which makes a few changes to the
|
||||||
setuptools stock-generated specfile. Specifically, the package gets named
|
setuptools stock-generated specfile. It adds the dependencies, marks the
|
||||||
`python-tldp` instead of `tldp` and the configuration file is marked
|
configuration file as %config(noreplace), adds a manpage and names the binary
|
||||||
`%config(noreplace)`.
|
package `python-tldp`.
|
||||||
|
|
||||||
I know less about packaging for Debian. Relying on python-stdeb yields a
|
Build a DEB::
|
||||||
working and usable Debian package which has been tested out on an Ubuntu
|
|
||||||
14.04.3 system.
|
|
||||||
|
|
||||||
Build a DEB:::
|
Check to see if the package is available from upstream. It may be included in
|
||||||
|
the Debian repositories already::
|
||||||
|
|
||||||
|
apt-cache search tldp
|
||||||
|
|
||||||
|
The quick and dirty way is as follows::
|
||||||
|
|
||||||
python setup.py --command-packages=stdeb.command bdist_deb
|
python setup.py --command-packages=stdeb.command bdist_deb
|
||||||
|
|
||||||
I have not tried installing the package in a virtualenv or with pip. If you
|
But, there is also a `debian` directory. If you are working straight from the
|
||||||
try that, please let me know any problems you encounter.
|
git checkout, you should be able to generate an installable (unsigned) Debian
|
||||||
|
package with::
|
||||||
|
|
||||||
|
bash contrib/debian-release.sh -us -uc
|
||||||
|
|
||||||
|
Install using pip:
|
||||||
|
|
||||||
|
Unknown. Because the tool relies so heavily on system-installed non-Python
|
||||||
|
tools, I have not bothered to try installing the package using pip. It should
|
||||||
|
work equivalently as well as running the program straight from a checkout.
|
||||||
|
If you learn anything here or have suggestions, for me, please feel free to
|
||||||
|
send them along.
|
||||||
|
|
||||||
|
|
||||||
Links
|
Links
|
||||||
|
|
Loading…
Reference in New Issue