Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed setup.py

  • Loading branch information...
commit da5a9c68993666dba6b1e3f1ac81f8af173b6a5a 1 parent 2d6f095
@Deepwalker authored
Showing with 5 additions and 3 deletions.
  1. +2 −2 samples/sample3.py
  2. +3 −1 setup.py
View
4 samples/sample3.py
@@ -118,10 +118,10 @@
converter = t.Dict({
t.Key('userNameFirst') >> 'name': t.String,
t.Key('userNameSecond') >> 'second_name': t.String,
- t.Key('userPassword') >> 'password': t.String >> hash_md5,
+ t.Key('userPassword') >> 'password': hash_md5,
t.Key('userEmail', optional=True, to_name='email'): t.String,
t.Key('userTitle', default='Bachelor', to_name='title'): t.String,
- t.Key('userRoles', to_name='roles'): t.String >> comma_to_list,
+ t.Key('userRoles', to_name='roles'): comma_to_list,
})
assert converter.check(sample_data) == desired_data
View
4 setup.py
@@ -10,13 +10,14 @@ def read(fname):
setupconf = dict(
name = 'trafaret',
- version = '0.3.7',
+ version = '0.3.8',
license = 'BSD',
url = 'https://github.com/Deepwalker/trafaret/',
author = 'Barbuza, Deepwalker',
author_email = 'krivushinme@gmail.com',
description = ('Validation and parsing library'),
long_description = read('README.rst'),
+ keywords = 'validatation form forms data schema',
packages = ['trafaret'],
@@ -25,6 +26,7 @@ def read(fname):
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
],
)
Please sign in to comment.
Something went wrong with that request. Please try again.