Skip to content

Commit 7b8d4cc

Browse files
authored
Merge pull request #9 from 1415003719/2024-10
support 2024-10 version
2 parents 9f272ab + ed9dfe5 commit 7b8d4cc

File tree

123 files changed

+7195
-1
lines changed

Some content is hidden

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

123 files changed

+7195
-1
lines changed

.github/workflows/release.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This code was auto generated by AfterShip SDK Generator.
2+
# Do not edit the class manually.
3+
4+
name: Release to PyPI
5+
6+
on:
7+
push:
8+
tags:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup Python # Set Python version
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: 3.11
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip poetry
24+
poetry config virtualenvs.in-project --unset
25+
make install
26+
27+
- name: Build
28+
run: |
29+
make build
30+
31+
- name: Format
32+
run: |
33+
make format
34+
35+
- name: Get the version
36+
id: get_version
37+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
38+
39+
- name: Upload artifact
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: ${{ steps.get_version.outputs.VERSION }}
43+
path: dist
44+
45+
- name: Release to PyPI
46+
run: |
47+
pip install twine
48+
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/*

.gitignore

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints
67+
68+
tests/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 AfterShip
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.

Makefile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: build
2+
3+
install:
4+
poetry install
5+
6+
test:
7+
poetry run pytest tests/ -v
8+
9+
record:
10+
poetry run pytest tests/ --vcr-record=new_episodes
11+
12+
format:
13+
poetry run ruff check --fix
14+
poetry run ruff format
15+
16+
build:
17+
poetry build

README.md

+269-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)