forked from chapimenge3/chapa
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Chapa-Et/main
Merge changes
- Loading branch information
Showing
10 changed files
with
119 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deployment | ||
|
||
# deploy package to pypi on condition of | ||
# push to main branch | ||
# and release published | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
Publish-Package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Version the package | ||
run: | | ||
echo "__version__ = '${{ github.ref_name }}'" > chapa/__init__.py | ||
export CHAPA_VERSION=${{ github.ref_name }} | ||
- name: Install pypa/build | ||
run: | | ||
python -m pip install build | ||
python -m pip install wheel twine setuptools | ||
- name: Build a binary wheel and a source tarball | ||
run: python -m build | ||
|
||
- name: Publish distribution 📦 to PyPI | ||
run: python -m twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ lib/ | |
lib64/ | ||
parts/ | ||
sdist/ | ||
dist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=42"] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
requests==2.27.1 | ||
requests==2.31.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
from ensurepip import version | ||
import setuptools | ||
import os | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
with open('README.md', 'r', encoding='utf-8') as fh: | ||
long_description = fh.read() | ||
|
||
version = os.environ.get('CHAPA_VERSION') | ||
|
||
setuptools.setup( | ||
name="Chapa", | ||
version="0.0.1", | ||
author="Temkin Mengistu, Chapi", | ||
author_email="chapimenge3@gmail.com", | ||
description="Python SDK for Chapa API https://developer.chapa.co", | ||
name='chapa', | ||
version=version, | ||
author='Temkin Mengistu (Chapi)', | ||
author_email='chapimenge3@gmail.com', | ||
description='Python SDK for Chapa API https://developer.chapa.co', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/chapimenge3/chapa", | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/chapimenge3/chapa', | ||
packages=['chapa'], | ||
package_dir={'chapa': 'chapa'}, | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/chapimenge3/chapa/issues", | ||
'Source': 'https://github.com/chapimenge3/chapa', | ||
'Bug Tracker': 'https://github.com/chapimenge3/chapa/issues', | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
'Programming Language :: Python :: 3', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
package_dir={"chapa": "chapa"}, | ||
packages=setuptools.find_packages(), | ||
python_requires=">=3.6", | ||
python_requires='>=3.6', | ||
install_requires=[ | ||
"requests", | ||
'requests', | ||
], | ||
) |