Skip to content

Commit f7908f1

Browse files
Merge pull request #20 from ivan-sirosh/master
new assembly process
2 parents e97db55 + 9ccea4f commit f7908f1

File tree

9 files changed

+1627
-1641
lines changed

9 files changed

+1627
-1641
lines changed

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,37 @@ Easily **custom(add/replace)** `LogRecord` attribute, e.g. in `Flask` web projec
2727

2828

2929

30-
## Installation
30+
## Contributing
3131

32-
jsonformatter is available on PyPI.
33-
Use pip to install:
32+
Download source code
33+
```shell
34+
$ git clone https://github.com/MyColorfulDays/jsonformatter.git
35+
$ cd jsonformatter
36+
$ pip install -e .
37+
```
3438

39+
Run tests
3540
```shell
36-
$ pip install jsonformatter
41+
$ python -m unittest tests/test.py
42+
$ python -m unittest tests/test_windows.py
3743
```
38-
or:
3944

45+
Build
4046
```shell
41-
$ git clone https://github.com/MyColorfulDays/jsonformatter.git
42-
$ cd jsonformatter
43-
$ python setup.py install
47+
$ pip install build
48+
$ python -m build
4449
```
4550

4651

52+
## Installation
53+
54+
jsonformatter is available on PyPI.
55+
Use pip to install:
56+
57+
```shell
58+
$ pip install jsonformatter
59+
```
60+
4761

4862
## Basic Usage
4963

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[build-system]
2+
requires = ["pdm-pep517>=1.1.2"]
3+
build-backend = "pdm.pep517.api"
4+
5+
[project]
6+
name = "jsonformatter"
7+
version = "0.3.3"
8+
description = 'Python log in json format.'
9+
readme = "README.md"
10+
license = "BSD License"
11+
license-files.paths = [
12+
"LICENSE",
13+
]
14+
classifiers = [
15+
'Development Status :: 2 - Pre-Alpha',
16+
'Intended Audience :: Developers',
17+
'License :: OSI Approved :: BSD License',
18+
'Operating System :: OS Independent',
19+
'Programming Language :: Python :: 2.7',
20+
'Programming Language :: Python :: 3',
21+
'Programming Language :: Python :: Implementation :: CPython',
22+
'Topic :: Utilities',
23+
]
24+
authors = [
25+
{ name = "MyColorfulDays", email = "[email protected]" },
26+
]
27+
urls = { Homepage = "https://github.com/MyColorfulDays/jsonformatter.git" }
28+
requires-python = ">=2.7"
29+
dependencies = []

setup.py

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
"""
5-
File: jsonformatter.py
6-
Author: Me
7-
8-
Github: https://github.com/yourname
9-
Description: jsonformatter.py
10-
"""
11-
from .jsonformatter import JsonFormatter, basicConfig
12-
13-
__all__ = ['JsonFormatter', 'basicConfig']
14-
15-
version_info = (0, 3, 2)
16-
version = '.'.join(str(v) for v in version_info)
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
File: jsonformatter.py
6+
Author: Me
7+
8+
Github: https://github.com/yourname
9+
Description: jsonformatter.py
10+
"""
11+
from .jsonformatter import JsonFormatter, basicConfig
12+
13+
__all__ = ['JsonFormatter', 'basicConfig']

0 commit comments

Comments
 (0)