File: DEVELOPMENT

package info (click to toggle)
authprogs 0.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 1,031; makefile: 15
file content (82 lines) | stat: -rw-r--r-- 2,187 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

Authprogs Development
=====================

Reporting Bugs
--------------

Please file bug reports at the [github issues page] or reach
out to the author directly.

Contributions
-------------

If you wish to make changes to authprogs, send a pull request.
Note that I plan to be very anal about unit testing; this is
security-related software after all.

Any code you provide will be assumed to be under the public
domain unless specified otherwise.

Contributors are encouraged to reach out in advance
to kibbiz about implementation.

See the `TODO.md` file for ideas of things that need doing.

Testing
-------

Run local unit tests:

    $ python3 setup.py test

When developing, it may be useful to run individual unit or per-file tests, e.g.

    $ python3 setup.py test -s authprogs.tests.test_rsync.RsyncTests.test_foo
    $ python3 setup.py test -s authprogs.tests.test_authprogs.AuthprogsTests.test_archive

And install locally to do live tests

    $ sudo python3 setup.py install

Spell check
-----------

Enough spelingerrers have cropped up that it's worth having a defined
pass for spell check. The repo includes `ispell` dictionaries which have
been populated with words specifically for the prose, code, and yaml files.

    # Docs
    ispell -p .ispell_default $(git ls-tree -r $(git branch --show-current) --name-only | egrep -i '\.md$|\.rst$')

    # Code files
    ispell -p .ispell_code $(git ls-tree -r $(git branch --show-current) --name-only | egrep -i '\.py$')

    # yaml
    ispell -p .ispell_yaml $(git ls-tree -r $(git branch --show-current) --name-only | egrep -i '\.yaml$')

Publishing
----------

Upload to test pypi:

    $ python3 setup.py sdist upload -r testpypi
    $ sudo pip3 install -U -i https://test.pypi.org/simple/ authprogs
    $ sudo pip3 install -U -i https://test.pypi.org/simple/ authprogs==X.Y.Z


Test locally to verify all's good.

Upload to prod pypi:

    $ python3 setup.py sdist upload
    $ sudo pip3 uninstall authprogs
    $ sudo pip3 install authprogs



[github issues page]: https://github.com/daethnir/authprogs/issues

[github repository]: https://github.com/daethnir/authprogs

[ronn]: https://github.com/rtomayko/ronn