File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- ' 3.4'
88- ' 3.5'
99install :
10+ - pip install -U pip setuptools virtualenv twine
1011- pip install -r requirements-test.txt
1112- pip install release-manager
1213- pip install -e .
Original file line number Diff line number Diff line change 1313
1414
1515HOME = expanduser ("~" )
16- DEFAULT_SERVER = 'https://pypi.python.org/pypi'
1716DEFAULT_REPO = 'pypi'
1817PYPIRC_FILE = '%s/.pypirc' % HOME
1918
@@ -55,7 +54,6 @@ def write_config():
5554 ' %s\n ' % DEFAULT_REPO ,
5655 '\n ' ,
5756 '[%s]\n ' % DEFAULT_REPO ,
58- 'repository=%s\n ' % DEFAULT_SERVER ,
5957 'username=snowplow\n ' ,
6058 'password=%s\n ' % PYPI_PASSWORD
6159 ]
@@ -71,8 +69,8 @@ def deploy_to_pypi():
7169 """Deploys the release to PyPi"""
7270 logger .log_start ("Deploying to PyPi" )
7371 os .chdir (TRAVIS_BUILD_DIR )
74- utils .execute ("python setup.py register -r pypi " , shell = True )
75- utils .execute ("python setup.py sdist upload -r pypi " , shell = True )
72+ utils .execute ("python setup.py sdist bdist_wheel " , shell = True )
73+ utils .execute ("twine upload dist/* " , shell = True )
7674 logger .log_info ("Module deployed to PyPi!" )
7775 logger .log_done ()
7876
You can’t perform that action at this time.
0 commit comments