Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regenesis dependency installation #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,9 @@ For example, it is used within (and developed for) the

## install

`genesapi-cli` requires python 3.
`genesapi-cli` requires Python 3. We recommend organizing your Python stuff via pip and virtual environments.

We recommend organizing your python stuff via pip and virtual environments.

**FIXME**: `genesapi-cli` relies on a fork of
[regenesis](https://github.com/pudo/regenesis), that needs to be installed
manually beforehand, any pull requests to hook this properly into our
`setup.py` are welcomed ;)

pip install -e [email protected]:datenguide/regenesis.git#egg=regenesis

pip install -e [email protected]:datenguide/genesapi-cli.git#egg=genesapi
pip install -e 'git+https://github.com/datenguide/genesapi-cli.git#egg=genesapi'

This will install the `genesapi` command-line interface and all the
requirements, like [pandas](https://pandas.pydata.org) (see their [install
Expand Down Expand Up @@ -119,7 +110,7 @@ into Elasticsearch, the other tasks are needed in between (see below)
`genesapi` prints a lot to `stdout`, for instance the jsonified *facts* so that
they can easily piped to logstash, so logging happens to `stderr`

You can adjust the logging level (default: `INFO`) to any valid python logging
You can adjust the logging level (default: `INFO`) to any valid Python logging
level, for example:

genesapi --logging DEBUG <task> <args>
Expand Down
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def readme():
author_email='[email protected]',
license='MIT',
packages=['genesapi'],
python_requires='>=3.5',
entry_points={
'console_scripts': [
'genesapi=genesapi.entry:main'
Expand All @@ -37,13 +38,10 @@ def readme():
'python-frontmatter',
'awesome-slugify',
'zeep',
'regenesis',
'python-dateutil',
'elasticsearch'
'elasticsearch',

'regenesis @ https://github.com/datenguide/regenesis/tarball/master#egg=regenesis',
],
# FIXME see README.md about regenesis install note
# dependency_links=[
# 'https://github.com/datenguide/regenesis/tarball/master#egg=regenesis-0.1'
# ],
zip_safe=False
)