Skip to content

Commit

Permalink
More fixes to release process
Browse files Browse the repository at this point in the history
  • Loading branch information
boppreh committed Aug 8, 2017
1 parent 8def870 commit 70cccf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@
response = requests.post(releases_url, json=release, headers={'Authorization': 'token ' + token})
print(response.status_code, response.text)

run(['python', 'setup.py', 'sdist', '--format=zip', 'bdist', '--format=zip', 'bdist_wheel', '--universal', 'bdist_wininst'], check=True)
run(['python', 'setup.py', 'clean'], check=True)
run(['python', 'setup.py', 'sdist', '--format=zip', 'bdist_wheel', '--universal', 'bdist_wininst'], check=True)
run(['twine', 'upload', 'dist/*'], check=True, shell=True)
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
import re
last_version = re.search('(\d+(?:\.\d+)+)', open('CHANGES.md').read()).group(1)

# Wheel creation breaks with Windows newlines.
# https://github.com/pypa/setuptools/issues/1126
long_description = long_description.replace('\r\n', '\n')

from setuptools import setup
setup(
name='keyboard',
Expand All @@ -39,4 +43,4 @@
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)
)

0 comments on commit 70cccf2

Please sign in to comment.