-
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.
Merge pull request #3 from MissterHao/readme
Add Readme and Github Action
- Loading branch information
Showing
9 changed files
with
227 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Upload Python Package to PyPI | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release new version | ||
|
||
on: | ||
push: | ||
branches: | ||
- readme | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
- 3.9 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} Environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements/coverage.txt | ||
- name: Coverage Test | ||
run: | | ||
coverage run runtests.py | ||
coverage report | ||
- name: Set env | ||
run: | | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
echo "STRIP_RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | ||
- name: Build | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
python setup.py sdist bdist_wheel | ||
- name: Archive wheel artifacts file | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: django-dysession-${{ env.RELEASE_VERSION }}-artifacts | ||
path: | | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
include LICENSE | ||
include README* | ||
recursive-include django-dysession *.py | ||
include README.md | ||
include MANIFEST.in | ||
include dysession/version.txt | ||
recursive-include django-dysession *.py | ||
graft dysession | ||
graft tests | ||
global-exclude __pycache__ | ||
global-exclude *.py[co] |
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
1.0.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,40 +1,45 @@ | ||
[metadata] | ||
name = django-dysession | ||
version = 0.0.1 | ||
description = django-dysession is a django extension by using AWS DynamoDB as a session backend | ||
long_description = file:README.md | ||
version = file: dysession/version.txt | ||
description = "django-dysession is a django extension which integrated AWS DynamoDB as a session backend" | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
keywords = "django,session,aws,dynamodb" | ||
url = https://github.com/MissterHao/django-dysession | ||
download_url = "https://pypi.org/project/django-dysession/" | ||
url = "https://github.com/MissterHao/django-dysession/" | ||
download_url = "https://github.com/MissterHao/django-dysession/" | ||
author = "Hao-Wei, Li" | ||
author_email = "[email protected]" | ||
maintainer = "MissterHao" | ||
maintainer_email = "[email protected]" | ||
license = MIT | ||
license_files = LICENSE | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Web Environment | ||
Framework :: Django | ||
Framework :: Django :: 3.2 | ||
Framework :: Django :: 4 | ||
Framework :: Django :: 4.0 | ||
Framework :: Django :: 4.1 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation | ||
Topic :: Software Development :: Libraries :: Application Frameworks | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Internet :: WWW/HTTP :: Session | ||
Topic :: Security | ||
Topic :: Database | ||
|
||
[options] | ||
packages=find: | ||
include_package_data = true | ||
python_requires = >=3.6 | ||
python_requires = >=3.8 | ||
setup_requires = | ||
setuptools >= 38.3.0 | ||
install_requires = | ||
Django>=3.2 | ||
Django>=3.2 | ||
boto3>=1.26.59 |