diff --git a/README.md b/README.md index 779c6f5..ffc4003 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,13 @@ or or +``` +>>> from pyconst import Const +>>> const = Const(('My Label Name', 'my_attribute_name', 'my_attribute_value')) +``` + +or + ``` >>> c = Cont() >>> c.add('First Item', 1) diff --git a/README.rst b/README.rst index e116a63..03083d5 100644 --- a/README.rst +++ b/README.rst @@ -152,6 +152,13 @@ or or +:: + + >>> from pyconst import Const + >>> const = Const(('My Label Name', 'my_attribute_name', 'my_attribute_value')) + +or + :: >>> c = Cont() diff --git a/pyconst/__init__.py b/pyconst/__init__.py index a457c0a..8229d70 100644 --- a/pyconst/__init__.py +++ b/pyconst/__init__.py @@ -1,7 +1,7 @@ # encoding: utf-8 from __future__ import unicode_literals, absolute_import -__version__ = (1, 0, 4) +__version__ = (1, 0, 5) __author__ = 'valdergallo@gmail.com' from .const import Const diff --git a/setup.py b/setup.py index 847ff63..ee19030 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import os import sys -from setuptools import setup, find_packages +from setuptools import setup from setuptools.command.test import test as TestCommand import pyconst @@ -11,6 +11,7 @@ 'pytest-cov==2.4.0', ] + class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) @@ -18,7 +19,7 @@ def finalize_options(self): self.test_suite = True def run_tests(self): - #import here, cause outside the eggs aren't loaded + # import here, cause outside the eggs aren't loaded import pytest errno = pytest.main(self.test_args) sys.exit(errno) @@ -50,11 +51,14 @@ def readme(): 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ], include_package_data=True, version=pyconst.get_version(), tests_require=tests_requires, - cmdclass = {'test': PyTest}, + cmdclass={'test': PyTest}, packages=['pyconst'], zip_safe=False, platforms='any',