Skip to content

Commit e0cd36a

Browse files
committed
Format + changed author + version
1 parent cb97397 commit e0cd36a

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[flake8]
22
per-file-ignores = __init__.py:F401
3+
exclude = .git,__pycache__,build,dist,venv,WooCommerce.egg-info
4+
max-line-length = 120

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ sample.py
99
env/
1010
.pytest_cache/
1111
venv/
12+
.idea/

requirements/test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
httmock==1.4.0
33
pytest==7.1.3
44
flake8==5.0.4
5+
black==22.8.0

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# -*- coding: utf-8 -*-
33
""" Setup module """
44

5-
from setuptools import setup
65
import os
76
import re
87

8+
from setuptools import setup
99

1010
# Get version from __init__.py file
1111
VERSION = ""
@@ -26,7 +26,7 @@
2626
version=VERSION,
2727
description="A Python wrapper for the WooCommerce REST API",
2828
long_description=README,
29-
author="Claudio Sanches @ Automattic",
29+
author="Claudio Sanches & Antoine C",
3030
author_email="claudio+pypi@automattic.com",
3131
url="https://github.com/woocommerce/wc-api-python",
3232
license="MIT License",
@@ -49,6 +49,7 @@
4949
"Programming Language :: Python :: 3.7",
5050
"Programming Language :: Python :: 3.8",
5151
"Programming Language :: Python :: 3.9",
52+
"Programming Language :: Python :: 3.10",
5253
"Topic :: Software Development :: Libraries :: Python Modules"
5354
],
5455
keywords='woocommerce rest api',

test_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
""" API Tests """
22
import unittest
3+
4+
from httmock import HTTMock, all_requests
5+
36
import woocommerce
47
from woocommerce import oauth
5-
from httmock import all_requests, HTTMock
68

79

810
class WooCommerceTestCase(unittest.TestCase):

woocommerce/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"""
1111

1212
__title__ = "woocommerce"
13-
__version__ = "3.0.0"
14-
__author__ = "Claudio Sanches @ Automattic"
13+
__version__ = "3.0.1"
14+
__author__ = "Claudio Sanches & Antoine C"
1515
__license__ = "MIT"
1616

1717
from woocommerce.api import API

woocommerce/oauth.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"""
66

77
__title__ = "woocommerce-oauth"
8-
__version__ = "3.0.0"
9-
__author__ = "Claudio Sanches @ Automattic"
8+
__version__ = "3.0.1"
9+
__author__ = "Claudio Sanches & Antoine C"
1010
__license__ = "MIT"
1111

12-
from time import time
13-
from random import randint
14-
from hmac import new as HMAC
15-
from hashlib import sha1, sha256
1612
from base64 import b64encode
1713
from collections import OrderedDict
18-
from urllib.parse import urlencode, quote, unquote, parse_qsl, urlparse
14+
from hashlib import sha1, sha256
15+
from hmac import new as HMAC
16+
from random import randint
17+
from time import time
18+
from urllib.parse import parse_qsl, quote, unquote, urlencode, urlparse
1919

2020

2121
class OAuth(object):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy