Skip to content

Commit 9df3962

Browse files
committed
Add dev requirements
1 parent 00ca248 commit 9df3962

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

admin/release.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ def build() -> None:
107107
subprocess.run(args=args, check=True)
108108

109109

110+
def upload_to_pypi() -> None:
111+
"""
112+
Upload builds to PyPI.
113+
"""
114+
for args in (
115+
['rm', '-rf', 'build'],
116+
['python', 'setup.py', 'sdist', 'bdist_wheel'],
117+
):
118+
subprocess.run(args=args, check=True)
119+
120+
110121
def main() -> None:
111122
"""
112123
Perform a release.
@@ -118,6 +129,7 @@ def main() -> None:
118129
update_changelog(version=version_str)
119130
commit_and_push(version=version_str, repository=repository)
120131
build()
132+
upload_to_pypi()
121133
create_github_release(
122134
repository=repository,
123135
version=version_str,

dev-requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ flake8-quotes==1.0.0 # Require single quotes
1010
freezegun==0.3.10 # Freeze time in tests
1111
hypothesis==3.71.1 # Generate test cases
1212
isort==4.3.4 # Lint imports
13+
keyring==15.0.0
1314
mypy==0.620 # Type checking
1415
pip_check_reqs==2.0.3
1516
pydocstyle==2.1.1 # Lint docstrings
@@ -21,6 +22,7 @@ pytest-cov==2.6.0 # Measure code coverage
2122
pytest-envfiles==0.1.0 # Use files for environment variables for tests
2223
pytest==3.8.0 # Test runners
2324
timeout-decorator==0.4.0 # Decorate functions to time out.
25+
twine==1.11.0
2426
vulture==0.29
2527
yapf==0.24.0 # Automatic formatting for Python
26-
PyYAML==3.13
28+
PyYAML==3.13

0 commit comments

Comments
 (0)