Skip to content

Commit

Permalink
Migrate setup.py to setup.cfg
Browse files Browse the repository at this point in the history
- Remove pyproject.toml, it was breaking local install (`pip -e ...`)
- Set version 4.5.0
  • Loading branch information
Uxio0 committed Sep 22, 2022
1 parent c55241e commit 067a2de
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
SOURCE_FOLDER: gnosis
DJANGO_SETTINGS_MODULE: config.settings.test
ETHEREUM_MAINNET_NODE: ${{ secrets.ETHEREUM_MAINNET_NODE }}
- name: Test setup.py
- name: Test packaging
run: pip install -e .
- name: Send results to coveralls
run: coveralls --service=github
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Gnosis Ltd
Copyright (c) 2018 Safe Ecosystem Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml

This file was deleted.

65 changes: 65 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
[metadata]
name = safe-eth-py
version = 4.5.0
description = Safe Ecosystem Foundation utilities for Ethereum projects
long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
keywords =
ethereum
web3
django
safe
cowswap
gnosis
url = https://github.com/safe-global/safe-eth-py
author = Uxío
author_email = uxio@safe.global
license = MIT License
license_files =
LICENSE
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 2.0
Framework :: Django :: 3.0
Framework :: Django :: 4.0
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
project_urls =
Documentation = https://safe-eth-py.readthedocs.io/en/latest/
Source = https://github.com/safe-global/safe-eth-py
Tracker = https://github.com/safe-global/safe-eth-py/issues

[options]
packages = find:
platforms = any
include_package_data = True
install_requires =
cached-property>=1.5; python_version < "3.8"
eip712_structs
packaging
py-evm==0.5.0a3
pysha3>=1.0.0
requests>=2
typing-extensions>=3.10; python_version < "3.8"
web3>=5.23.0
python_requires = >=3.7

[options.package_data]
gnosis =
py.typed
*.json

[options.extras_require]
django =
django>=2
django-filter>=2
djangorestframework>=2

[flake8]
max-line-length = 88
select = C,E,F,W,B,B950
Expand Down
58 changes: 3 additions & 55 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,56 +1,4 @@
import os
import setuptools

from setuptools import find_packages, setup

with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

requirements = [
"cached-property>=1.5; python_version < '3.8'",
"eip712_structs",
"packaging",
"py-evm==0.5.0a3",
"pysha3>=1.0.0",
"requests>=2",
"typing-extensions>=3.10; python_version < '3.8'",
"web3>=5.23.0",
]

extras_require = {"django": ["django>=2", "django-filter>=2", "djangorestframework>=2"]}

setup(
name="safe-eth-py",
version="4.4.0",
packages=find_packages(),
package_data={"gnosis": ["py.typed"]},
install_requires=requirements,
include_package_data=True,
extras_require=extras_require,
python_requires=">=3.7",
license="MIT License",
description="Gnosis libraries for Python Projects",
long_description=README,
url="https://github.com/safe-global/safe-eth-py",
author="Uxío",
author_email="uxio@safe.global",
keywords=["ethereum", "web3", "django", "rest", "gnosis"],
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.0",
"Framework :: Django :: 3.0",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
)
if __name__ == "__main__":
setuptools.setup()

0 comments on commit 067a2de

Please sign in to comment.