diff --git a/lodstorage/__init__.py b/lodstorage/__init__.py index e69de29..a9f0a54 100644 --- a/lodstorage/__init__.py +++ b/lodstorage/__init__.py @@ -0,0 +1 @@ +__version__="0.4.12" \ No newline at end of file diff --git a/lodstorage/version.py b/lodstorage/version.py index 49aea0a..97526d7 100644 --- a/lodstorage/version.py +++ b/lodstorage/version.py @@ -3,13 +3,14 @@ @author: wf ''' +import lodstorage class Version(object): ''' Version handling for pyLoDStorage ''' name="pylodstorage" - version='0.4.11' + version=lodstorage.__version__ date = '2020-09-10' updated = '2023-03-28' description='python List of Dict (Table) Storage library' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5af27fb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pyLodStorage" +authors = [ + {name = "Wolfgang Fahl", email = "wf@bitplan.com"} +] +maintainers = [ + {name = "Wolfgang Fahl", email = "wf@bitplan.com"} +] +readme = "README.md" +license= "Apache-2.0" +dependencies = [ + "SPARQLWrapper~=1.8.5", + "PyYAML", + "pandas", + "matplotlib>=3.6.2", + "tabulate", + "numpy", + "jsonpickle==1.5.2", + "pylatexenc~=2.10", + "pygments", + "dicttoxml2" +] +requires-python = ">=3.7" +classifiers=[ + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" +] +dynamic = ["version", "description"] + +[tool.hatch.version] +path = "lodstorage/__init__.py" + +[project.urls] +Home = "https://github.com/WolfgangFahl/pyLodStorage" +Documentation = "http://wiki.bitplan.com/index.php/PyLoDStorage" +Source = "https://github.com/WolfgangFahl/pyLodStorage/blob/master/lodstorage/sql.py" +IssueTracker = "https://github.com/WolfgangFahl/pyLodStorage/issues" + +[project.optional-dependencies] +test = [ + "green", +] + +[tool.hatch.build.targets.wheel] +only-include = ["lodstorage","sampledata"] + +[tool.hatch.build.targets.wheel.sources] +"lodstorage" = "lodstorage" +"sampledata" = "sampledata" + +[project.scripts] +sparqlquery = "lodstorage.querymain:mainSPARQL" +sqlquery = "lodstorage.querymain:mainSQL" +lodquery = "lodstorage.querymain:main" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 15ffcf1..0000000 --- a/requirements.txt +++ /dev/null @@ -1,26 +0,0 @@ -# libaries needed by pyLoDStorage -# https://pypi.org/project/SPARQLWrapper/ -# 321 stars, 95 forks -# https://github.com/RDFLib/sparqlwrapper -# https://stackoverflow.com/questions/tagged/sparqlwrapper -SPARQLWrapper~=1.8.5 -# https://pypi.org/project/PyYAML/ -PyYAML -# https://pypi.org/project/pandas/ -pandas -# https://pypi.org/project/matplotlib/ -matplotlib>=3.6.2 -# tabulate -tabulate -# https://pypi.org/project/numpy/ -numpy -# https://pypi.org/project/jsonpickle/ -jsonpickle==1.5.2 -# https://pypi.org/project/pylatexenc/ -pylatexenc~=2.10 -# https://pygments.org/ -pygments -#https://pypi.org/project/dicttoxml/ -# dicttoxml>=1.7.4 -# https://pypi.org/project/dicttoxml2/ -dicttoxml2 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 8a877b0..0000000 --- a/setup.py +++ /dev/null @@ -1,54 +0,0 @@ -# ! important -# see https://stackoverflow.com/a/27868004/1497139 -from setuptools import setup -from collections import OrderedDict -from lodstorage.version import Version -import pathlib - -# where is this setup file? -here = pathlib.Path(__file__).parent.resolve() -# get thre requirements -requirements = (here / 'requirements.txt').read_text(encoding='utf-8').split("\n") -# and the README content -long_description = (here / 'README.md').read_text(encoding='utf-8') - -setup( - name=Version.name, - version=Version.version, - description=Version.description, - packages=['lodstorage','sampledata'], - package_data={ - 'sampledata': ['*.yaml'], - }, - author='Wolfgang Fahl', - author_email='wf@bitplan.com', - maintainer='Wolfgang Fahl', - url='https://github.com/WolfgangFahl/pyLodStorage', - project_urls=OrderedDict( - ( - ("Documentation", "http://wiki.bitplan.com/index.php/PyLoDStorage"), - ("Code", "https://github.com/WolfgangFahl/pyLoDStorage/blob/master/lodstorage/sql.py"), - ("Issue tracker", "https://github.com/WolfgangFahl/pyLodStorage/issues"), - ) - ), - license='Apache License', - - install_requires=requirements, - classifiers=[ - 'Programming Language :: Python', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11' - ], - entry_points={ - 'console_scripts': [ - 'sparqlquery = lodstorage.querymain:mainSPARQL', - 'sqlquery=lodstorage.querymain:mainSQL', - 'lodquery=lodstorage.querymain:main' - ], - }, - long_description=long_description, - long_description_content_type='text/markdown' -)