File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1515build /
1616develop-eggs /
1717dist /
18+ pypi-dist /
1819downloads /
1920eggs /
2021lib /
Original file line number Diff line number Diff line change 1+ [distutils]
2+ index-servers=
3+ pypi
4+ testpypi
5+
6+ [pypi]
7+
8+ [testpypi]
9+ repository: https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change @@ -57,3 +57,29 @@ deps =
5757commands =
5858 sphinx-apidoc -f -o source ../boxsdk
5959 make html
60+
61+ [testenv:py36-build]
62+ description = Build the source and binary wheel packages for distribution.
63+ pypi_dist_dir = {toxinidir}/pypi-dist
64+ commands =
65+ rm -rf " {[testenv:py36-build]pypi_dist_dir}"
66+ {envpython} setup.py -vv \
67+ sdist --formats =gztar --keep-temp --dist-dir =" {[testenv:py36-build]pypi_dist_dir}" \
68+ bdist_wheel --keep-temp --dist-dir =" {[testenv:py36-build]pypi_dist_dir}"
69+ skip_install = True
70+ sitepackages = False
71+ recreate = True
72+ deps =
73+ wheel
74+ setuptools
75+ whitelist_externals = rm
76+
77+ [testenv:py36-upload]
78+ description = Upload packages to PyPI.
79+ commands =
80+ twine upload --config-file =" {toxinidir}/.pypirc" {posargs} {[testenv:py36-build]pypi_dist_dir}/*
81+ skip_install = True
82+ sitepackages = False
83+ recreate = True
84+ deps =
85+ twine
You can’t perform that action at this time.
0 commit comments