Skip to content
Permalink
Browse files
chore: add publishing setup
  • Loading branch information
subotic committed Mar 5, 2019
1 parent 84dc1d2 commit c18c6b9be54b44f929f64231722adc3c834191b5
Showing with 19 additions and 9 deletions.
  1. +0 −6 .idea/vcs.xml
  2. +14 −0 README.md
  3. +3 −1 knora/__init__.py
  4. +2 −2 setup.py

This file was deleted.

@@ -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/*
```
@@ -1 +1,3 @@
name = "knora"
from .knora import KnoraError
from .knora import knora
from .knora import BulkImport
@@ -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",
],
)

0 comments on commit c18c6b9

Please sign in to comment.