diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4..000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index 313041ec5..c6cc292a0 100644 --- a/README.md +++ b/README.md @@ -510,3 +510,17 @@ To generate a "requirements" file (usually requirements.txt), that you commit wi $ pip3 freeze > requirements.txt ``` +## Publishing + +Generate distribution package. Make sure you have the latest versions of `setuptools` and `wheel` installed: + +```bash +$ python3 -m pip install --user --upgrade setuptools wheel +$ python3 setup.py sdist bdist_wheel +``` +Upload package with `twine`: + +```bash +$ python3 -m pip install --user --upgrade twine +$ python3 -m twine dist/* +``` diff --git a/knora/__init__.py b/knora/__init__.py index 846e8299f..099f3567a 100644 --- a/knora/__init__.py +++ b/knora/__init__.py @@ -1 +1,3 @@ -name = "knora" \ No newline at end of file +from .knora import KnoraError +from .knora import knora +from .knora import BulkImport diff --git a/setup.py b/setup.py index f71aee586..63a3819ba 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='knora', - version='0.0.1', + version='0.0.2', description='A Python library and tools for the Knora-API', url='https://github.com/dhlab-basel/knora-py', author='Lukas Rosenthaler', @@ -15,7 +15,7 @@ packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", - "License :: OSI Approved :: GPLv3 License", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", ], )