Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d05fe2f

Browse files
Trying to push to PyPI
1 parent 9f8d429 commit d05fe2f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

‎.circleci/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install_dependencies: &install_dependencies
1111
python3 -m venv venv
1212
. venv/bin/activate
1313
sudo pip install -e .
14-
sudo pip install green flake8 pyautoversion towncrier pytest twine==1.11
14+
sudo pip install setuptools green flake8 pyautoversion towncrier pytest twine==1.11
1515
jobs:
1616
build:
1717
docker:

‎docs/news/1.feature‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Releasing to PyPI

‎scripts/tag_and_release.py‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def main():
6666
subprocess.check_call(['git', 'remote', 'set-url', 'origin', new_url])
6767
branch_spec = 'origin/%s' % branch_name.decode('utf-8').strip()
6868
subprocess.check_call(['git', 'branch', '--set-upstream-to', branch_spec])
69+
print('Generating a release package')
70+
subprocess.check_call(
71+
[ 'python', 'setup.py', 'clean', '--all', 'bdist_wheel', '--dist-dir', 'release-dist'])
72+
print('Uploading to PyPI')
73+
subprocess.check_call(['python', '-m', 'twine', 'upload', 'release-dist/*'])
6974
print('Committing the changelog & version')
7075
subprocess.check_call(['git', 'add', VERSION_FILE])
7176
subprocess.check_call(['git', 'add', 'CHANGELOG.md'])
@@ -79,13 +84,7 @@ def main():
7984
print('Marking this commit as latest')
8085
subprocess.check_call(['git', 'tag', '-f', 'latest'])
8186
subprocess.check_call(['git', 'push', '-f', '--tags'])
82-
print('Generating a release package')
83-
subprocess.check_call(
84-
[ 'python', 'setup.py', 'clean', '--all', 'bdist_wheel', '--dist-dir', 'release-dist'])
85-
print('Uploading to PyPI')
86-
subprocess.check_call(['python', '-m', 'twine', 'upload', 'release-dist/*'])
8787
print('Done.')
8888

89-
9089
if __name__ == '__main__':
9190
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /