Skip to content

tell-k/pypi-updates

Repository files navigation

pypi-updates

travis-ci.org coveralls.io requires.io

Description

Required

Caution: Access level of your twitter apps must be "Read and write".

Setup

1. Clone repository

$ git clone git@github.com:tell-k/pypi-updates.git

2. Create ".env" file

$ cd pypi-updates-bot
$ toucn .env

Write your API tokens

# .env file
TWITTER_CONSUMER_KEY=[your consumer key]
TWITTER_CONSUMER_SECRET=[your consumer secret]
TWITTER_ACCESS_KEY=[your access key]
TWITTER_ACCESS_SECRET=[your access secret]

3. Create heroku apps and settings

$ heroku login
$ heroku apps:create pypi-updates
$ heroku addons:add memcachier
$ heroku plugins:install heroku-config
$ heroku config:push

Confirm enviroment values.

$ heroku config
=== xxxxxx-xxxxxx-xxxx Config Vars
MEMCACHIER_PASSWORD:     xxxxxxxxxx
MEMCACHIER_SERVERS:      xxx.xxx.xxx.xxxxxxx.xxxx:xxxxxx
MEMCACHIER_USERNAME:     xxxxxxxx
TWITTER_ACCESS_KEY:      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_ACCESS_SECRET:   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_CONSUMER_KEY:    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_CONSUMER_SECRET: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

4. Deploy heroku apps

$ git push heroku master

# Run the first time only
$ heroku ps:scale bot=1

# Confirm application log
$ heroku logs --tail

Licence

  • MIT License
  • See the LICENSE file for specific terms.

About

Unofficial bot to flow PyPI recent updates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages