Skip to content

Commit

Permalink
Make project use pyproject.toml
Browse files Browse the repository at this point in the history
- It's the recommended way to build packages now
- More info: https://packaging.python.org/en/latest/tutorials/packaging-projects/#creating-pyproject-toml
  • Loading branch information
Uxio0 committed Jun 16, 2022
1 parent ae1acb7 commit 48cb897
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ jobs:
python-version: 3.9
- name: Deploy Package
run: |
python -m pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m pip install --upgrade build twine
python -m build
twine upload dist/*
env:
TWINE_USERNAME: __token__
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
long_description=README,
url="https://github.com/safe-global/safe-eth-py",
author="Uxío",
author_email="uxio@gnosis.pm",
author_email="uxio@safe.global",
keywords=["ethereum", "web3", "django", "rest", "gnosis"],
classifiers=[
"Environment :: Web Environment",
Expand Down

0 comments on commit 48cb897

Please sign in to comment.