mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaf45022cc | ||
|
|
7cdf428e3a | ||
|
|
cfb1f1368b | ||
|
|
4700a26d90 | ||
|
|
f53f7d9b71 | ||
|
|
3b6aa060ba | ||
|
|
76ff7f3b0d | ||
|
|
2615cab114 | ||
|
|
fda71b0467 | ||
|
|
a9f82faa1c | ||
|
|
f17bf19776 | ||
|
|
54c81de3d7 | ||
|
|
f2b4f566a1 | ||
|
|
2724f02b0a |
@@ -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
|
|
||||||
1
.github/workflows/automatic-release.yml
vendored
1
.github/workflows/automatic-release.yml
vendored
@@ -21,6 +21,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
||||||
- name: Setup Git
|
- name: Setup Git
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
|
|||||||
32
.github/workflows/lint.yml
vendored
Normal file
32
.github/workflows/lint.yml
vendored
Normal 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
|
||||||
56
CHANGES.rst
56
CHANGES.rst
@@ -1,10 +1,64 @@
|
|||||||
Changelog
|
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
|
Fix
|
||||||
~~~
|
~~~
|
||||||
- Do not use raw property in readme. [Jose Diaz-Gonzalez]
|
- Do not use raw property in readme. [Jose Diaz-Gonzalez]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "0.44.0"
|
__version__ = "0.44.1"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import socket
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import base64
|
import base64
|
||||||
@@ -10,23 +9,20 @@ import codecs
|
|||||||
import errno
|
import errno
|
||||||
import getpass
|
import getpass
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import select
|
import select
|
||||||
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
import time
|
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 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:
|
try:
|
||||||
from . import __version__
|
from . import __version__
|
||||||
@@ -41,10 +37,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def logging_subprocess(
|
def logging_subprocess(
|
||||||
popenargs,
|
popenargs, stdout_log_level=logging.DEBUG, stderr_log_level=logging.ERROR, **kwargs
|
||||||
stdout_log_level=logging.DEBUG,
|
|
||||||
stderr_log_level=logging.ERROR,
|
|
||||||
**kwargs
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Variant of subprocess.call that accepts a logger instead of stdout/stderr,
|
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))
|
raise Exception(", ".join(errors))
|
||||||
|
|
||||||
if len(errors) == 0:
|
if len(errors) == 0:
|
||||||
if type(response) == list:
|
if type(response) is list:
|
||||||
for resp in response:
|
for resp in response:
|
||||||
yield resp
|
yield resp
|
||||||
if len(response) < per_page:
|
if len(response) < per_page:
|
||||||
break
|
break
|
||||||
elif type(response) == dict and single_request:
|
elif type(response) is dict and single_request:
|
||||||
yield response
|
yield response
|
||||||
|
|
||||||
if len(errors) > 0:
|
if len(errors) > 0:
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
autopep8==2.0.4
|
||||||
|
black==23.11.0
|
||||||
bleach==6.0.0
|
bleach==6.0.0
|
||||||
certifi==2023.7.22
|
certifi==2023.7.22
|
||||||
charset-normalizer==3.1.0
|
charset-normalizer==3.1.0
|
||||||
|
click==8.1.7
|
||||||
colorama==0.4.6
|
colorama==0.4.6
|
||||||
docutils==0.20.1
|
docutils==0.20.1
|
||||||
flake8==6.0.0
|
flake8==6.1.0
|
||||||
gitchangelog==3.0.4
|
gitchangelog==3.0.4
|
||||||
idna==3.4
|
idna==3.4
|
||||||
importlib-metadata==6.6.0
|
importlib-metadata==6.6.0
|
||||||
@@ -13,9 +16,13 @@ markdown-it-py==2.2.0
|
|||||||
mccabe==0.7.0
|
mccabe==0.7.0
|
||||||
mdurl==0.1.2
|
mdurl==0.1.2
|
||||||
more-itertools==9.1.0
|
more-itertools==9.1.0
|
||||||
|
mypy-extensions==1.0.0
|
||||||
|
packaging==23.2
|
||||||
|
pathspec==0.11.2
|
||||||
pkginfo==1.9.6
|
pkginfo==1.9.6
|
||||||
pycodestyle==2.10.0
|
platformdirs==4.1.0
|
||||||
pyflakes==3.0.1
|
pycodestyle==2.11.1
|
||||||
|
pyflakes==3.1.0
|
||||||
Pygments==2.15.1
|
Pygments==2.15.1
|
||||||
readme-renderer==37.3
|
readme-renderer==37.3
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
|
|||||||
Reference in New Issue
Block a user