Skip to content

Commit

Permalink
Packaging for version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Dec 29, 2017
1 parent 2d66e1d commit 4c6b461
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 40 deletions.
10 changes: 7 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Author:
Gergo Szabo (aka) hunasdf
Email: [email protected]

Also many thanks to Mark Visser <[email protected]>

Code reviewed and published by:
Nicolas Hennion (aka) Nicolargo
Twitter: @nicolargo
Website: http://blog.nicolargo.com

Gergo Szabo (aka) hunasdf
Email: [email protected]
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include AUTHORS
include README.md
include README.rst
recursive-include pyadl *.py
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PyADL
=====

Version 0.1
-----------

* First public release (beta, only tested on one system)
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ PyADL

A simple Python Wrapper for the AMD/ATI ADL lib.

It will be used in Glances to monitor GPU performance.

Library usage
=============

Expand Down
51 changes: 17 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,20 @@
#!/usr/bin/env python

# import os
# import sys
# import glob
import os
import sys
import re

from setuptools import setup

with open(os.path.join('pyadl', '__init__.py'), encoding='utf-8') as f:
with open(os.path.join('pyadl', '__init__.py')) as f:
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)


data_files = [
('share/doc/pyadl', ['AUTHORS', 'README.rst'])
]


def get_data_files():
data_files = [
('share/doc/pyadl', ['AUTHORS', 'NEWS', 'README.md'])
('share/doc/pyadl', ['AUTHORS', 'NEWS', 'README.rst'])
]

# if hasattr(sys, 'real_prefix') or 'bsd' in sys.platform:
# conf_path = os.path.join(sys.prefix, 'etc', 'glances')
# elif not hasattr(sys, 'real_prefix') and 'linux' in sys.platform:
# conf_path = os.path.join('/etc', 'glances')
# elif 'darwin' in sys.platform:
# conf_path = os.path.join('/usr/local', 'etc', 'glances')
# elif 'win32' in sys.platform:
# conf_path = os.path.join(os.environ.get('APPDATA'), 'glances')
# data_files.append((conf_path, ['conf/glances.conf']))

# for mo in glob.glob('i18n/*/LC_MESSAGES/*.mo'):
# data_files.append((os.path.dirname(mo).replace('i18n/', 'share/locale/'), [mo]))

return data_files


Expand All @@ -47,25 +29,26 @@ def get_requires():

setup(
name='pyadl',
version='0.1',
description="...",
long_description=open('README.md').read(),
author='Nicolas Hennion',
author_email='nicolas@nicolargo.com',
version=version,
description="A simple Python Wrapper for the AMD/ATI ADL lib.",
long_description=open('README.rst').read(),
author='Gergo Szabo (aka) hunasdf',
author_email='szager88@hmail.com',
url='https://github.com/nicolargo/pyadl',
#download_url='https://s3.amazonaws.com/pyadl/pyadl-0.1.tar.gz',
license="LGPL",
keywords="...",
license="MIT",
keywords="amd ati driver wrapper monitoring gpu",
install_requires=get_requires(),
extras_require={},
packages=['pyadl'],
include_package_data=True,
data_files=get_data_files(),
# test_suite="pyadl.test",
entry_points={"console_scripts": ["pyadl=pyadl.pyadl:main"]},
# entry_points={"console_scripts": ["pyadl=pyadl.pyadl:main"]},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: System :: Hardware :: Hardware Drivers',
'Topic :: System :: Monitoring',
]
)

0 comments on commit 4c6b461

Please sign in to comment.