Skip to content

Commit

Permalink
Moved non-integrated parts out of main source tree
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Mar 29, 2020
1 parent 1b5aacb commit 7b07649
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 22 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ packages = [

[tool.poetry.scripts]
macrogen = 'macrogen.main:main'
witness-report = 'macrogen.uris:_witness_report'


[tool.poetry.dependencies]
python = "^3.7"
Expand Down
15 changes: 0 additions & 15 deletions src/macrogen/faust_logging.py

This file was deleted.

6 changes: 2 additions & 4 deletions src/macrogen/uris.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"""
Handle URIs and the objects they point to
"""
from pathlib import Path

import codecs
import csv
import json
import re
Expand All @@ -13,6 +10,7 @@
from functools import wraps, total_ordering
from operator import itemgetter
from os.path import commonprefix
from pathlib import Path
from typing import Tuple

import pandas as pd
Expand Down Expand Up @@ -381,7 +379,7 @@ def sigil_sort_key(self) -> Tuple[str, int, str]:
match = re.match(r'^([12]?\s*[IV]{0,3}\s*[^0-9]+)(\d*)(.*)$', self.sigil)
if match is None:
logger.warning("Failed to split sigil %s", self.sigil)
return [self.sigil, 99999, ""];
return (self.sigil, 99999, "")
split = list(match.groups())

if split[0] == "H P": # Paraliponemon
Expand Down
4 changes: 2 additions & 2 deletions tests/skiptest_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

pytestmark = pytest.mark.skip()

from macrogen.dates import collect_wiki_dates, TimeSpan
from macrogen import dates
from util_scripts.dates import collect_wiki_dates, TimeSpan
from util_scripts import dates


@pytest.mark.parametrize("string, parsed", [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/macrogen/dates.py → util_scripts/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import faust
from attic.graph import AbsoluteDating
from .uris import Witness
from macrogen.uris import Witness


class TimeSpan(object):
Expand Down
File renamed without changes.

0 comments on commit 7b07649

Please sign in to comment.