Skip to content

Commit 7733d99

Browse files
authored
Merge pull request #316 from kmcquade/fix/change-version
Use version.py to control versions
2 parents a0abccb + 85a89d6 commit 7733d99

File tree

7 files changed

+107
-110
lines changed

7 files changed

+107
-110
lines changed

docs/contributing/versioning.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ We try to follow [Semantic Versioning](https://semver.org/) as much as possible.
66
Version bumps
77
-------------
88

9-
Just edit the `policy_sentry/bin/policy_sentry` file and update the `__version__` variable:
9+
Just edit the `policy_sentry/bin/version.py` file and update the `__version__` variable:
1010

1111
```python
12-
#! /usr/bin/env python
13-
"""
14-
policy_sentry is a tool for generating least-privilege IAM Policies.
15-
"""
16-
__version__ = '0.6.3' # EDIT THIS
12+
__version__ = '0.11.3' # EDIT THIS
1713
```
1814

1915
The `setup.py` file will automatically pick up the new version from that file for the package info. The `@click.version_option` decorator will also pick that up for the command line.

docs/requirements.txt

Lines changed: 61 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,75 @@
1-
appdirs==1.4.3
2-
astroid==2.3.3
1+
# unique to ReadTheDocs
32
atomicwrites==1.4.0
4-
attrs==19.3.0
3+
distlib==0.3.1
4+
filelock==3.0.12
5+
mkdocs==1.1.2
6+
mkdocs-material==6.2.3
7+
mkdocs-material-extensions==1.0.1
8+
mkdocstrings==0.13.6
9+
Pygments==2.7.3
10+
pymdown-extensions==8.1
11+
pytkdocs==0.9.0
12+
virtualenv==20.2.2
13+
virtualenv-clone==0.5.4
14+
# From the rest of requirements-dev.txt... not sure what is required in order for RTD to auto-include the Python Classes in the library reference section
15+
appdirs==1.4.4
16+
astroid==2.4.2
17+
attrs==20.3.0
518
bandit==1.7.0
6-
beautifulsoup4==4.8.2
7-
black==19.10b0
8-
certifi==2020.4.5.1
9-
chardet==3.0.4
10-
click==7.1.1
11-
click-log==0.3.2
12-
contextlib2==0.5.5
13-
coverage==5.1
14-
distlib==0.3.0
19+
beautifulsoup4==4.9.3
20+
black==20.8b1
21+
boto3==1.16.43
22+
botocore==1.19.43
23+
certifi==2020.12.5
24+
chardet==4.0.0
25+
click==7.1.2
26+
contextlib2==0.6.0.post1
27+
coverage==5.3.1
28+
docutils==0.16
1529
dparse==0.5.1
16-
filelock==3.0.12
1730
future==0.18.2
1831
gitdb==4.0.5
19-
GitPython==3.1.2
20-
homebrew-pypi-poet==0.10.0
21-
idna==2.8
22-
importlib-metadata==1.6.0
32+
GitPython==3.1.11
33+
idna==2.10
34+
importlib-metadata==3.3.0
2335
invoke==1.4.1
24-
isort==4.3.21
25-
Jinja2==3.0.0a1
26-
joblib==0.14.1
27-
lazy-object-proxy==1.4.3
28-
livereload==2.6.1
29-
lunr==0.5.6
30-
Markdown==3.3.3
31-
MarkupSafe==2.0.0a1
36+
isort==5.6.4
37+
Jinja2==2.11.2
38+
jmespath==0.10.0
39+
joblib==1.0.0
40+
lazy-object-proxy==1.4.*
41+
livereload==2.6.3
42+
lunr==0.5.8
43+
markdown==3.3.3
44+
MarkupSafe==1.1.1
3245
mccabe==0.6.1
33-
mkdocs==1.1
34-
mkdocs-material==5.1.5
35-
mkdocs-material-extensions==1.0b2
36-
mkdocstrings==0.11.0
37-
more-itertools==8.2.0
46+
more-itertools==8.6.0
3847
nltk==3.5
3948
nose==1.3.7
40-
packaging==20.3
41-
pathspec==0.8.0
42-
pbr==5.4.5
43-
pipenv==2020.6.2
49+
packaging==20.8
50+
pathspec==0.8.1
51+
pbr==5.5.1
4452
pluggy==0.13.1
45-
policy-sentry==0.8.0.5
46-
py==1.8.1
47-
Pygments==2.6.1
48-
pylint==2.5.2
49-
pymdown-extensions==8.0.1
50-
pyparsing==3.0.0a1
51-
pytest==6.1.2
52-
pytkdocs==0.3.0
53+
py==1.10.0
54+
pylint==2.6.0
55+
pyparsing==2.4.7
56+
pytest==6.2.1
57+
python-dateutil==2.8.1
5358
PyYAML==5.3.1
54-
regex==2020.5.7
55-
requests==2.22.0
56-
safety==1.8.7
57-
schema==0.7.1
58-
six==1.14.0
59+
regex==2020.11.13
60+
requests==2.25.1
61+
s3transfer==0.3.3
62+
safety==1.10.0
63+
schema==0.7.3
64+
six==1.15.0
5965
smmap==3.0.4
60-
soupsieve==2.0
61-
stevedore==1.32.0
66+
soupsieve==2.1
67+
stevedore==3.3.0
6268
toml==0.10.2
63-
tornado==6.0.4
64-
tqdm==4.46.0
69+
tornado==6.1
70+
tqdm==4.55.0
6571
typed-ast==1.4.1
66-
urllib3==1.25.10
67-
virtualenv==20.0.17
68-
virtualenv-clone==0.5.4
69-
wcwidth==0.1.9
70-
wrapt==1.11.2
71-
zipp==3.1.0
72+
urllib3==1.26.2
73+
wcwidth==0.2.5
74+
wrapt==1.12.1
75+
zipp==3.4.0

policy_sentry/bin/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"""
33
Policy Sentry is a tool for generating least-privilege IAM Policies.
44
"""
5-
__version__ = "0.11.3"
65
import click
76
from policy_sentry import command
7+
from policy_sentry.bin.version import __version__
88

99

1010
@click.group()

policy_sentry/bin/version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# pylint: disable=missing-module-docstring
2+
__version__ = "0.11.3"

requirements-dev.txt

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,61 @@
11
appdirs==1.4.4
22
astroid==2.4.2
3-
atomicwrites==1.4.0
4-
attrs==20.1.0
3+
attrs==20.3.0
54
bandit==1.7.0
6-
beautifulsoup4==4.9.1
5+
beautifulsoup4==4.9.3
76
black==20.8b1
8-
certifi==2020.6.20
9-
chardet==3.0.4
7+
certifi==2020.12.5
8+
chardet==4.0.0
109
click==7.1.2
1110
contextlib2==0.6.0.post1
12-
coverage==5.2.1
11+
coverage==5.3.1
1312
dparse==0.5.1
1413
future==0.18.2
1514
gitdb==4.0.5
16-
GitPython==3.1.7
15+
GitPython==3.1.11
1716
idna==2.10
18-
importlib-metadata==1.7.0
17+
iniconfig==1.1.1
1918
invoke==1.4.1
20-
isort==5.4.2
21-
Jinja2==3.0.0a1
22-
joblib==0.16.0
23-
lazy-object-proxy==1.4.3
19+
isort==5.6.4
20+
Jinja2==2.11.2
21+
joblib==1.0.0
22+
lazy-object-proxy==1.4.*
2423
livereload==2.6.3
2524
lunr==0.5.8
2625
Markdown==3.3.3
27-
MarkupSafe==2.0.0a1
26+
MarkupSafe==1.1.1
2827
mccabe==0.6.1
2928
mkdocs==1.1.2
30-
mkdocs-material==5.5.12
31-
mkdocs-material-extensions==1.0
32-
mkdocstrings==0.13.0
33-
more-itertools==8.5.0
29+
mkdocs-material==6.2.3
30+
mkdocs-material-extensions==1.0.1
31+
mkdocstrings==0.13.6
32+
mypy-extensions==0.4.3
3433
nltk==3.5
3534
nose==1.3.7
36-
packaging==20.4
37-
pathspec==0.8.0
38-
pbr==5.4.5
35+
packaging==20.8
36+
pathspec==0.8.1
37+
pbr==5.5.1
3938
pluggy==0.13.1
40-
py==1.9.0
41-
Pygments==2.6.1
39+
py==1.10.0
40+
Pygments==2.7.3
4241
pylint==2.6.0
43-
pymdown-extensions==8.0.1
44-
pyparsing==3.0.0a2
45-
pytest==6.1.2
46-
pytkdocs==0.7.0
42+
pymdown-extensions==8.1
43+
pyparsing==2.4.7
44+
pytest==6.2.1
45+
pytkdocs==0.9.0
4746
PyYAML==5.3.1
48-
regex==2020.7.14
49-
requests==2.24.0
50-
safety==1.9.0
47+
regex==2020.11.13
48+
requests==2.25.1
49+
safety==1.10.0
5150
schema==0.7.3
5251
six==1.15.0
5352
smmap==3.0.4
54-
soupsieve==2.0.1
55-
stevedore==3.2.1
53+
soupsieve==2.1
54+
stevedore==3.3.0
5655
toml==0.10.2
57-
tornado==6.0.4
58-
tqdm==4.48.2
56+
tornado==6.1
57+
tqdm==4.55.0
5958
typed-ast==1.4.1
60-
urllib3==1.25.10
61-
wcwidth==0.2.5
59+
typing-extensions==3.7.4.3
60+
urllib3==1.26.2
6261
wrapt==1.12.1
63-
zipp==3.1.0

requirements.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
beautifulsoup4==4.9.1
2-
certifi==2020.6.20
3-
chardet==3.0.4
1+
beautifulsoup4==4.9.3
2+
certifi==2020.12.5
3+
chardet==4.0.0
44
click==7.1.2
55
contextlib2==0.6.0.post1
66
idna==2.10
7-
packaging==20.4
87
PyYAML==5.3.1
9-
requests==2.24.0
8+
requests==2.25.1
109
schema==0.7.3
11-
soupsieve==2.0.1
12-
urllib3==1.25.10
10+
soupsieve==2.1
11+
urllib3==1.26.2

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_version():
1818
HERE,
1919
"policy_sentry",
2020
"bin",
21-
"cli.py"
21+
"version.py"
2222
)
2323
).read()
2424
return VERSION_RE.search(init).group(1)
@@ -45,7 +45,6 @@ def get_description():
4545
install_requires=[
4646
'beautifulsoup4',
4747
'click',
48-
'click_log',
4948
'requests',
5049
'schema',
5150
'PyYAML',
@@ -59,5 +58,4 @@ def get_description():
5958
zip_safe=True,
6059
keywords='aws iam roles policy policies privileges security',
6160
python_requires='>=3.6',
62-
# scripts=['policy_sentry/bin/policy_sentry'],
6361
)

0 commit comments

Comments
 (0)