Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 86c56f4

Browse files
committed
Fixed up package names to remove warning and non standardness of the setup.py
1 parent b0c45af commit 86c56f4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Json outputs are provided by the JsonFormatter logging formatter. You can add th
2323

2424
```python
2525
import logging
26-
import jsonlogger
26+
from pythonjsonlogger import jsonlogger
2727

2828
logger = logging.getLogger()
2929

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
print(sys.stderror, "Your Python is {}".format(sys.version))
55
sys.exit(1)
66

7-
from setuptools import setup
7+
from setuptools import setup, find_packages
88

99
setup(
1010
name = "python-json-logger",
11-
version = "0.0.7",
11+
version = "0.1.0",
1212
url = "http://github.com/madzak/python-json-logger",
1313
license = "BSD",
1414
description = "A python library adding a json log formatter",
1515
author = "Zakaria Zajac",
1616
author_email = "zak@madzak.com",
1717
package_dir = {'': 'src'},
18-
packages = [''],
18+
packages = find_packages("src", exclude="tests"),
1919
test_suite = "tests.tests",
2020
install_requires = ['setuptools'],
2121
classifiers = [
File renamed without changes.
File renamed without changes.

tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# Python 3 Support
1515
from io import StringIO
1616

17-
sys.path.append('src')
18-
import jsonlogger
17+
sys.path.append('src/python-json-logger')
18+
from pythonjsonlogger import jsonlogger
1919
import datetime
2020

2121

0 commit comments

Comments
 (0)