Skip to content

Commit

Permalink
Nov 9 update. setup.py & setup.cfg updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviksaikat committed Nov 10, 2023
1 parent 5ce187c commit b39136a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 111 deletions.
75 changes: 0 additions & 75 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,78 +1,3 @@
# This file is used to configure your project.
# Read more about the various options under:
# https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
# https://setuptools.pypa.io/en/latest/references/keywords.html

[metadata]
name = swarm-cid-py
description = Utility library written in Python to convert Swarm hex references into Swarm CIDs
author = SAIKAT KARMAKAR
author_email = [email protected]
license = AGPL-3.0-or-later
license_files = LICENSE.txt
long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
url = https:/Aviksaikat/swarm-cid-py
# Add here related links, for example:
project_urls =
# Documentation = https://pyscaffold.org/
Source = https:/Aviksaikat/swarm-cid-py
# Changelog = https://pyscaffold.org/en/latest/changelog.html
Tracker = https:/Aviksaikat/swarm-cid-py/issues
# Conda-Forge = https://anaconda.org/conda-forge/pyscaffold
# Download = https://pypi.org/project/PyScaffold/#files
# Twitter = https://twitter.com/PyScaffold

# Change if running only on Windows, Mac or Linux (comma-separated)
platforms = any

# Add here all kinds of additional classifiers as defined under
# https://pypi.org/classifiers/
classifiers =
Development Status :: 4 - Beta
Programming Language :: Python


[options]
zip_safe = False
packages = find_namespace:
include_package_data = True
package_dir =
=src

# Require a min/specific Python version (comma-separated conditions)
# python_requires = >=3.8

# Add here dependencies of your project (line-separated), e.g. requests>=2.2,<3.0.
# Version specifiers like >=2.2,<3.0 avoid problems due to API changes in
# new major versions. This works if the required packages follow Semantic Versioning.
# For more information, check out https://semver.org/.
install_requires =
importlib-metadata; python_version<"3.8"
eth-ape
ape-solidity
ape-etherscan
cryptography
coverage-enable-subprocess
pytest-cov


[options.packages.find]
where = src
exclude =
tests

[options.extras_require]
# Add here additional requirements for extra features, to install with:
# `pip install bee_py[PDF]` like:
# PDF = ReportLab; RXP

# Add here test requirements (semicolon/line-separated)
testing =
setuptools
pytest
pytest-cov

[options.entry_points]
# Add here console scripts like:
# console_scripts =
Expand Down
72 changes: 36 additions & 36 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
from setuptools import find_packages, setup
from setuptools import find_packages, setup # type: ignore

extras_require = {
"test": [
"pytest",
"pytest-cov",
],
"lint": [
"black>=23.11.0,<24", # Auto-formatter and linter
"isort>=5.12.0,<6",
"mypy>=1.5.1,<2", # Static type analyzer
"types-PyYAML", # Needed due to mypy typeshed
"types-requests", # Needed due to mypy typeshed
"types-setuptools", # Needed due to mypy typeshed
"pandas-stubs==1.2.0.62", # Needed due to mypy typeshed
"types-SQLAlchemy>=1.4.49", # Needed due to mypy typeshed
"flake8>=6.1.0,<7", # Style linter
"flake8-breakpoint>=1.1.0,<2", # detect breakpoints left in code
"flake8-print>=4.0.1,<5", # detect print statements left in code
"isort>=5.10.1,<6", # Import sorting linter
"mdformat>=0.7.17", # Auto-formatter for markdown
"mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown
"mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style
# headers in issue templates
"mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml
# "pyproject-flake8>=6.1.0", # need to connect pyproject.toml config to flake8
],
}


extras_require["dev"] = extras_require["test"] + extras_require["lint"]


setup(
name="swarm-cid-py",
Expand All @@ -22,40 +53,9 @@
],
python_requires=">=3.9",
install_requires=[
"eth-ape",
"ape-alchemy",
"ape-solidity",
"ape-foundry",
"ape-etherscan",
"pyscaffold",
"cryptography",
"coverage-enable-subprocess",
"pytest-cov",
"py-multiformats-cid",
"multiformats-fix",
"pysha3",
],
extras_require={
"test": [
"pytest",
"pytest-cov",
],
"lint": [
"black>=23.11.0,<24", # Auto-formatter and linter
"isort>=5.12.0,<6",
"mypy>=1.5.1,<2", # Static type analyzer
"types-PyYAML", # Needed due to mypy typeshed
"types-requests", # Needed due to mypy typeshed
"types-setuptools", # Needed due to mypy typeshed
"pandas-stubs==1.2.0.62", # Needed due to mypy typeshed
"types-SQLAlchemy>=1.4.49", # Needed due to mypy typeshed
"flake8>=6.1.0,<7", # Style linter
"flake8-breakpoint>=1.1.0,<2", # detect breakpoints left in code
"flake8-print>=4.0.1,<5", # detect print statements left in code
"isort>=5.10.1,<6", # Import sorting linter
"mdformat>=0.7.17", # Auto-formatter for markdown
"mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown
"mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style
# headers in issue templates
"mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml
# "pyproject-flake8>=6.1.0", # need to connect pyproject.toml config to flake8
],
},
extras_require=extras_require,
)

0 comments on commit b39136a

Please sign in to comment.