Skip to content

Commit

Permalink
restructure pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias authored and Elias committed Feb 27, 2024
1 parent a316631 commit 7244b78
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 23 deletions.
12 changes: 2 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.sdist]
exclude = [
"pdfs/",
"configs/",
"testconfigs/",
".github/",
"helper/",
"dumpster/",
"*.bat",
]
[tool.hatch.build.targets.wheel]
packages = ["src/rosinenpicker"]

[project]
name = "rosinenpicker"
Expand Down
5 changes: 0 additions & 5 deletions src/rosinenpicker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
import os
import site

BASE_PATH = os.path.dirname(os.path.abspath(__file__))
site.addsitedir(BASE_PATH)
2 changes: 1 addition & 1 deletion src/rosinenpicker/data/pydantic_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pydantic import BaseModel, DirectoryPath, field_validator, model_validator, NewPath
from processing.patterns import Pattern
from rosinenpicker.processing.patterns import Pattern
from typing import Optional

class ConfigError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion src/rosinenpicker/processing/processors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pdfminer.high_level import extract_text
from docx import Document
import re
from processing.patterns import Pattern
from rosinenpicker.processing.patterns import Pattern

class DocumentProcessor:
text: str
Expand Down
12 changes: 6 additions & 6 deletions src/rosinenpicker/start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.1.14'
__version__ = '0.1.15'
# see content of __init__.py
import os
import sys
Expand All @@ -7,11 +7,11 @@
import shutil as sh
import pathlib as pl
import pandas as pd
from data.pydantic_models import Config, ConfigStrategy, ConfigError
from data.database import Base, DbRun, DbStrategy, DbProcessedFile, DbMatch
from utils.utils import file_sha256
from processing.exporter import BaseExporter, CSVExporter, XLSXExporter, HTMLExporter, JSONExporter
from processing.processors import DocumentProcessor, PDFProcessor, TXTProcessor, DOCXProcessor
from rosinenpicker.data.pydantic_models import Config, ConfigStrategy, ConfigError
from rosinenpicker.data.database import Base, DbRun, DbStrategy, DbProcessedFile, DbMatch
from rosinenpicker.utils.utils import file_sha256
from rosinenpicker.processing.exporter import BaseExporter, CSVExporter, XLSXExporter, HTMLExporter, JSONExporter
from rosinenpicker.processing.processors import DocumentProcessor, PDFProcessor, TXTProcessor, DOCXProcessor
from sqlalchemy import create_engine, select
from sqlalchemy.orm import sessionmaker, Session
import argparse
Expand Down

0 comments on commit 7244b78

Please sign in to comment.