Skip to content

Commit

Permalink
Restructured project from flat-file to src
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieran-Lock committed Oct 17, 2023
1 parent aadb647 commit b2a8b5a
Show file tree
Hide file tree
Showing 58 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from schema import Person, Car, database
from pprint import pprint
from datetime import date
from sqliteframe import JoinTypes, OrderTypes
from src.sqliteframe import JoinTypes, OrderTypes


insert_person_1 = Person.insert_into({
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ authors = [
]
keywords = ["orm", "sqlite3", "schematics", "lightweight", "zero-dependency"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Intended Audience :: Developers"
Expand All @@ -23,3 +24,9 @@ build-backend = "setuptools.build_meta"
GitHub = "https://github.com/Kieran-Lock/SQLiteFrame"
Documentation = "https://sqliteframe-documentation.vercel.app/"
License = "https://github.com/Kieran-Lock/SQLiteFrame/blob/master/LICENSE"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
"*" = ["**/*"]
2 changes: 1 addition & 1 deletion schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sqliteframe import Database, table, String, Boolean, Date, Time, ForeignKey, Blob, Float, Integer, PreserveOrder
from src.sqliteframe import Database, table, String, Boolean, Date, Time, ForeignKey, Blob, Float, Integer, PreserveOrder
from datetime import date, time
from pathlib import Path

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
The module containing logic for columns when suggesting schemas.
"""

from sqliteframe import FKRestraints, Types
from ..foreign_key import Restraints as FKRestraints
from ..types import Types
from .unknown_type import UnknownType


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The logic for generating an entire suggested schema.
"""

from sqliteframe import Database
from ..database import Database
from sqlite3 import Cursor
from .table import Table

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"""

from typing import Generator
from sqliteframe import Pragma, PragmaStatements, PragmaTypes, Database
from ..pragma import PragmaStatements, PragmaTypes
from ..statements import Pragma
from ..database import Database
from .column import Column
from .fk_column import FKColumn

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b2a8b5a

Please sign in to comment.