Pipenv handles .env files for us

This commit is contained in:
Jake Howard 2019-02-14 20:39:33 +00:00
parent ed24c79395
commit 447e61a814
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 1 additions and 14 deletions

View file

@ -23,6 +23,5 @@ allow_prereleases = true
aiohttp = "*" aiohttp = "*"
apscheduler = "*" apscheduler = "*"
pygithub = "*" pygithub = "*"
python-dotenv = "*"
aiohttp-basicauth = "*" aiohttp-basicauth = "*"
todoist-python = "*" todoist-python = "*"

10
Pipfile.lock generated
View file

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "6cf7c4ad05c16172e008a56fff46fe8374eaa923700a8423ba87c770b455a269" "sha256": "4595ba894a228bb4151c2ae9934e8d02f1812f1ac0a683220e07e003641ce112"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -156,14 +156,6 @@
], ],
"version": "==1.7.1" "version": "==1.7.1"
}, },
"python-dotenv": {
"hashes": [
"sha256:a84569d0e00d178bc5b957f7ff208bf49287cbf61857c31c258c4a91f571527b",
"sha256:c9b1ddd3cdbe75c7d462cb84674d87130f4b948f090f02c7d7144779afb99ae0"
],
"index": "pypi",
"version": "==0.10.1"
},
"pytz": { "pytz": {
"hashes": [ "hashes": [
"sha256:32b0891edff07e28efe91284ed9c31e123d84bea3fd98e1f72be2508f43ef8d9", "sha256:32b0891edff07e28efe91284ed9c31e123d84bea3fd98e1f72be2508f43ef8d9",

View file

@ -1,10 +1,6 @@
import os import os
from logging import _nameToLevel from logging import _nameToLevel
from dotenv import load_dotenv
load_dotenv()
GITHUB_TOKEN = os.environ['GITHUB_TOKEN'] GITHUB_TOKEN = os.environ['GITHUB_TOKEN']
TODOIST_TOKEN = os.environ['TODOIST_TOKEN'] TODOIST_TOKEN = os.environ['TODOIST_TOKEN']