-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
62 lines (51 loc) · 1.59 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
version = {}
with open(os.path.join(here, 'oryxkbleds/__version__.py')) as f:
exec(f.read(), version)
class CleanCommand(setuptools.Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
@staticmethod
def run():
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info ./docs/_build ./.pytest_cache ./.eggs .coverage .tox')
setuptools.setup(
name="oryxkbleds",
version=version['__version__'],
author="github.com/davemcphee",
author_email="[email protected]",
description="Keyboard LED control package for System76 Oryx laptops",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/davemcphee/oryx-kb-leds",
packages=['oryxkbleds'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU GPLv3 License",
"Operating System :: OS Independent",
],
cmdclass={
'clean': CleanCommand,
},
setup_requires=["pytest-runner"],
tests_require=["pytest", "pytest-cov", "pytest-flake8", "tox"],
entry_points={
'console_scripts': [
'oryxkbleds = oryxkbleds.cli:entry_point',
],
},
install_requires=[
'colour==0.1.5',
'psutil==5.6.6',
'pyyaml==5.4'
]
)