Skip to content

Commit

Permalink
Merge branch 'moderznize-tasks'
Browse files Browse the repository at this point in the history
  • Loading branch information
illagrenan committed Jan 7, 2018
2 parents 2faf6e8 + 319a58d commit 8830849
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='ares_util',
version='0.1.12',
version='0.1.13',
description='A tool for information system allowing a retrieval '
'of information on economic entities registered in '
'the Czech Republic (ARES - Access to Registers of Economic Subjects / Entities).',
Expand Down
14 changes: 7 additions & 7 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- encoding: utf-8 -*-
# ! python3

import sys

import os
import shutil
import sys
import warnings
import webbrowser

from invoke import task

PROJECT_NAME = 'ares_util'
Expand Down Expand Up @@ -78,21 +78,21 @@ def publish(ctx):
"""publish package"""
warnings.warn("Deprecated", DeprecationWarning, stacklevel=2)

check()
check(ctx)
ctx.run('python setup.py sdist upload -r pypi') # Use python setup.py REGISTER
ctx.run('python setup.py bdist_wheel upload -r pypi')


@task
def publish_twine(ctx):
"""publish package"""
check()
check(ctx)
ctx.run('twine upload dist/* --skip-existing')


@task
def publish_test(ctx):
"""publish package"""
check()
ctx.run('python setup.py sdist upload -r https://testpypi.python.org/pypi') # Use python setup.py REGISTER
ctx.run('python setup.py bdist_wheel upload -r https://testpypi.python.org/pypi')
check(ctx)
ctx.run('python setup.py sdist upload -r https://test.pypi.org/legacy/') # Use python setup.py REGISTER
ctx.run('python setup.py bdist_wheel upload -r https://test.pypi.org/legacy/')

0 comments on commit 8830849

Please sign in to comment.