-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix encoding issues semver support skipperize remove upseto
- Loading branch information
1 parent
d08bdcc
commit 3f4cd59
Showing
24 changed files
with
327 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
*.pyc | ||
*.swp | ||
.idea | ||
__pycache__ | ||
dist | ||
build | ||
*.egg-info | ||
*.stratolog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM rackattack-nas.dc1:5000/ubuntu-dev-base:379308aa77bd0a19ebf12d868e7d19ee35a19d6c | ||
RUN apt-get install -y python2.7 python2.7-dev | ||
RUN curl 'https://bootstrap.pypa.io/pip/2.7/get-pip.py' | python2.7 | ||
COPY requirements.txt /tmp/requirements.txt | ||
COPY dev-requirements.txt /tmp/dev-requirements.txt | ||
RUN python2.7 -m pip install -r /tmp/requirements.txt -r /tmp/dev-requirements.txt | ||
RUN python3 -m pip install -r /tmp/requirements.txt -r /tmp/dev-requirements.txt | ||
RUN rm /tmp/requirements.txt /tmp/dev-requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
all: test check_convention | ||
.PHONY: all test build test_py2 test_py3 lint_py2 lint_py3 | ||
ARTIFACT=dist/strato_common_log-*-py2.py3-none-any.whl | ||
all: lint test build | ||
|
||
test: | ||
PYTHONPATH=$(PWD)/py python py/strato/common/log/tests/test.py | ||
test: test_py2 test_py3 | ||
|
||
check_convention: | ||
pep8 py --max-line-length=109 | ||
test_py3: | ||
PYTHONPATH=$(PWD)/py python3 py/strato/common/log/tests/test.py | ||
|
||
test_py2: | ||
PYTHONPATH=$(PWD)/py python2.7 py/strato/common/log/tests/test.py | ||
|
||
lint: lint_py2 lint_py3 | ||
|
||
lint_py3: | ||
python3 -m pep8 py --max-line-length=120 | ||
|
||
lint_py2: | ||
python2.7 -m pep8 py --max-line-length=120 | ||
|
||
build: $(ARTIFACT) | ||
|
||
clean: | ||
find . -name *.pyc -delete | ||
find . -name __pycache__ -delete | ||
rm -rf dist */*.egg-info build *.stratolog | ||
|
||
$(ARTIFACT): | ||
python3 -m build --wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# pycommonlog | ||
|
||
# Build | ||
```bash | ||
skipper make -i all | ||
``` | ||
|
||
# Demo | ||
|
||
```python | ||
from strato.common.log import configurelogging | ||
configurelogging.configureLogging('test-strato-log', forceDirectory=".") | ||
import logging # noqa: E402 | ||
logging.warning('Running test') | ||
logging.error('Running test') | ||
logging.progress('Running test') | ||
logging.step('Running test') | ||
logging.critical('Running test') | ||
logging.success('Running test') | ||
logging.debug('Running test') | ||
try: | ||
raise Exception('Test exception') | ||
except Exception: | ||
logging.exception('Running test') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pips: | ||
- dist/strato_common_log-*-py2.py3-none-any.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build | ||
pep8 | ||
ipdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
import upseto.pythonnamespacejoin | ||
__path__.extend(upseto.pythonnamespacejoin.join(globals())) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
import upseto.pythonnamespacejoin | ||
__path__.extend(upseto.pythonnamespacejoin.join(globals())) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.