Skip to content

Commit

Permalink
Merge pull request doableware#374 from jay20162016/fix_dependencies
Browse files Browse the repository at this point in the history
Remove bson, and dataclasses
nesdis authored Apr 18, 2020
2 parents de9cbd1 + 994f448 commit b95d2c4
Showing 3 changed files with 16 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@ language: python

python:
- "3.6"
- "3.7"
- "3.8"

install:
- wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
@@ -16,5 +18,4 @@ before_script:
- mongo --version

script:
- tox -e django_stable

- tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .)-django_stable
19 changes: 11 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
import os
import codecs
import re
import sys

LONG_DESCRIPTION = """
@@ -78,6 +79,15 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")

install_requires=[
'sqlparse==0.2.4',
'pymongo>=3.2.0',
'django>=2.0,<3',
'six>=1.13.0',
]

if sys.version_info.major < 3 or sys.version_info.minor < 7:
install_requires.append("dataclasses")

setup(
name='djongo',
@@ -90,14 +100,7 @@ def find_version(*file_paths):
author_email='[email protected]',
description=(
'Driver for allowing Django to use MongoDB as the database backend.'),
install_requires=[
'bson==0.5.8',
'sqlparse==0.2.4',
'pymongo>=3.2.0',
'django>=2.0,<3',
'dataclasses>=0.1',
'six>=1.13.0',
],
install_requires=install_requires,
extras_require=dict(
json=[
'jsonfield>=2.0.2',
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@

[tox]
envlist =
django{21, _stable}
py{36,37,38}-django{21, _stable}

[testenv]
basepython =
python3.6
python

commands_pre =
pip install tblib

0 comments on commit b95d2c4

Please sign in to comment.