
import re
from invoke import task


def get_version():
    return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')


@task
def release(c):
    version = get_version()

    c.run("git tag -a aiodns-{0} -m \"aiodns {0} release\"".format(version))
    c.run("git push --tags")

    c.run("python setup.py sdist")
    c.run("twine upload -r pypi dist/aiodns-{0}*".format(version))



import re
from invoke import task


def get_version():
    return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')


@task
def release(c):
    version = get_version()

    c.run("git tag -a aiodns-{0} -m \"aiodns {0} release\"".format(version))
    c.run("git push --tags")

    c.run("python setup.py sdist")
    c.run("python setup.py bdist_wheel")
    c.run("twine upload -r pypi dist/aiodns-{0}*".format(version))


Build universal wheels when releasing
Build universal wheels when releasing

  
  import re
  from invoke import task
  
  
  def get_version():
      return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
  
  
  @task
  def release(c):
      version = get_version()
  
      c.run("git tag -a aiodns-{0} -m \"aiodns {0} release\"".format(version))
      c.run("git push --tags")
  
      c.run("python setup.py sdist")
+     c.run("python setup.py bdist_wheel")
      c.run("twine upload -r pypi dist/aiodns-{0}*".format(version))
  
  
Build universal wheels when releasing
## Code Before:

import re
from invoke import task


def get_version():
    return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')


@task
def release(c):
    version = get_version()

    c.run("git tag -a aiodns-{0} -m \"aiodns {0} release\"".format(version))
    c.run("git push --tags")

    c.run("python setup.py sdist")
    c.run("twine upload -r pypi dist/aiodns-{0}*".format(version))


## Instruction:
Build universal wheels when releasing
## Code After:

import re
from invoke import task


def get_version():
    return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')


@task
def release(c):
    version = get_version()

    c.run("git tag -a aiodns-{0} -m \"aiodns {0} release\"".format(version))
    c.run("git push --tags")

    c.run("python setup.py sdist")
    c.run("python setup.py bdist_wheel")
    c.run("twine upload -r pypi dist/aiodns-{0}*".format(version))

