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

add Database, MySQLDatabase, and PostgresDatabase to __init__.py #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chhsiung
Copy link
Contributor

@chhsiung chhsiung commented May 5, 2020

No description provided.

@@ -0,0 +1 @@
from .main import Database, MySQLDatabase, PostgresDatabase
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If both MysqlDatabase and PostgresDatabaseinherit fromDatabase` do you need to import the base class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the base class

Copy link
Contributor

@dimitrylukashov dimitrylukashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for the use of the requirements.txt. pip3 setup.py sdist bdist_wheel should just work.

@@ -22,6 +22,9 @@ commands:
pip:
type: string
steps:
- run:
name: Install dependencies
command: << parameters.pip >> install -r requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this should not be merged.

Both the packaging (https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives) and setuptools docs (https://setuptools.readthedocs.io/en/latest/setuptools.html) recommend updating setuptools and wheels first.

@@ -22,6 +22,9 @@ commands:
pip:
type: string
steps:
- run:
name: Install dependencies
command: << parameters.pip >> install -r requirements.txt
- run:
name: Package the repo into a wheel
command: << parameters.python >> setup.py bdist_wheel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may need an sdist command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants