-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ddf086
commit 91dbe7b
Showing
7 changed files
with
73 additions
and
52 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,47 @@ | ||
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 | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
skip_existing: true |
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/ | ||
|
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,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="[email protected]", | ||
description="Python SDK for Chapa API https://developer.chapa.co", | ||
name='chapa', | ||
version=version, | ||
author='Temkin Mengistu (Chapi)', | ||
author_email='[email protected]', | ||
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', | ||
], | ||
) |