Skip to content

Commit 4771148

Browse files
authored
Merge pull request #25 from messente/travis
release version 2.5.1
2 parents cccfc7c + 2d354d5 commit 4771148

File tree

8 files changed

+92
-38
lines changed

8 files changed

+92
-38
lines changed

.github/workflows/python.yml

Lines changed: 70 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,80 @@
1-
# NOTE: This file is auto generated by OpenAPI Generator.
2-
# URL: https://openapi-generator.tech
3-
#
4-
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
1+
# NOTE: This file is auto-generated by OpenAPI Generator.
52

6-
name: messente_api Python package
3+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
74

8-
on: [push, pull_request]
5+
on: push
96

107
jobs:
118
build:
12-
9+
name: Build distribution 📦
1310
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1711

1812
steps:
1913
- uses: actions/checkout@v4
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
2214
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r test-requirements.txt
29-
- name: Test with pytest
30-
run: |
31-
pytest --cov={{packageName}}
15+
persist-credentials: false
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.x'
20+
- name: Install pypa/build
21+
run: python3 -m pip install build --user
22+
- name: Build a binary wheel and a source tarball
23+
run: python3 -m build
24+
- name: Store the distribution packages
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: python-package-distributions
28+
path: dist/
29+
30+
publish-to-pypi:
31+
name: Publish Python 🐍 distribution 📦 to PyPI
32+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
33+
needs:
34+
- build
35+
runs-on: ubuntu-latest
36+
environment:
37+
name: pypi
38+
url: https://pypi.org/p/messente-api
39+
permissions:
40+
id-token: write # IMPORTANT: mandatory for trusted publishing
41+
42+
steps:
43+
- name: Download all the dists
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: python-package-distributions
47+
path: dist/
48+
- name: Publish distribution 📦 to PyPI
49+
uses: pypa/gh-action-pypi-publish@release/v1
50+
51+
github-release:
52+
name: Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release
53+
needs:
54+
- publish-to-pypi
55+
runs-on: ubuntu-latest
56+
permissions:
57+
contents: write # IMPORTANT: mandatory for making GitHub Releases
58+
id-token: write # IMPORTANT: mandatory for sigstore
59+
steps:
60+
- name: Download all the dists
61+
uses: actions/download-artifact@v4
62+
with:
63+
name: python-package-distributions
64+
path: dist/
65+
- name: Sign the dists with Sigstore
66+
uses: sigstore/gh-action-sigstore-python@v3.0.0
67+
with:
68+
inputs: >-
69+
./dist/*.tar.gz
70+
./dist/*.whl
71+
- name: Upload artifact signatures to GitHub Release
72+
env:
73+
GITHUB_TOKEN: $
74+
# Upload to GitHub Release using the `gh` CLI.
75+
# `dist/` contains the built packages, and the
76+
# sigstore-produced signatures and certificates.
77+
run: >-
78+
gh release upload
79+
'$' dist/**
80+
--repo '$'

.travis.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
12
language: python
2-
3-
script:
4-
- echo "skipping tests"
5-
6-
deploy:
7-
provider: pypi
8-
user: messente
9-
password:
10-
secure: T6b+hfVKTyJUUprT/7c6+nuEpqjENHWbZ5OrFLq/fo0N++aUgB7/VgsY7L2U9vmuog2xf34Di0C66fe/Tmy5czc+iXbwSnS6uP0aJk6dnERrdhiarUHgsDq4/txx59qYXZfelCO38M54GBPAlDzVp5/ONocbOrrJUPnt++0t/ocwbq2x5m6RSycJCEBWjxkBuLclrIkUvI+0IgJl/CXUro2OeVUg4J7rrwI68XAKAZF2SOQm/V3Ak30ax7CE2XFScVSvfz2g5kJbvtamFwdPRAwA5ThU4q6TDlL49DEblZCSKzAwOTkKkIkjFY5m6PPkNnxFAEsBjRyU5tl+T1pPvM0Gd/AY3lBXruRbU8SmGJgZbz59q1SQ1NRm5gHKpFEQ0kwWJvEJMOwRDLH16nFY4XX15ffVWFqw8Pkaso6NV6RTRVFTV3rVY2YPa1ili2QvkHYjejMZRDG+13MR+gJGWbjU2Uql3kj/QbIBFMyzXcfbLSpdn65KkzI5Svvzl/CsBZ0NsXIhH8rRsK464bZUuDY7qLbNca4IxARZRb2jH9C3Zas4kjJzl9J5TjkZTc8HTl+5PB8k+XsBaPSa1BvGvS3YEpQF6mVOr/SkQGX/yMV/WcmZJekSaWVrgdt5twPlfah0bwfKx60FKJqQYP2+2HeoA56UPrwSGT5ocz0wQC8=
11-
on:
12-
tags: true
3+
python:
4+
- "3.8"
5+
- "3.9"
6+
- "3.10"
7+
- "3.11"
8+
- "3.12"
9+
# uncomment the following if needed
10+
#- "3.12-dev" # 3.12 development branch
11+
#- "nightly" # nightly build
12+
# command to install dependencies
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
16+
# command to run tests
17+
script: pytest --cov=messente_api

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Python package version: 2.5.0
4+
- Python package version: 2.5.1
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

messente_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "2.5.0"
18+
__version__ = "2.5.1"
1919

2020
# import apis into sdk package
2121
from messente_api.api.account_balance_api import AccountBalanceApi

messente_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/2.5.0/python'
94+
self.user_agent = 'OpenAPI-Generator/2.5.1/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

messente_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def to_debug_report(self) -> str:
559559
"OS: {env}\n"\
560560
"Python Version: {pyversion}\n"\
561561
"Version of the API: 2.0.0\n"\
562-
"SDK Package Version: 2.5.0".\
562+
"SDK Package Version: 2.5.1".\
563563
format(env=sys.platform, pyversion=sys.version)
564564

565565
def get_host_settings(self) -> List[HostSetting]:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "messente_api"
3-
version = "2.5.0"
3+
version = "2.5.1"
44
description = "Messente API"
55
authors = ["Messente <messente@messente.com>"]
66
license = "Apache-2.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "messente-api"
25-
VERSION = "2.5.0"
25+
VERSION = "2.5.1"
2626
PYTHON_REQUIRES = ">= 3.8"
2727
REQUIRES = [
2828
"urllib3 >= 1.25.3, < 3.0.0",

0 commit comments

Comments
 (0)