Skip to content

Commit

Permalink
Move to static (setup.cfg) setuptools config
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Jun 1, 2021
1 parent 06a530d commit d0d9bb9
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 60 deletions.
52 changes: 52 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,58 @@
[metadata]
name = vidhub-control
version = 0.0.3
author = Matthew Reid
author_email = [email protected]
url = https://github.com/nocarryr/vidhub-control
project_urls =
Documentation = https://vidhub-control.readthedocs.io
Source = https://github.com/nocarryr/vidhub-control
description = Control Smart Videohub Devices
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers =
Development Status :: 3 - Alpha
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Framework :: AsyncIO
Intended Audience :: Developers
Intended Audience :: End Users/Desktop
Topic :: Multimedia
Topic :: Multimedia :: Graphics
Topic :: Multimedia :: Video


[options]
packages = find:
include_package_data = True
install_requires =
python-dispatch>=0.1.0
json-object-factory
zeroconf>=0.31.0
python-osc
pid
netifaces

[options.extras_require]
kivy = kivy>=2.0.0

[options.packages.find]
exclude = tests

[options.entry_points]
console_scripts =
vidhubcontrol-web = vidhubcontrol.sofi_ui.main:run_app
vidhubcontrol-server = vidhubcontrol.runserver:main
vidhubcontrol-ui = vidhubcontrol.kivyui.main:main [kivy]

[options.package_data]
* = LICENSE*, README*
vidhubcontrol.kivyui = *.kv


[tool:pytest]
testpaths = tests
Expand Down
62 changes: 2 additions & 60 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
import os
import sys
from setuptools import setup, find_packages
from setuptools import setup

BASE_PATH = os.path.abspath(os.path.dirname(__file__))

def get_deps(filename):
deps = []
with open(os.path.join(BASE_PATH, filename), 'r') as f:
for line in f.read().splitlines():
if line.startswith('#'):
continue
deps.append(line)
return deps

INSTALL_REQUIRES = get_deps('requirements.txt')
EXTRAS_REQUIRE = {
'kivy':get_deps('vidhubcontrol/kivyui/requirements.txt'),
}

setup(
name = "vidhub-control",
version = "0.0.3",
author = "Matthew Reid",
author_email = "[email protected]",
url="https://github.com/nocarryr/vidhub-control",
description = "Control Smart Videohub Devices",
packages=find_packages(exclude=['tests*']),
include_package_data=True,
package_data={
'': ['LICENSE*', 'README*'],
'vidhubcontrol.kivyui': ['*.kv'],
},
install_requires=INSTALL_REQUIRES,
python_requires='>=3.5',
entry_points={
'console_scripts':[
'vidhubcontrol-web = vidhubcontrol.sofi_ui.main:run_app',
'vidhubcontrol-server = vidhubcontrol.runserver:main',
'vidhubcontrol-ui = vidhubcontrol.kivyui.main:main [kivy]',
],
},
extras_require=EXTRAS_REQUIRE,
platforms=['any'],
classifiers = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Topic :: Multimedia',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Video',

],
)
setup()

0 comments on commit d0d9bb9

Please sign in to comment.