Skip to content

Commit d6e74eb

Browse files
author
yufei.li
committed
gen
1 parent 06a45fa commit d6e74eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+13152
-202
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.bat]
14+
indent_style = tab
15+
end_of_line = crlf
16+
17+
[LICENSE]
18+
insert_final_newline = false
19+
20+
[Makefile]
21+
indent_style = tab
22+
23+
[*.{diff,patch}]
24+
trim_trailing_whitespace = false

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
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+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
# IDE / Editor
107+
.idea/
108+
.vscode/
109+
~*

.gitlab-ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This file is a template, and might need editing before it works on your project.
2+
# Official language image. Look for the different tagged releases at:
3+
# https://hub.docker.com/r/library/python/tags/
4+
image: python:latest
5+
6+
# Change pip's cache directory to be inside the project directory since we can
7+
# only cache local items.
8+
variables:
9+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
10+
PIP_INDEX_URL: "https://pypi.douban.com/simple/"
11+
12+
# Pip's cache doesn't store the python packages
13+
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
14+
#
15+
# If you want to also cache the installed packages, you have to install
16+
# them in a virtualenv and cache it as well.
17+
cache:
18+
paths:
19+
- .cache/pip
20+
- venv/
21+
22+
before_script:
23+
- python -V # Print out python version for debugging
24+
- pip install -i $PIP_INDEX_URL virtualenv
25+
- virtualenv venv
26+
- source venv/bin/activate
27+
- pip install -i $PIP_INDEX_URL -r requirements.txt
28+
- pip install -e .
29+
30+
test:
31+
script:
32+
- pip install -i $PIP_INDEX_URL pytest
33+
- make test
34+
tags:
35+
- uaek
36+
37+
test-acc:
38+
script:
39+
- make testacc
40+
tags:
41+
- uaek
42+
only:
43+
- master
44+
45+
run:
46+
script:
47+
- python examples/uhost/main.py
48+
tags:
49+
- uaek
50+
51+
pages:
52+
script:
53+
- pip install sphinx
54+
- make docs
55+
- mv docs/build/html/ public/
56+
artifacts:
57+
paths:
58+
- public
59+
only:
60+
- master
61+
tags:
62+
- uaek

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Config file for automatic testing at travis-ci.org
2+
3+
language: python
4+
python:
5+
- 3.7
6+
- 3.6
7+
- 3.5
8+
9+
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
10+
install: pip install -U tox-travis
11+
12+
# command to run tests, e.g. python setup.py test
13+
script: tox
14+
15+
# deploy new versions to PyPI
16+
deploy:
17+
provider: pypi
18+
distributions: sdist bdist_wheel
19+
skip_existing: true
20+
user: ucloud
21+
password:
22+
secure: PLEASE_REPLACE_ME
23+
on:
24+
tags: true
25+
repo: ucloud/ucloud-sdk-python3
26+
python: 3.7
27+

0 commit comments

Comments
 (0)