Skip to content

Commit

Permalink
Renaming package
Browse files Browse the repository at this point in the history
  • Loading branch information
FrazerBayley committed Jun 27, 2019
1 parent 105e3b8 commit bff1770
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Evolv CLI
====================================

[![image](https://img.shields.io/pypi/v/evolv.svg)](https://pypi.org/project/evolv/)
[![image](https://img.shields.io/pypi/l/evolv.svg)](https://pypi.org/project/evolv/)
[![image](https://img.shields.io/pypi/pyversions/evolv.svg)](https://pypi.org/project/evolv/)
[![image](https://img.shields.io/pypi/v/evolvcli.svg)](https://pypi.org/project/evolvcli/)
[![image](https://img.shields.io/pypi/l/evolvcli.svg)](https://pypi.org/project/evolvcli/)
[![image](https://img.shields.io/pypi/pyversions/evolvcli.svg)](https://pypi.org/project/evolvcli/)

The experiment management CLI provides functionality to create and maintain Evolv experiments.

## Setup

Pre-requisites: You must have Python 3.7 or above installed on your computer.
Pre-requisites: You must have Python 3.7 installed on your computer.

1. Create a Python vitual environment and install the cli.
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install evolv
pip install evolvcli
```

2. Ensure the CLI is properly installed by calling the cli. You must be in the virtual environment
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions evolv/cli.py → evolvcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

import click

from evolv.sdk.evolvclient.config import EvolvConfig
from evolv.sdk.evolvclient.client import EvolvClient
from evolvcli.sdk.evolvclient.config import EvolvConfig
from evolvcli.sdk.evolvclient.client import EvolvClient


APPLICATION_JSON = 'application/json'
APPLICATION_YAML = 'application/yaml'

EVOLV_AUTH_FILE = '/tmp/.evolv/auth.json'
EVOLV_ACCOUNT_ID = ''
EVOLV_CONFIG = None

Expand Down Expand Up @@ -50,7 +49,7 @@ def cli(domain, account_id, api_key, login):
if api_key:
EVOLV_CONFIG = EvolvConfig(domain, api_key=api_key)
else:
with open(EVOLV_AUTH_FILE) as auth_file:
with open(_find_creds_files('*evolv-creds', tempfile.gettempdir())[0]) as auth_file:
auth = json.load(auth_file)
EVOLV_CONFIG = EvolvConfig(domain, bearer_token=auth['access_token'])

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from setuptools import setup, find_packages

with open('README.md', 'r', 'utf-8') as f:
with open('README.md', 'r') as f:
readme = f.read()

setup(
name='evolv',
name='evolvcli',
version='1.0.0',
packages=find_packages(),
include_package_data=True,
Expand All @@ -31,6 +31,6 @@
],
entry_points='''
[console_scripts]
evolv=evolv.cli:cli
evolv=evolvcli.cli:cli
''',
)

0 comments on commit bff1770

Please sign in to comment.