File: DEVELOPMENT.md

package info (click to toggle)
python-rcssmin 1%3A1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,172 kB
  • sloc: python: 2,264; ansic: 1,216; sh: 66; makefile: 19
file content (29 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Development Setup

The easiest way is to setup a virtualenv container and install the code using
the "editable" install feature of pip. Note that the package uses
[invoke](http://www.pyinvoke.org/) for management tasks, which itself will
execute shell commands, which are most likely only runnable on unix/linux
systems.

1. Create a virtual env, either using [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/) or [virtualenv](https://pypi.python.org/pypi/virtualenv) directly and make sure to enter it:

```
    $ mkvirtualenv rcssmin
    $ workon rcssmin
```

1. Checkout the repository and install the dependencies

```
    $ git clone git@github.com:ndparker/rcssmin.git src/rcssmin
    $ cd src/rcssmin
    $ pip install -r development.txt
```

1. For convenience reasons you might want to change into the source directory
   automatically whenever you enter the venv again. Do it like that:

```
    $ echo 'cd "$VIRTUAL_ENV"/src/rcssmin' >> "$VIRTUAL_ENV"/bin/postactivate
```