Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 4cdd518

Browse files
committed
Changed package name
1 parent 28133bb commit 4cdd518

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
requests==2.7.0
1+
aiohttp==0.19.0
22
ordereddict==1.1

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
import os
77
import re
88

9-
109
# Get version from __init__.py file
1110
VERSION = ""
12-
with open("woocommerce/__init__.py", "r") as fd:
11+
with open("wc/__init__.py", "r") as fd:
1312
VERSION = re.search(r"^__version__\s*=\s*['\"]([^\"]*)['\"]", fd.read(), re.MULTILINE).group(1)
1413

1514
if not VERSION:
@@ -30,7 +29,7 @@
3029
url="https://github.com/woocommerce/wc-api-python",
3130
license="MIT License",
3231
packages=[
33-
"woocommerce"
32+
"wc"
3433
],
3534
include_package_data=True,
3635
platforms=['any'],

tests.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" API Tests """
22
import unittest
3-
import woocommerce
4-
from woocommerce import oauth
3+
import wc
4+
from wc import oauth
55
from httmock import all_requests, HTTMock
66

77

@@ -11,15 +11,15 @@ class WooCommerceTestCase(unittest.TestCase):
1111
def setUp(self):
1212
self.consumer_key = "ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
1313
self.consumer_secret = "cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
14-
self.api = woocommerce.API(
14+
self.api = wc.API(
1515
url="http://woo.test",
1616
consumer_key=self.consumer_key,
1717
consumer_secret=self.consumer_secret
1818
)
1919

2020
def test_version(self):
2121
""" Test default version """
22-
api = woocommerce.API(
22+
api = wc.API(
2323
url="https://woo.test",
2424
consumer_key=self.consumer_key,
2525
consumer_secret=self.consumer_secret
@@ -29,7 +29,7 @@ def test_version(self):
2929

3030
def test_non_ssl(self):
3131
""" Test non-ssl """
32-
api = woocommerce.API(
32+
api = wc.API(
3333
url="http://woo.test",
3434
consumer_key=self.consumer_key,
3535
consumer_secret=self.consumer_secret
@@ -38,7 +38,7 @@ def test_non_ssl(self):
3838

3939
def test_with_ssl(self):
4040
""" Test non-ssl """
41-
api = woocommerce.API(
41+
api = wc.API(
4242
url="https://woo.test",
4343
consumer_key=self.consumer_key,
4444
consumer_secret=self.consumer_secret
@@ -47,7 +47,7 @@ def test_with_ssl(self):
4747

4848
def test_with_timeout(self):
4949
""" Test non-ssl """
50-
api = woocommerce.API(
50+
api = wc.API(
5151
url="https://woo.test",
5252
consumer_key=self.consumer_key,
5353
consumer_secret=self.consumer_secret,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# -*- coding: utf-8 -*-
22

33
"""
4-
woocommerce
4+
wc
55
~~~~~~~~~~~~~~~
66
A Python wrapper for WooCommerce API.
77
88
:copyright: (c) 2015 by WooThemes.
99
:license: MIT, see LICENSE for details.
1010
"""
1111

12-
__title__ = "woocommerce"
12+
__title__ = "wc"
1313
__version__ = "1.2.0"
1414
__author__ = "Claudio Sanches @ WooThemes"
1515
__license__ = "MIT"
1616

17-
from woocommerce.api import API
17+
from wc.api import API

woocommerce/api.py renamed to wc/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""
4-
WooCommerce API Class
4+
WC API Class
55
"""
66

77
__title__ = "woocommerce-api"
@@ -11,7 +11,7 @@
1111

1212
from requests import request
1313
from json import dumps as jsonencode
14-
from woocommerce.oauth import OAuth
14+
from wc.oauth import OAuth
1515
import aiohttp
1616

1717

File renamed without changes.

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