forked from doableware/djongo
-
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.
added python publish and fix to connection handling
- Loading branch information
Showing
3 changed files
with
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
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
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 |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
|
||
LONG_DESCRIPTION = """ | ||
This is a Fork from Certego S.R.L. | ||
Use Mongodb as a backend database for your django project, without changing a | ||
single django model! | ||
|
@@ -84,21 +86,21 @@ def find_version(*file_paths): | |
|
||
install_requires = [ | ||
'sqlparse==0.4.2', | ||
'pymongo>=3.2.0,<4.0.0', | ||
'pymongo>=3.2.0,<5.0.0', | ||
'django>=2.1', | ||
] | ||
|
||
if sys.version_info.major == 3 and sys.version_info.minor < 7: | ||
install_requires.append("dataclasses") | ||
|
||
setup( | ||
name='djongo', | ||
name='djongo-certego', | ||
version=find_version("djongo", "__init__.py"), | ||
include_package_data=True, | ||
packages=packages, | ||
url='https://www.djongomapper.com/', | ||
license='AGPL', | ||
author='doableware', | ||
author='Certego S.R.L.', | ||
author_email='[email protected]', | ||
description=( | ||
'Driver for allowing Django to use MongoDB as the database backend.'), | ||
|