diff --git a/README.md b/README.md index 595be08..2c000c3 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Control systemd services through Web or REST API ## Installation +### From source + ```sh git clone https://github.com/ogarcia/sysdweb.git virtualenv3 ./sysdweb-venv @@ -12,6 +14,16 @@ pip install -r requirements.txt python setup.py install ``` +### From pypi + +```sh +virtualenv3 ./sysdweb-venv +source ./sysdweb-venv/bin/activate +pip install sysdweb +``` + +### For Arch Linux users + Arch Linux users can install sysdweb from [AUR][1]. ## Run diff --git a/setup.py b/setup.py index a26989d..e47e408 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,12 @@ # # Distributed under terms of the GNU GPLv3 license. +import sysdweb as project + import os +from pip.download import PipSession +from pip.req import parse_requirements +from setuptools import find_packages from setuptools import setup # Utility function to read the README file. @@ -17,16 +22,19 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( - name = "sysdweb", - version = "1.0", - author = "Oscar Garcia Amor", - author_email = "ogarcia@connectical.com", - description = ("Control systemd services through Web or REST API"), - license = "GPLv3", - keywords = "systemd web api easy", - url = "https://github.com/ogarcia/sysdweb", - packages=['sysdweb'], + name = project.NAME, + version = project.VERSION, + author = project.AUTHOR_NAME, + author_email = project.AUTHOR_EMAIL, + description = project.DESCRIPTION, + license = project.LICENSE, + keywords = project.KEYWORDS, + url = project.URL, long_description=read('README.md'), + packages=find_packages(), + install_requires=[str(x.req) for x in + parse_requirements('requirements.txt', + session=PipSession())], package_data={'sysdweb': [ 'templates/static/css/*', 'templates/static/fonts/*', @@ -41,9 +49,20 @@ def read(fname): ] }, classifiers=[ - "Development Status :: 3 - Alpha", - "Topic :: Utilities", - "License :: OSI Approved :: GNU General Public License (GPLv3)", + 'Development Status :: 5 - Production/Stable', + 'Environment :: Web Environment', + 'Framework :: Bottle', + 'Intended Audience :: End Users/Desktop', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + 'Natural Language :: English', + 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', + 'Topic :: System', + 'Topic :: Utilities', ], + project_urls={ + 'Bug Reports': 'https://github.com/ogarcia/sysdweb/issues', + 'Source': 'https://github.com/ogarcia/sysdweb', + }, ) diff --git a/sysdweb/__init__.py b/sysdweb/__init__.py index e69de29..6a4f53a 100644 --- a/sysdweb/__init__.py +++ b/sysdweb/__init__.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# vim:fenc=utf-8 +# +# Copyright © 2016-2018 Óscar García Amor +# +# Distributed under terms of the GNU GPLv3 license. + +NAME = 'sysdweb' +VERSION = '1.1.1' +AUTHOR_NAME = 'Óscar García Amor' +AUTHOR_EMAIL = 'ogarcia@connectical.com' +DESCRIPTION = 'Control systemd services through Web or REST API' +KEYWORDS = 'systemd web api easy' +URL = 'https://github.com/ogarcia/sysdweb' +LICENSE = 'GPLv3'