CI/CD config: Autorelease of tagged commits to PyPI

pull/120/head
Dr. Sergey Pogodin 7 years ago
parent 071976c05a
commit cf1f131c6b
  1. 19
      .circleci/config.yml
  2. 4
      setup.py

@ -35,8 +35,27 @@ jobs:
name: Ensuring that setup script is functional
command: cd /home/mythril && python3 setup.py install
deploy:
docker:
- image: birdofpreyru/mythril:0.0.1
steps:
- checkout:
path: /home/mythril
- run:
name: Build
command: cd /home/mythril && python3 setup.py sdist
- run:
name: Deploy
command: cd /home/mythril && twine upload dist/*
workflows:
version: 2
build:
jobs:
- test
- deploy:
filters:
only:
tags: /v[0-9]+(\.[0-9]+)*/
requires:
- test

@ -1,5 +1,5 @@
from setuptools import setup, find_packages
import os
long_description = '''
Mythril is a security analysis tool for Ethereum smart contracts. It
@ -254,7 +254,7 @@ Credit
setup(
name='mythril',
version='0.15.8',
version=os.getenv('CIRCLE_TAG', 'v0.0.0')[1:],
description='Security analysis tool for Ethereum smart contracts',
long_description=long_description,

Loading…
Cancel
Save