Skip to content

Commit

Permalink
Merge pull request #28 from mekanix/feature/packing
Browse files Browse the repository at this point in the history
Pack "project" dir
  • Loading branch information
mekanix authored Feb 19, 2020
2 parents cd0e98a + 3a01ec5 commit 83130c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include config.py
include name.py
graft migrations
graft tests
graft freenit/project
6 changes: 3 additions & 3 deletions freenit/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ def schema_name_resolver(schema):
name = schema_cls.__name__
if name.endswith("Schema"):
name = name[:-6] or name
if schema.partial:
if getattr(schema, 'partial', None):
if isinstance(schema.partial, list):
for field in schema.partial:
name += field.capitalize()
name += 'Partial'
if schema.only:
if getattr(schema, 'only', None):
for field in schema.only:
name += field.capitalize()
name += 'Only'
if schema.exclude:
if getattr(schema, 'exclude', None):
for field in schema.exclude:
name += field.capitalize()
name += 'Exclude'
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='freenit',
version='0.0.18',
version='0.0.19',
description='REST API framework based on Flask-Smorest',
long_description=README,
long_description_content_type='text/markdown',
Expand Down Expand Up @@ -43,7 +43,7 @@
install_requires=[
'bcrypt',
'flask-collect>=1.3.2',
'flask-cors>=3.0.8',
'flask-cors>=2.1.2',
'flask-jwt-extended>=3.24.1',
'flask-security>=3.0.0',
'flask-smorest>=0.18.2',
Expand Down

0 comments on commit 83130c3

Please sign in to comment.