From 21a02197d73f263ae222f2ccc49248d8617e2d7d Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Sun, 18 Dec 2022 13:40:49 +0100 Subject: project cosmetics --- .pylintrc | 4 ++-- LICENSE | 2 +- bsfs.toml | 11 +++++++++++ bsfs/utils/uuid.py | 6 +++--- setup.py | 23 +++++++++++++++++++++++ 5 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 bsfs.toml create mode 100644 setup.py diff --git a/.pylintrc b/.pylintrc index 7ea4957..7885c4e 100644 --- a/.pylintrc +++ b/.pylintrc @@ -76,7 +76,7 @@ max-attributes=7 max-bool-expr=5 # Maximum number of branch for function / method body. -max-branches=12 +max-branches=15 # Maximum number of locals for function / method body. max-locals=15 @@ -148,7 +148,7 @@ logging-format-style=old [MISCELLANEOUS] # List of note tags to take in consideration, separated by a comma. -notes=FIXME,TODO,NOTE +notes=FIXME,TODO diff --git a/LICENSE b/LICENSE index d447c7f..bcd7210 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2021, Matthias Baumgartner +Copyright (c) 2022, Matthias Baumgartner All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/bsfs.toml b/bsfs.toml new file mode 100644 index 0000000..45bf1c9 --- /dev/null +++ b/bsfs.toml @@ -0,0 +1,11 @@ +[project] +name = "bsfs" +description = "A content aware graph file system." +version = "0.0.1" +license = {text = "BSD 3-Clause License"} +authors = [{name='Matthias Baumgartner', email="dev@igsor.net"}] +dependencies = [ + "rdflib", +] +requires-python = ">=3.7" + diff --git a/bsfs/utils/uuid.py b/bsfs/utils/uuid.py index 7c39128..6366b18 100644 --- a/bsfs/utils/uuid.py +++ b/bsfs/utils/uuid.py @@ -27,7 +27,7 @@ __all__: typing.Sequence[str] = [ ## code ## -class UUID(abc.Iterator, abc.Callable): +class UUID(abc.Iterator, abc.Callable): # type: ignore [misc] # abc.Callable "is an invalid base class" """Generate 256-bit universally unique IDs. This is a 'best-effort' kind of implementation that tries to ensure global @@ -69,7 +69,7 @@ class UUID(abc.Iterator, abc.Callable): # initialize random component random.seed(seed) - def __call__(self, content: typing.Optional[str] = None) -> str: + def __call__(self, content: typing.Optional[str] = None) -> str: # pylint: disable=arguments-differ """Return a globally unique ID.""" # content component content = str(content) if content is not None else '' @@ -93,7 +93,7 @@ class UUID(abc.Iterator, abc.Callable): return self() -class UCID(abc.Callable): +class UCID(): """Generate 256-bit content IDs. Effectively computes a cryptographic hash over the content. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..ab3864a --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ + +from setuptools import setup +import os + +setup( + name='bsfs', + version='0.0.1', + author='Matthias Baumgartner', + author_email='dev@igsor.net', + description='A content aware graph file system.', + long_description=open(os.path.join(os.path.dirname(__file__), 'README')).read(), + license='BSD', + license_files=('LICENSE', ), + url='https://www.igsor.net/projects/blackstar/bsfs/', + download_url='https://pip.igsor.net', + packages=('bsfs', ), + install_requires=('rdflib', ), + python_requires=">=3.7", +) + +# FIXME: bsfs/graph/schema.nt +# FIXME: bsfs.app + -- cgit v1.2.3