Skip to content

Commit

Permalink
feat: Update tox.ini to use poetry instead of twine for publishing
Browse files Browse the repository at this point in the history
Removes the dependency on the plain-text .pypirc file that can introduce potential security vulnerabilities.

Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Jan 31, 2024
1 parent 9523952 commit c267301
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright 2023 Canonical Ltd.
# Copyright 2024 Canonical Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 3 as published by the Free Software Foundation.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

[tox]
skipsdist=True
Expand Down Expand Up @@ -60,14 +60,15 @@ commands =
coverage report

[testenv:publish]
description = Publish slurmtools to PyPI.
description = Publish slurmutils to PyPI using poetry.
allowlist_externals =
/usr/bin/rm
/usr/bin/poetry
deps =
twine
setuptools
wheel
commands =
rm -rf {toxinidir}/dist
python setup.py sdist bdist_wheel
twine upload {toxinidir}/dist/*
poetry build
poetry publish

0 comments on commit c267301

Please sign in to comment.