Skip to content

Commit ba0bfd1

Browse files
committed
add: first commit
0 parents  commit ba0bfd1

File tree

12 files changed

+260
-0
lines changed

12 files changed

+260
-0
lines changed

.coveragerc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[run]
2+
parallel = true
3+
branch = true
4+
source = os_m3_engine
5+
6+
[paths]
7+
source =
8+
src/os_m3_engine
9+
.tox/*/lib/python*/site-packages/os_m3_engine

.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
# vscode
104+
.vscode/
105+
106+
# pytest
107+
.pytest_cache/

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: python
2+
sudo: false
3+
matrix:
4+
include:
5+
- python: 2.7
6+
env: TOXENV=py27
7+
- python: 3.6
8+
env: TOXENV=py36
9+
- env: TOXENV=coverage
10+
install:
11+
- pip install -U pip tox codecov
12+
script:
13+
- tox
14+
after_success:
15+
- codecov
16+
deploy:
17+
provider: pypi
18+
user: cfhamlet
19+
password:
20+
true:
21+
tags: true
22+
condition: ${TOXENV} == py27

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 cfhamlet
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include LICENSE
2+
include README.md
3+
include MANIFEST.in
4+
include src/os_m3_engine/VERSION
5+
recursive-include tests *.py
6+

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# os-m3-engine
2+
3+
[![Build Status](https://www.travis-ci.org/cfhamlet/os-m3-engine.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-m3-engine)
4+
[![codecov](https://codecov.io/gh/cfhamlet/os-m3-engine/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-m3-engine)
5+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-m3-engine.svg)](https://pypi.python.org/pypi/os-m3-engine)
6+
[![PyPI](https://img.shields.io/pypi/v/os-m3-engine.svg)](https://pypi.python.org/pypi/os-m3-engine)
7+
8+
9+
Multithread engine for 3(or 2) stage job.
10+
11+
12+
# Install
13+
14+
`pip install os-m3-engine`
15+
16+
# Usage
17+
18+
19+
20+
# Unit Tests
21+
22+
`$ tox`
23+
24+
# License
25+
26+
MIT licensed.

pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pytest]
2+
addopts = -s --fulltrace
3+
env =
4+
COVERAGE = true
5+

requirements.txt

Whitespace-only changes.

setup.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from setuptools import setup, find_packages
2+
3+
4+
def read(*filenames, **kwargs):
5+
import io
6+
from os.path import join, dirname
7+
encoding = kwargs.get('encoding', 'utf-8')
8+
sep = kwargs.get('sep', '\n')
9+
buf = []
10+
for filename in filenames:
11+
with io.open(join(dirname(__file__), filename), encoding=encoding) as f:
12+
buf.append(f.read())
13+
return sep.join(buf)
14+
15+
16+
setup(
17+
name='os-m3-engine',
18+
version=read('src/os_m3_engine/VERSION'),
19+
packages=find_packages(where='src'),
20+
package_dir={'': 'src'},
21+
include_package_data=True,
22+
license='MIT License',
23+
description='3 stage multithread engine.',
24+
long_description=open('README.md').read(),
25+
author='Ozzy',
26+
author_email='cfhamlet@gmail.com',
27+
url='https://github.com/cfhamlet/os-m3-engine',
28+
zip_safe=False,
29+
classifiers=[
30+
'Development Status :: 2 - Pre-Alpha',
31+
'Intended Audience :: Developers',
32+
'License :: OSI Approved :: MIT License',
33+
'Natural Language :: English',
34+
'Programming Language :: Python :: 2',
35+
'Programming Language :: Python :: 2.7',
36+
'Programming Language :: Python :: 3',
37+
'Programming Language :: Python :: 3.6',
38+
'Programming Language :: Python :: Implementation :: CPython',
39+
])

src/os_m3_engine/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1

0 commit comments

Comments
 (0)