Skip to content

Commit

Permalink
Prepare project to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ogarcia committed Feb 28, 2018
1 parent 0d3804f commit edadc16
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 12 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
43 changes: 31 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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/*',
Expand All @@ -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',
},
)
15 changes: 15 additions & 0 deletions sysdweb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016-2018 Óscar García Amor <ogarcia@connectical.com>
#
# 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'

0 comments on commit edadc16

Please sign in to comment.