Skip to content

Commit

Permalink
Fixed PyPI install bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ableinc committed Aug 30, 2020
1 parent eb9b817 commit e095e35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -51,7 +51,7 @@ pip install --upgrade mongrations
```
or install locally
```bash
sudo python setup.py install
python setup.py install
```

# Use
Expand Down
4 changes: 2 additions & 2 deletions mongrations/connect.py
@@ -1,9 +1,9 @@
from os import environ
from pymongo import MongoClient
import motor.motor_asyncio as motor
try:
import pymysql.cursors
import psycopg2
from pymongo import MongoClient
import motor.motor_asyncio as motor
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion mongrations/version.py
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
5 changes: 1 addition & 4 deletions setup.py
Expand Up @@ -13,9 +13,6 @@
with open("README.md", "r") as fh:
long_description = fh.read()

with open('requirements.txt', 'r') as reqs:
dependencies = reqs.readlines()


class InstallWrapper(install):
psycopg2_url = 'https://github.com/psycopg/psycopg2/archive/master.zip'
Expand Down Expand Up @@ -82,7 +79,7 @@ def install_postgres(self):
[console_scripts]
mongrations=mongrations.cli:cli
''',
install_requires=dependencies,
install_requires=['Click', 'motor', 'pydotenvs', 'pymongo', 'PyMySQL', 'requests'],
cmdclass={'develop': InstallWrapper},
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit e095e35

Please sign in to comment.