Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo committed Nov 5, 2016
1 parent 77b8beb commit 3723535
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ or

or

::

>>> from pyconst import Const
>>> const = Const(('My Label Name', 'my_attribute_name', 'my_attribute_value'))

or

::

>>> c = Cont()
Expand Down
2 changes: 1 addition & 1 deletion pyconst/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,14 +11,15 @@
'pytest-cov==2.4.0',
]


class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests', '--cov=pyconst', '-vrsx']
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)
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3723535

Please sign in to comment.