Skip to content

[Cleanup] Move connector files to root #2

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

Merged
merged 6 commits into from
Jun 7, 2022
Merged

Conversation

susodapop
Copy link
Contributor

Description

This PR moves all the source code into the root of the repository. The previous nesting was the result of retaining the commit history when this connector was part of another Databricks repository.

  • Relocates all files to root
  • Renames HISTORY -> CHANGELOG.md
  • Updates pyproject.toml so that the CHANGELOG will be copied into the distribution package
  • Adds LICENSE file with the Apache 2.0 license text.

@susodapop susodapop requested review from arikfr, a team and dragqueen95 and removed request for a team May 31, 2022 23:02
@dragqueen95 dragqueen95 requested a review from benfleis June 2, 2022 14:41
@moderakh moderakh self-requested a review June 2, 2022 17:09
Copy link
Collaborator

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

As we are re-structuring the files, and there is no CI running on the PR at the moment, we potentially may break something.

I wonder when you are planning to enable a CI on the repo? Is it possible to enable any sort of basic CI before doing any more structural changes? (maybe for start just a CI to run the basic unit test but not the end to end test)? (this doesn't need to be in this PR) what do you think @susodapop?

cryptography==35.0.0
thrift==0.13.0
pandas==1.3.4
future==0.18.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see this file is not moved, but removed. isn't the list of dependencies, dev_requirements.txt required anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After we merged #1, the dev environment specification is contained in pyproject.toml so there's no need for a separate dev_requirements.txt file. If we need to add more development dependencies in the future we can do that from the command line with poetry add <package name> --dev.

@@ -1,31 +0,0 @@
[metadata]
name = databricks-sql-connector
Copy link
Collaborator

Choose a reason for hiding this comment

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

did another file replace this file now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, as part of #1 we replaced setup.cfg with pyproject.toml since we're using poetry instead of distutils for build / publish now.

@susodapop
Copy link
Contributor Author

Good points about unit testing.

We can't add automated CI tests without additional commits. But I can run these tests manually. I'm working on that now.

@moderakh moderakh self-requested a review June 2, 2022 21:38
Copy link
Collaborator

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

LGTM. thanks @susodapop

unit tests to fail.
@susodapop susodapop merged commit a7af04c into main Jun 7, 2022
@susodapop susodapop deleted the idiomatic-layout branch June 7, 2022 20:26
PeterDKay referenced this pull request in sede-open/databricks-sql-python May 25, 2023
Base.py alembic debugging line removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants