diff options
author | Matthias Baumgartner <dev@igsor.net> | 2022-12-18 13:40:49 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2022-12-18 13:40:49 +0100 |
commit | 21a02197d73f263ae222f2ccc49248d8617e2d7d (patch) | |
tree | 089810c7808c3ae7b3c98262ece7ec36b85ef71f | |
parent | e8492489098ef5f8566214e083cd2c2d1d449f5a (diff) | |
download | bsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.tar.gz bsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.tar.bz2 bsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.zip |
project cosmetics
-rw-r--r-- | .pylintrc | 4 | ||||
-rw-r--r-- | LICENSE | 2 | ||||
-rw-r--r-- | bsfs.toml | 11 | ||||
-rw-r--r-- | bsfs/utils/uuid.py | 6 | ||||
-rw-r--r-- | setup.py | 23 |
5 files changed, 40 insertions, 6 deletions
@@ -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 @@ -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 + |