Skip to content

Commit 183e82d

Browse files
committed
switch from bootstrap to init.py
1 parent 0849383 commit 183e82d

10 files changed

+600
-403
lines changed

Diff for: .travis.yml

-21
This file was deleted.

Diff for: Pipfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
invoke = ">=1.0.0"
8+
markdown = "*"
9+
pytest = "*"
10+
tox = "*"
11+
wheel = "*"
12+
twine = "*"

Diff for: Pipfile.lock

+205
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: README.md

+32-27
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@ GpgEdit uses GnuPG to encrypt your secrets into a simple gpg file.
77

88
You can install from PyPI:
99

10-
pip install gpgedit
10+
```console
11+
$ pip install gpgedit
12+
```
1113

1214
Or from zip URL:
1315

14-
pip install https://github.com/bachew/gpgedit/archive/master.zip
16+
```console
17+
pip install https://github.com/bachew/gpgedit/archive/master.zip
18+
```
1519

1620
Or install from cloned repo:
1721

18-
git clone https://github.com/bachew/gpgedit.git
19-
pip install gpgedit
22+
```consle
23+
git clone https://github.com/bachew/gpgedit.git
24+
pip install gpgedit
25+
```
2026

2127

2228
## Usage
@@ -61,46 +67,45 @@ Notice the output is verbose and there's no way to turn it off so that you see h
6167

6268
## Development
6369

64-
To setup development environment, clone the repo, run bootstrap and activate virtual environment:
70+
To setup development environment, clone the repo, run init.py and activate virtual environment:
6571

66-
$ ./bootstrap
67-
$ source gpgedit-py3*/bin/activate
68-
$ gpgedit -h
69-
70-
To test on Python 2.7:
71-
72-
$ cat > bootstrap_config_test.py
73-
python = 'python2'
74-
venv_dir = 'gpgedit-py2.7'
75-
$ ./bootstrap
76-
$ source gpgedit-py2.7/bin/activate
77-
$ gpgedit -h
72+
```console
73+
$ python3 init.py
74+
$ pipenv shell
75+
$ gpgedit -h
76+
```
7877

7978
`tmp` is listed in `.gitignore`, create it for use in testing:
8079

81-
$ mkdir tmp
80+
```console
81+
$ mkdir tmp
82+
```
8283

8384
Run `tox` to run unit tests on Python 2.7 and 3.
8485

8586
Lastly, some manual tests:
8687

87-
# Create new gpg file
88-
$ gpgedit tmp/x.gpg
88+
```console
89+
# Create new gpg file
90+
$ gpgedit tmp/x.gpg
8991

90-
# Create new gpg file without changes
91-
$ gpgedit tmp/y.gpg
92+
# Create new gpg file without changes
93+
$ gpgedit tmp/y.gpg
9294

93-
# Edit existing gpg file
94-
$ gpgedit tmp/x.gpg
95+
# Edit existing gpg file
96+
$ gpgedit tmp/x.gpg
9597

96-
# Edit but without changes
97-
$ gpgedit tmp/x.gpg
98+
# Edit but without changes
99+
$ gpgedit tmp/x.gpg
100+
```
98101

99102

100103
### Release
101104

102105
Before releasing, make sure `README.md` is up-to-date. If you updated it, please preview it before committing:
103106

104-
$ markdown_py README.md -f tmp/README.html
107+
```console
108+
$ markdown_py README.md -f tmp/README.html
109+
```
105110

106111
Increase `setup.py::config['version']`, commit and merge to master branch. Travis will build and deploy to [PyPI](https://pypi.python.org).

0 commit comments

Comments
 (0)