Compare commits

...

14 Commits

Author SHA1 Message Date
GitHub Action
aaf45022cc Release version 0.44.1 2023-12-09 05:53:43 +00:00
Jose Diaz-Gonzalez
7cdf428e3a fix: use a deploy key to push tags so releases get auto-created 2023-12-09 00:52:00 -05:00
Jose Diaz-Gonzalez
cfb1f1368b Merge pull request #228 from josegonzalez/dependabot/pip/certifi-2023.7.22
chore(deps): bump certifi from 2023.5.7 to 2023.7.22
2023-12-09 00:45:27 -05:00
Jose Diaz-Gonzalez
4700a26d90 tests: run lint on pull requests 2023-12-09 00:45:20 -05:00
dependabot[bot]
f53f7d9b71 chore(deps): bump certifi from 2023.5.7 to 2023.7.22
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 05:43:45 +00:00
Jose Diaz-Gonzalez
3b6aa060ba Merge pull request #227 from josegonzalez/dependabot/pip/urllib3-2.0.7
chore(deps): bump urllib3 from 2.0.2 to 2.0.7
2023-12-09 00:42:54 -05:00
Jose Diaz-Gonzalez
76ff7f3b0d chore: remove circleci as tests now run in github actions 2023-12-09 00:42:09 -05:00
Jose Diaz-Gonzalez
2615cab114 tests: install correct dependencies and rename job 2023-12-09 00:40:58 -05:00
Jose Diaz-Gonzalez
fda71b0467 tests: add lint github action workflow 2023-12-09 00:39:40 -05:00
Jose Diaz-Gonzalez
a9f82faa1c feat: install autopep8 2023-12-09 00:39:40 -05:00
Jose Diaz-Gonzalez
f17bf19776 Merge pull request #226 from josegonzalez/dependabot/pip/certifi-2023.7.22
chore(deps): bump certifi from 2023.5.7 to 2023.7.22
2023-12-09 00:31:43 -05:00
dependabot[bot]
54c81de3d7 chore(deps): bump urllib3 from 2.0.2 to 2.0.7
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.2 to 2.0.7.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.2...2.0.7)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 05:31:30 +00:00
dependabot[bot]
f2b4f566a1 chore(deps): bump certifi from 2023.5.7 to 2023.7.22
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 05:31:23 +00:00
Jose Diaz-Gonzalez
2724f02b0a chore: reformat file and update flake8 2023-12-09 00:30:44 -05:00
7 changed files with 109 additions and 45 deletions

View File

@@ -1,23 +0,0 @@
version: 2.1
orbs:
python: circleci/python@0.3.2
jobs:
build-and-test:
executor: python/default
steps:
- checkout
- python/load-cache
- run:
command: pip install flake8
name: Install dependencies
- python/save-cache
- run:
command: flake8 --ignore=E501
name: Lint
workflows:
main:
jobs:
- build-and-test

View File

@@ -21,6 +21,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
- name: Setup Git
run: |
git config --local user.email "action@github.com"

32
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
---
name: "lint"
# yamllint disable-line rule:truthy
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
- 'master'
jobs:
lint:
name: lint
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
- run: pip install -r release-requirements.txt
- run: flake8 --ignore=E501,E203,W503
- run: black .
- run: rst-lint README.rst

View File

@@ -1,10 +1,64 @@
Changelog
=========
0.44.0 (2023-12-09)
0.44.1 (2023-12-09)
-------------------
------------------------
Fix
~~~
- Use a deploy key to push tags so releases get auto-created. [Jose
Diaz-Gonzalez]
Other
~~~~~
- Chore(deps): bump certifi from 2023.5.7 to 2023.7.22.
[dependabot[bot]]
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22)
---
updated-dependencies:
- dependency-name: certifi
dependency-type: direct:production
...
- Tests: run lint on pull requests. [Jose Diaz-Gonzalez]
- Chore(deps): bump urllib3 from 2.0.2 to 2.0.7. [dependabot[bot]]
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.2 to 2.0.7.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.2...2.0.7)
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
...
- Chore: remove circleci as tests now run in github actions. [Jose Diaz-
Gonzalez]
- Tests: install correct dependencies and rename job. [Jose Diaz-
Gonzalez]
- Tests: add lint github action workflow. [Jose Diaz-Gonzalez]
- Feat: install autopep8. [Jose Diaz-Gonzalez]
- Chore(deps): bump certifi from 2023.5.7 to 2023.7.22.
[dependabot[bot]]
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22)
---
updated-dependencies:
- dependency-name: certifi
dependency-type: direct:production
...
- Chore: reformat file and update flake8. [Jose Diaz-Gonzalez]
0.44.0 (2023-12-09)
-------------------
Fix
~~~
- Do not use raw property in readme. [Jose Diaz-Gonzalez]

View File

@@ -1 +1 @@
__version__ = "0.44.0"
__version__ = "0.44.1"

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function
import socket
import argparse
import base64
@@ -10,23 +9,20 @@ import codecs
import errno
import getpass
import json
import logging
import os
import platform
import re
import select
import socket
import subprocess
import sys
import logging
import time
import platform
from urllib.parse import urlparse
from urllib.parse import quote as urlquote
from urllib.parse import urlencode
from urllib.error import HTTPError, URLError
from urllib.request import urlopen
from urllib.request import Request
from urllib.request import HTTPRedirectHandler
from urllib.request import build_opener
from http.client import IncompleteRead
from urllib.error import HTTPError, URLError
from urllib.parse import quote as urlquote
from urllib.parse import urlencode, urlparse
from urllib.request import HTTPRedirectHandler, Request, build_opener, urlopen
try:
from . import __version__
@@ -41,10 +37,7 @@ logger = logging.getLogger(__name__)
def logging_subprocess(
popenargs,
stdout_log_level=logging.DEBUG,
stderr_log_level=logging.ERROR,
**kwargs
popenargs, stdout_log_level=logging.DEBUG, stderr_log_level=logging.ERROR, **kwargs
):
"""
Variant of subprocess.call that accepts a logger instead of stdout/stderr,
@@ -626,12 +619,12 @@ def retrieve_data_gen(args, template, query_args=None, single_request=False):
raise Exception(", ".join(errors))
if len(errors) == 0:
if type(response) == list:
if type(response) is list:
for resp in response:
yield resp
if len(response) < per_page:
break
elif type(response) == dict and single_request:
elif type(response) is dict and single_request:
yield response
if len(errors) > 0:

View File

@@ -1,9 +1,12 @@
autopep8==2.0.4
black==23.11.0
bleach==6.0.0
certifi==2023.7.22
charset-normalizer==3.1.0
click==8.1.7
colorama==0.4.6
docutils==0.20.1
flake8==6.0.0
flake8==6.1.0
gitchangelog==3.0.4
idna==3.4
importlib-metadata==6.6.0
@@ -13,9 +16,13 @@ markdown-it-py==2.2.0
mccabe==0.7.0
mdurl==0.1.2
more-itertools==9.1.0
mypy-extensions==1.0.0
packaging==23.2
pathspec==0.11.2
pkginfo==1.9.6
pycodestyle==2.10.0
pyflakes==3.0.1
platformdirs==4.1.0
pycodestyle==2.11.1
pyflakes==3.1.0
Pygments==2.15.1
readme-renderer==37.3
requests==2.31.0