Skip to content

Commit 93055a9

Browse files
authored
Merge pull request #362 from kmcquade/upgrade-click
Upgrade python click
2 parents 74fdc1f + a81f1fe commit 93055a9

File tree

8 files changed

+39
-49
lines changed

8 files changed

+39
-49
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ __pycache__/
2828
*.py[cod]
2929
*$py.class
3030
env/
31+
_build/
3132
build/
3233
develop-eggs/
3334
dist/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ setup-dev: setup-env
1818
.PHONY: build-docs
1919
build-docs: clean virtualenv
2020
python3 -m pip install -r docs/requirements.txt
21-
mkdocs build
21+
mkdocs build --clean --site-dir _build/html --config-file mkdocs.yml
2222

2323
.PHONY: serve-docs
2424
serve-docs: clean virtualenv
@@ -46,6 +46,7 @@ uninstall:
4646
clean:
4747
rm -rf dist/
4848
rm -rf build/
49+
rm -rf _build/
4950
rm -rf *.egg-info
5051
find . -name '*.pyc' -delete
5152
find . -name '*.pyo' -delete

docs/library-usage/writing/validate.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ atomicwrites==1.4.0
33
distlib==0.3.1
44
filelock==3.0.12
55
mkdocs==1.1.2
6-
mkdocs-material==7.0.6
6+
mkdocs-material==7.1.4
77
mkdocs-material-extensions==1.0.1
88
mkdocstrings==0.15.0
9-
Pygments==2.8.1
10-
pymdown-extensions==8.1.1
11-
pytkdocs==0.11.0
12-
docutils==0.16
9+
Pygments==2.9.0
10+
pymdown-extensions==8.2
11+
pytkdocs==0.11.1
12+
docutils==0.17.1
13+
# Trying to see if RTFD needs these
14+
markdown==3.3.4
15+
typed-ast==1.4.3
16+
MarkupSafe==2.0.0

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ nav:
5555
- Overview: 'library-usage/index.md'
5656
- "<b>Writing Policies</b>":
5757
- writing.minimize: 'library-usage/writing/minimize.md'
58-
- writing.validate: 'library-usage/writing/validate.md'
5958
- command.write_policy: 'library-usage/writing/write_policy.md'
6059
- "<b>Querying the Database</b>":
6160
- querying.all: 'library-usage/querying/all.md'

requirements-dev.txt

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
appdirs==1.4.4
2-
astroid==2.5.1
3-
attrs==20.3.0
1+
# Unit Testing
2+
pytest==6.2.4
3+
pylint==2.8.2
4+
nose==1.3.7
5+
coverage==5.5
6+
# Integration tests and tasks
7+
invoke==1.5.0
8+
# Security testing
9+
safety==1.10.3
410
bandit==1.7.0
5-
beautifulsoup4==4.9.3
11+
# Formatting
612
black==20.8b1
7-
certifi==2020.12.5
8-
chardet==4.0.0
9-
click==7.1.2
10-
contextlib2==0.6.0.post1
11-
coverage==5.5
13+
# Other? Maybe this is from the docs? Not sure.
14+
appdirs==1.4.4
15+
astroid==2.5.6
16+
attrs==20.3.0
1217
dparse==0.5.1
1318
future==0.18.2
1419
gitdb==4.0.5
1520
GitPython==3.1.14
16-
idna==2.10
1721
iniconfig==1.1.1
18-
invoke==1.5.0
1922
isort==5.8.0
2023
Jinja2==2.11.3
2124
joblib==1.0.1
@@ -26,27 +29,19 @@ MarkupSafe==1.1.1
2629
mccabe==0.6.1
2730
mypy-extensions==0.4.3
2831
nltk==3.5
29-
nose==1.3.7
3032
packaging==20.9
3133
pathspec==0.8.1
3234
pbr==5.5.1
3335
pluggy==0.13.1
3436
py==1.10.0
35-
pylint==2.7.2
3637
pyparsing==2.4.7
37-
pytest==6.2.2
38-
PyYAML==5.4.1
3938
regex==2021.3.17
4039
requests==2.25.1
41-
safety==1.10.3
42-
schema==0.7.4
4340
six==1.15.0
44-
soupsieve==2.2.1
4541
stevedore==3.3.0
4642
toml==0.10.2
4743
tornado==6.1
4844
tqdm==4.59.0
4945
typed-ast==1.4.2
5046
typing-extensions==3.7.4.3
51-
urllib3==1.26.4
5247
wrapt==1.12.1

requirements.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1+
# Command line
2+
click==8.0.0
3+
# Web Scraping
14
beautifulsoup4==4.9.3
2-
certifi==2020.12.5
3-
chardet==4.0.0
4-
click==7.1.2
5-
contextlib2==0.6.0.post1
6-
idna==2.10
7-
PyYAML==5.4.1
85
requests==2.25.1
6+
# Config files and schema validation
7+
PyYAML==5.4.1
98
schema==0.7.4
10-
soupsieve==2.2.1
11-
urllib3==1.26.4

setup.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
'nose',
1111
'pytest'
1212
]
13+
REQUIRED_PACKAGES = [
14+
'beautifulsoup4',
15+
'click',
16+
'requests',
17+
'schema',
18+
'PyYAML',
19+
]
1320
PROJECT_URLS = {
1421
"Documentation": "https://policy-sentry.readthedocs.io/",
1522
"Code": "https://github.com/salesforce/policy_sentry/",
@@ -48,13 +55,7 @@ def get_description():
4855
url="https://github.com/salesforce/policy_sentry",
4956
packages=setuptools.find_packages(exclude=['test*']),
5057
tests_require=TESTS_REQUIRE,
51-
install_requires=[
52-
'beautifulsoup4',
53-
'click',
54-
'requests',
55-
'schema',
56-
'PyYAML',
57-
],
58+
install_requires=REQUIRED_PACKAGES,
5859
project_urls=PROJECT_URLS,
5960
classifiers=[
6061
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)