Skip to content

Commit

Permalink
Updated setup.py, closed #88 and closed #89
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsv committed May 7, 2018
1 parent 4166aca commit 37594e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
before_install:
- pip install flake8
install:
- sudo python setup.py install
- python setup.py install
script:
- flake8 . --exclude __init__.py
- py.test tests/
25 changes: 16 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/usr/bin/env python
import io
import re
from codecs import open
from os import path
from setuptools import setup

with io.open('l293d/__init__.py', 'rt', encoding='utf8') as f:
here = path.abspath(path.dirname(__file__))

with open(path.join(here, 'README.md'), encoding='utf-8') as f:
readme = f.read()

with open(path.join(here, 'l293d/__init__.py'), encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)

repo = 'https://github.com/jamesevickery/l293d'
Expand All @@ -16,27 +22,28 @@
author_email='dev@jamesvickery.net',
description=('A Python module to drive motors using '
'an L293D via Raspberry Pi GPIO'),
long_description=readme,
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: POSIX :: Linux'
],
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4',
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.2.*, <4',
keywords=['raspberry', 'pi', 'gpio', 'l293d', 'chip', 'motor', 'driver'],
url=repo,
project_urls={
'Bug Reports': '%s/issues' % repo,
'Source': repo
},
download_url='%s/archive/v%s.tar.gz' % (repo, version),
entry_points={
'console_scripts': [
'sample=sample:main',
],
}
)

0 comments on commit 37594e2

Please sign in to comment.