Misc. tweaks for new integration project templates
This commit is contained in:
parent
e4fbe887ff
commit
e989521d85
|
@ -37,8 +37,10 @@ class ${integration_studly}Customer(model.Base):
|
|||
"""
|
||||
__tablename__ = '${integration_prefix}_customer'
|
||||
__table_args__ = (
|
||||
sa.ForeignKeyConstraint(['uuid'], ['customer.uuid'], name='${integration_prefix}_customer_fk_customer'),
|
||||
sa.ForeignKeyConstraint(['uuid'], ['customer.uuid'],
|
||||
name='${integration_prefix}_customer_fk_customer'),
|
||||
)
|
||||
__versioned__ = {}
|
||||
|
||||
uuid = model.uuid_column(default=None)
|
||||
|
||||
|
@ -53,8 +55,7 @@ class ${integration_studly}Customer(model.Base):
|
|||
cascade='all, delete-orphan',
|
||||
doc="""
|
||||
${integration_name} extension record for the customer.
|
||||
"""),
|
||||
)
|
||||
"""))
|
||||
|
||||
# favorite_color = sa.Column(sa.String(length=50), nullable=True, doc="""
|
||||
# Customer's favorite color.
|
||||
|
|
|
@ -63,7 +63,6 @@ requires = [
|
|||
#
|
||||
# package # low high
|
||||
|
||||
'invoke', # 1.5.0
|
||||
'rattail', # 0.9.246
|
||||
]
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ Tasks for ${name}
|
|||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
@ -36,18 +35,18 @@ exec(open(os.path.join(here, '${python_name}', '_version.py')).read())
|
|||
|
||||
|
||||
@task
|
||||
def release(ctx):
|
||||
def release(c):
|
||||
"""
|
||||
Release a new version of ${name}
|
||||
"""
|
||||
# rebuild local tar.gz file for distribution
|
||||
shutil.rmtree('${egg_name}.egg-info')
|
||||
ctx.run('python setup.py sdist --formats=gztar')
|
||||
c.run('rm -rf ${egg_name}.egg-info')
|
||||
c.run('python setup.py sdist --formats=gztar')
|
||||
|
||||
# TODO: uncomment to upload to public PyPI
|
||||
#filename = '${python_project_name}-{}.tar.gz'.format(__version__)
|
||||
#ctx.run('twine upload dist/{}'.format(filename))
|
||||
#c.run('twine upload dist/{}'.format(filename))
|
||||
|
||||
# TODO: uncomment and update these details, to upload to private PyPI
|
||||
#filename = '${python_project_name}-{}.tar.gz'.format(__version__)
|
||||
#ctx.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/${slug}/'.format(filename))
|
||||
#c.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/${slug}/'.format(filename))
|
||||
|
|
|
@ -63,7 +63,6 @@ requires = [
|
|||
#
|
||||
# package # low high
|
||||
|
||||
'invoke', # 1.5.0
|
||||
'Tailbone', # 0.8.199
|
||||
|
||||
# TODO: probably should require rattail-integration package
|
||||
|
|
|
@ -26,7 +26,6 @@ Tasks for ${name}
|
|||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
@ -36,18 +35,18 @@ exec(open(os.path.join(here, '${python_name}', '_version.py')).read())
|
|||
|
||||
|
||||
@task
|
||||
def release(ctx):
|
||||
def release(c):
|
||||
"""
|
||||
Release a new version of ${name}
|
||||
"""
|
||||
# rebuild local tar.gz file for distribution
|
||||
shutil.rmtree('${egg_name}.egg-info')
|
||||
ctx.run('python setup.py sdist --formats=gztar')
|
||||
c.run('rm -rf ${egg_name}.egg-info')
|
||||
c.run('python setup.py sdist --formats=gztar')
|
||||
|
||||
# TODO: uncomment to upload to public PyPI
|
||||
#filename = '${python_project_name}-{}.tar.gz'.format(__version__)
|
||||
#ctx.run('twine upload dist/{}'.format(filename))
|
||||
#c.run('twine upload dist/{}'.format(filename))
|
||||
|
||||
# TODO: uncomment and update these details, to upload to private PyPI
|
||||
#filename = '${python_project_name}-{}.tar.gz'.format(__version__)
|
||||
#ctx.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/${slug}/'.format(filename))
|
||||
#c.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/${slug}/'.format(filename))
|
||||
|
|
Loading…
Reference in a new issue