Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the "ModuleNotFoundError: No module named 'gitdb.utils.compat'" #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ python:

install:
- pip install -r requirements.txt
- python setup.py install

script:
- nosetests
- python setup.py install
- nosetests -v --verbosity=3 --failure-detail

notifications:
webhooks:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GitPython==0.3.6
GitPython==3.1.3
nose==1.3.4
bottle==0.12.7
ply==3.4
Expand Down
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,22 @@


from setuptools import setup, find_packages
from pip.req import parse_requirements
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
import os

dir = os.path.dirname(os.path.abspath(__file__))
version = {}
with open(os.path.join(dir, "schwa", "version.py")) as fp:
exec(fp.read(), version)

requirements = [str(ir.req) for ir in parse_requirements("requirements.txt", session=True)]
install_reqs = parse_requirements("requirements.txt", session=False)
try:
requirements = [str(ir.req) for ir in install_reqs]
except:
requirements = [str(ir.requirement) for ir in install_reqs]
packages = find_packages('.')

setup(name='Schwa',
Expand Down