No description
Find a file
Steve Wills 0d4e91fd6c
Merge pull request #13 from swills/dep-improvement1
Use FreeBSD_ports and packaging to find deps
2020-07-13 14:12:26 -04:00
pytoport temporary fix for python version 2020-07-08 11:17:57 -04:00
CHANGELOG.md bump to v0.4.0 2015-12-30 21:34:19 +11:00
LICENSE We're almost ready 2015-12-26 22:30:38 +11:00
MANIFEST.in Add requirements.txt file 2016-01-28 01:32:49 +01:00
README.rst Improve installation info 2016-01-29 16:21:46 +11:00
requirements.txt Use FreeBSD_ports and packaging to find deps 2019-07-11 17:28:28 -04:00
setup.py improve setup.py 2020-07-07 20:32:07 -04:00

pytoport
========

A fairly normal way to generate FreeBSD port Makefiles straight from
PyPI.

Installation
------------

FreeBSD
~~~~~~~

You can install ``pytoport`` using
`pkg(8) <https://github.com/freebsd/pkg>`__, or the Ports framework:

::

    $ pkg install -g pyXY-pytoport # Where XY is Python version eg. 34
    or
    $ make -C /usr/ports/ports-mgmt/py-pytoport install clean

From source (for development)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It is recommended to create a ``virtualenv`` to install your
dependencies in order to not pollute your system installation:

::

    $ virtualenv --python=python3.X /path/to/venv
    $ source /path/to/venv/bin/activate
    $ pip install -r requirements.txt

You can then install from the ``setup.py`` directly, use ``pip``, or run
locally with:

::

    $ python -m pytoport

Usage
-----

You specify a base directory for the packages to be generated into, then
just let it rip!

::

    $ pytoport ~/my-ports/devel nosetests fixtures

In your ``~/my-ports/devel`` directory, you will find ``py-nosetests``
and ``py-fixtures`` with a ``Makefile`` and if you're lucky, a
``distinfo`` and ``pkg-descr`` too.

You should also create a ``~/.porttools`` file with the following
details:

::

    EMAIL="your@email.address"
    FULLNAME="Your Name"

See ``man 5 porttools`` for more information. If you don't create this
file, you'll have to fill out the relevant parts of the ``Makefile``
yourself.

License
-------

BSD 2-clause. See LICENSE.