Skip to content

Commit

Permalink
chore: configure dependencies and command line
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Mar 21, 2019
1 parent 3ab7e6b commit 7f79530
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
31 changes: 28 additions & 3 deletions README.md
Expand Up @@ -515,12 +515,37 @@ $ pip3 freeze > requirements.txt
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 -m pip install --user --upgrade pip setuptools wheel
$ python3 setup.py sdist bdist_wheel
```
Upload package with `twine`:

You can install the package locally from the dist:

```bash
$ python3 -m pip ./dist/some_name.whl
```

Upload package with `twine`,

first create `~/.pypirc`:

```bash
[distutils]
index-servers=pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username =your_username_on_pypi
```

then upload:

```bash
$ python3 -m pip install --user --upgrade twine
$ python3 -m pip install --user --upgrade tqdm twine
$ python3 -m twine dist/*
```

For local development:

```bash
$ python3 setup.py develop
```
19 changes: 5 additions & 14 deletions requirements.txt
@@ -1,14 +1,5 @@
certifi==2018.11.29
chardet==3.0.4
decorator==4.3.0
idna==2.8
isodate==0.6.0
jsonschema==2.6.0
lxml==4.3.0
pprint==0.1
pyparsing==2.3.1
rdflib==4.2.2
requests==2.21.0
six==1.12.0
urllib3==1.24.1
validators==0.12.4
pip
setuptools
wheel
tqdm
twine
12 changes: 10 additions & 2 deletions setup.py
Expand Up @@ -5,18 +5,26 @@

setuptools.setup(
name='knora',
version='0.0.2',
version='0.0.3',
description='A Python library and tools for the Knora-API',
url='https://github.com/dhlab-basel/knora-py',
author='Lukas Rosenthaler',
author_email='lukas.rosenthaler@unibas.ch',
license='GPLv3',
zip_safe=False,
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
install_requires=[
'rdflib',
'lxml',
'validators'
],
entry_points={
'console_scripts': ['knora-create-ontology=knora.create_ontology:main'],
},
include_package_data=True,
zip_safe=False
)

0 comments on commit 7f79530

Please sign in to comment.