-
Notifications
You must be signed in to change notification settings - Fork 0
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
2efd0bc
commit 80504d2
Showing
10 changed files
with
74 additions
and
9 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: test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python # Set Python version | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Test with pytest | ||
run: | | ||
pip install pytest | ||
pytest cache | ||
- name: Code quality with flake8 | ||
run: | | ||
pip install flake8 | ||
flake8 cache --exclude gen | ||
- name: Build package | ||
run: | | ||
pip install build | ||
python3 -m build | ||
- name: Upload package to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
repository_url: https://upload.pypi.org/legacy/ | ||
build_dir: dist |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
__pycache__/ | ||
venv/ | ||
.mypy_cache | ||
.pytest_cache | ||
.pytest_cache | ||
*.egg-info/ | ||
build/ | ||
dist/ |
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
Empty file.
Empty file.
Empty file.
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,21 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name='thriftcacheserver', | ||
version='1.0', | ||
description='A cache server using thrift', | ||
url='https://github.com/codophobia/key-value-cache-thrift-python', | ||
entry_points={ | ||
'console_scripts': [ | ||
'thriftcacheserver = cache.__main__:main', | ||
] | ||
}, | ||
author='Shivam Mitra', | ||
author_email='[email protected]', | ||
license='APACHE', | ||
packages=find_packages(include=['cache', 'cache.*']), | ||
install_requires=[ | ||
'thrift', | ||
], | ||
zip_safe=False | ||
) |