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

Commit 1ae460c

Browse files
Merge pull request #13 from AfterShip/refresh
New version of Python SDK
2 parents c9efd41 + 4ee3627 commit 1ae460c

Some content is hidden

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

46 files changed

+4051
-447
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 119
3+
exclude = venv,build,.tox,setup.py,tests,docs

.gitignore

Lines changed: 112 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,122 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
15

6+
# C extensions
7+
*.so
28

3-
# =========================== DO NOT touch below v1.0.2 ===============================
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
427

5-
.idea
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
633

34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
737

8-
# =============== OSX.gitignore
9-
.DS_Store
10-
.AppleDouble
11-
.LSOverride
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
1277

13-
# Thumbnails
14-
._*
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+
# macOS cache
107+
.DS_Store
15108

16-
# =============== # Windows image file caches
17-
Thumbs.db
18-
ehthumbs.db
109+
# IntelliJ Or PyCharm settings
110+
.idea/
19111

20-
# Folder config file
21-
Desktop.ini
112+
# Emacs
113+
*~
114+
.*~
115+
.#*
116+
\#*#
22117

23-
# Recycle Bin used on file shares
24-
$RECYCLE.BIN/
118+
# Environment files
119+
.envrc
25120

26-
# Except the .htpassed
27-
!.htpasswd
121+
# VS code settings
122+
.vscode/

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: python
2+
install: "make"
3+
4+
python:
5+
- "3.5"
6+
- "3.6"
7+
- "3.7"
8+
- "3.8"
9+
- "pypy3"
10+
11+
install:
12+
- make install
13+
14+
script:
15+
- make test

LICENSE.txt renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 AFTERSHIP LTD
3+
Copyright (c) 2020 AFTERSHIP LTD
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.rst LICENSE VERSION requirements.txt
2+
recursive-include aftership

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.PHONY: docs clean
2+
3+
install:
4+
pip install --upgrade .
5+
pip install -r requirements-dev.txt
6+
7+
test:
8+
cd tests && py.test
9+
10+
record:
11+
cd tests && py.test --vcr-record=new_episodes
12+
13+
flake8:
14+
flake8
15+
16+
docs:
17+
cd docs && make html
18+
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
19+
20+
build:
21+
python setup.py sdist --formats=gztar,zip
22+
python setup.py sdist bdist_wheel
23+
24+
clean:
25+
-rm -r docs/_build
26+
-rm -r build dist aftership.egg-info

0 commit comments

Comments
 (0)