Skip to content

Commit 786e6be

Browse files
authored
Merge pull request #167 from mailersend/feature/issue-7744/sdk-v2
Feature/issue 7744/sdk v2
2 parents a9d3fc0 + 8f2bf90 commit 786e6be

456 files changed

Lines changed: 59529 additions & 3640 deletions

File tree

Some content is hidden

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

.envrc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
layout_poetry
1+
layout_poetry() {
2+
PYPROJECT_TOML="${PYPROJECT_TOML:-pyproject.toml}"
3+
if [[ ! -f "$PYPROJECT_TOML" ]]; then
4+
log_status "No pyproject.toml found. Executing \`poetry init\` to create a \`$PYPROJECT_TOML\` first."
5+
poetry init
6+
fi
7+
8+
VIRTUAL_ENV=$(poetry env info --path 2>/dev/null ; true)
9+
10+
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
11+
log_status "No virtual environment exists. Executing \`poetry install\` to create one."
12+
poetry install
13+
VIRTUAL_ENV=$(poetry env info --path)
14+
fi
15+
16+
PATH_add "$VIRTUAL_ENV/bin"
17+
export POETRY_ACTIVE=1
18+
export VIRTUAL_ENV
19+
}
20+
21+
layout_poetry

.gitignore

Lines changed: 17 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Created by https://www.gitignore.io/api/python
2+
3+
### Python ###
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]
@@ -8,6 +11,7 @@ __pycache__/
811

912
# Distribution / packaging
1013
.Python
14+
env/
1115
build/
1216
develop-eggs/
1317
dist/
@@ -19,12 +23,9 @@ lib64/
1923
parts/
2024
sdist/
2125
var/
22-
wheels/
23-
share/python-wheels/
24-
.installed.cfg
2526
*.egg-info/
27+
.installed.cfg
2628
*.egg
27-
MANIFEST
2829

2930
# PyInstaller
3031
# Usually these files are written by a python script from a template
@@ -39,18 +40,13 @@ pip-delete-this-directory.txt
3940
# Unit test / coverage reports
4041
htmlcov/
4142
.tox/
42-
.nox/
4343
.coverage
4444
.coverage.*
4545
.cache
4646
nosetests.xml
4747
coverage.xml
48-
*.cover
49-
*.py,cover
48+
*,cover
5049
.hypothesis/
51-
.pytest_cache/
52-
cover/
53-
test.py
5450

5551
# Translations
5652
*.mo
@@ -59,8 +55,6 @@ test.py
5955
# Django stuff:
6056
*.log
6157
local_settings.py
62-
db.sqlite3
63-
db.sqlite3-journal
6458

6559
# Flask stuff:
6660
instance/
@@ -73,69 +67,31 @@ instance/
7367
docs/_build/
7468

7569
# PyBuilder
76-
.pybuilder/
7770
target/
7871

79-
# Jupyter Notebook
72+
# IPython Notebook
8073
.ipynb_checkpoints
8174

82-
# IPython
83-
profile_default/
84-
ipython_config.py
85-
8675
# pyenv
87-
# For a library or package, you might want to ignore these files since the code is
88-
# intended to run in multiple environments; otherwise, check them in:
89-
# .python-version
90-
91-
# pipenv
92-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95-
# install all needed dependencies.
96-
#Pipfile.lock
76+
.python-version
9777

98-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
99-
__pypackages__/
100-
101-
# Celery stuff
78+
# celery beat schedule file
10279
celerybeat-schedule
103-
celerybeat.pid
104-
105-
# SageMath parsed files
106-
*.sage.py
10780

108-
# Environments
81+
# dotenv
10982
.env
110-
.venv
111-
env/
83+
84+
# virtualenv
85+
.venv/
11286
venv/
11387
ENV/
114-
env.bak/
115-
venv.bak/
11688

11789
# Spyder project settings
11890
.spyderproject
119-
.spyproject
91+
.cursorrules
12092

12193
# Rope project settings
12294
.ropeproject
123-
124-
# mkdocs documentation
125-
/site
126-
127-
# mypy
128-
.mypy_cache/
129-
.dmypy.json
130-
dmypy.json
131-
132-
# Pyre type checker
133-
.pyre/
134-
135-
# pytype static type analyzer
136-
.pytype/
137-
138-
# Cython debug symbols
139-
cython_debug/
140-
.idea
141-
.pypirc
95+
.vscode
96+
toolset.py
97+
doctester.py

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include README.rst
2+
include LICENSE
3+
include VERSION
4+
include requirements.txt
5+
include tasks.py

0 commit comments

Comments
 (0)