Changed project structure for it to build correctly

This commit is contained in:
Andrew 2023-03-12 00:46:59 +07:00
parent a533dddf1a
commit 6858eeaebe
11 changed files with 45 additions and 2 deletions

3
pyproject.toml Normal file
View file

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

17
setup.cfg Normal file
View file

@ -0,0 +1,17 @@
[metadata]
name = based
version = 0.1.0
description = A simple, fast (maybe), and reliable (I hope) PostgreSQL ORM oriented for dynamic models.
author = nuark
author_email = me@nuark.xyz
license = MIT
[options]
packages = based
python_requires = >=3.7
include_package_data = True
package_dir =
=src
[bdist_wheel]
universal = 1

View file

@ -0,0 +1,8 @@
Metadata-Version: 2.1
Name: based
Version: 0.1.0
Summary: A simple, fast (maybe), and reliable (I hope) PostgreSQL ORM oriented for dynamic models.
Author: nuark
Author-email: me@nuark.xyz
License: MIT
Requires-Python: >=3.7

View file

@ -0,0 +1,9 @@
pyproject.toml
setup.cfg
src/based/__init__.py
src/based/columns.py
src/based/db.py
src/based.egg-info/PKG-INFO
src/based.egg-info/SOURCES.txt
src/based.egg-info/dependency_links.txt
src/based.egg-info/top_level.txt

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
based

4
src/based/__init__.py Normal file
View file

@ -0,0 +1,4 @@
__version__ = "0.1.0"
from .db import *
from .columns import *

View file

@ -1,7 +1,7 @@
import unittest
import uuid
from db import DBConnector, ColumnUpdate, ColumnCondition
from columns import *
from based.db import DBConnector, ColumnUpdate, ColumnCondition
from based.columns import *
conninfo = "postgresql://postgres:asarch6122@localhost"
connector = DBConnector(conninfo)