commit
fddbef149c
29 changed files with 131 additions and 0 deletions
12
bumblebee/__about__.py
Normal file
12
bumblebee/__about__.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
__title__ = 'bumblebee-status'
|
||||
__package_name__ = 'bumblebee_status'
|
||||
__version__ = '0.1.0'
|
||||
__description__ = 'a modular, theme-able status line generator for the i3 window manager.'
|
||||
__author__ = 'tobi-wan-kenobi'
|
||||
__email__ = 'tobi@tobi-wan-kenobi.at'
|
||||
__github__ = 'https://github.com/tobi-wan-kenobi/bumblebee-status'
|
||||
__docs__ = 'https://github.com/tobi-wan-kenobi/bumblebee-status'
|
||||
__tracker__ = 'https://github.com/tobi-wan-kenobi/bumblebee-status'
|
||||
__pypi__ = 'https://pypi.org/project/bumblebee-status/'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright 2016- tobi-wan-kenobi'
|
1
requirements/base.txt
Normal file
1
requirements/base.txt
Normal file
|
@ -0,0 +1 @@
|
|||
|
1
requirements/modules/battery_upower_reqs.txt
Normal file
1
requirements/modules/battery_upower_reqs.txt
Normal file
|
@ -0,0 +1 @@
|
|||
dbus
|
1
requirements/modules/cpu.txt
Normal file
1
requirements/modules/cpu.txt
Normal file
|
@ -0,0 +1 @@
|
|||
psutil
|
1
requirements/modules/cpu2.txt
Normal file
1
requirements/modules/cpu2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
psutil
|
1
requirements/modules/currency.txt
Normal file
1
requirements/modules/currency.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements/modules/docker_ps.txt
Normal file
1
requirements/modules/docker_ps.txt
Normal file
|
@ -0,0 +1 @@
|
|||
docker
|
1
requirements/modules/dunst.txt
Normal file
1
requirements/modules/dunst.txt
Normal file
|
@ -0,0 +1 @@
|
|||
dunst
|
1
requirements/modules/getcrypto.txt
Normal file
1
requirements/modules/getcrypto.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements/modules/git.txt
Normal file
1
requirements/modules/git.txt
Normal file
|
@ -0,0 +1 @@
|
|||
pygit2
|
1
requirements/modules/github.txt
Normal file
1
requirements/modules/github.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements/modules/hddtemp.txt
Normal file
1
requirements/modules/hddtemp.txt
Normal file
|
@ -0,0 +1 @@
|
|||
hddtemp
|
1
requirements/modules/layout_xkb.txt
Normal file
1
requirements/modules/layout_xkb.txt
Normal file
|
@ -0,0 +1 @@
|
|||
xkbgroup
|
1
requirements/modules/memory.txt
Normal file
1
requirements/modules/memory.txt
Normal file
|
@ -0,0 +1 @@
|
|||
psutil
|
2
requirements/modules/network_traffic.txt
Normal file
2
requirements/modules/network_traffic.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
psutil
|
||||
netifaces
|
1
requirements/modules/nic.txt
Normal file
1
requirements/modules/nic.txt
Normal file
|
@ -0,0 +1 @@
|
|||
netifaces
|
1
requirements/modules/pihole.txt
Normal file
1
requirements/modules/pihole.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements/modules/rss.txt
Normal file
1
requirements/modules/rss.txt
Normal file
|
@ -0,0 +1 @@
|
|||
feedparser
|
3
requirements/modules/spaceapi.txt
Normal file
3
requirements/modules/spaceapi.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
requests
|
||||
json
|
||||
time
|
1
requirements/modules/spotify.txt
Normal file
1
requirements/modules/spotify.txt
Normal file
|
@ -0,0 +1 @@
|
|||
dbus
|
1
requirements/modules/stock.txt
Normal file
1
requirements/modules/stock.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
2
requirements/modules/sun.txt
Normal file
2
requirements/modules/sun.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
requests
|
||||
suntime
|
1
requirements/modules/system.txt
Normal file
1
requirements/modules/system.txt
Normal file
|
@ -0,0 +1 @@
|
|||
tkinter
|
1
requirements/modules/taskwarrior.txt
Normal file
1
requirements/modules/taskwarrior.txt
Normal file
|
@ -0,0 +1 @@
|
|||
taskw
|
1
requirements/modules/title.txt
Normal file
1
requirements/modules/title.txt
Normal file
|
@ -0,0 +1 @@
|
|||
i3ipc
|
2
requirements/modules/traffic.txt
Normal file
2
requirements/modules/traffic.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
psutil
|
||||
netifaces
|
1
requirements/modules/weather.txt
Normal file
1
requirements/modules/weather.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements/modules/yubikey.txt
Normal file
1
requirements/modules/yubikey.txt
Normal file
|
@ -0,0 +1 @@
|
|||
yubico
|
87
setup.py
Executable file
87
setup.py
Executable file
|
@ -0,0 +1,87 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 - *-
|
||||
import sys
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
about = {}
|
||||
with open("bumblebee/__about__.py") as fp:
|
||||
exec(fp.read(), about)
|
||||
|
||||
with open('requirements/base.txt') as f:
|
||||
install_reqs = [line for line in f.read().split('\n') if line]
|
||||
|
||||
# Module packages
|
||||
def read_module(filename):
|
||||
with open('requirements/modules/{}.txt'.format(filename)) as f:
|
||||
return [line for line in f.read().split('\n') if line]
|
||||
|
||||
EXTRAS_REQUIREMENTS_MAP = {
|
||||
"battery-upower": read_module("battery_upower_reqs"),
|
||||
"cpu": read_module("cpu"),
|
||||
"cpu2": read_module("cpu2"),
|
||||
"currency": read_module("currency"),
|
||||
"docker_ps": read_module("docker_ps"),
|
||||
"dunst": read_module("dunst"),
|
||||
"getcrypto": read_module("getcrypto"),
|
||||
"git": read_module("git"),
|
||||
"github": read_module("github"),
|
||||
"hddtemp": read_module("hddtemp"),
|
||||
"layout-xkb": read_module("layout_xkb"),
|
||||
"memory": read_module("memory"),
|
||||
"network_traffic": read_module("network_traffic"),
|
||||
"nic": read_module("nic"),
|
||||
"pihole": read_module("pihole"),
|
||||
"rss": read_module("rss"),
|
||||
"spaceapi": read_module("spaceapi"),
|
||||
"spotify": read_module("spotify"),
|
||||
"stock": read_module("stock"),
|
||||
"sun": read_module("sun"),
|
||||
"system": read_module("system"),
|
||||
"taskwarrior": read_module("taskwarrior"),
|
||||
"title": read_module("title"),
|
||||
"traffic": read_module("traffic"),
|
||||
"weather": read_module("weather"),
|
||||
"yubikey": read_module("yubikey"),
|
||||
}
|
||||
|
||||
if sys.version_info[0] > 2: # LATER: README needs to be reStructuredText for pypi
|
||||
readme = open('README.md', encoding='utf-8').read()
|
||||
else:
|
||||
readme = open('README.md').read()
|
||||
|
||||
setup(
|
||||
name=about['__title__'],
|
||||
version=about['__version__'],
|
||||
url=about['__github__'],
|
||||
download_url=about['__pypi__'],
|
||||
project_urls={
|
||||
'Documentation': about['__docs__'],
|
||||
'Code': about['__github__'],
|
||||
'Issue tracker': about['__tracker__'],
|
||||
},
|
||||
license=about['__license__'],
|
||||
author=about['__author__'],
|
||||
author_email=about['__email__'],
|
||||
description=about['__description__'],
|
||||
long_description=readme,
|
||||
packages=['bumblebee'],
|
||||
include_package_data=True,
|
||||
install_requires=install_reqs,
|
||||
extras_require=EXTRAS_REQUIREMENTS_MAP,
|
||||
zip_safe=False,
|
||||
keywords=about['__title__'],
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
"License :: OSI Approved :: MIT License",
|
||||
'Intended Audience :: Developers',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: Software Development :: Internationalization",
|
||||
"Topic :: Utilities",
|
||||
],
|
||||
)
|
Loading…
Reference in a new issue