Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert setup.py to static setup.cfg #82

Merged
merged 3 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v2.14.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]

- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.5b0
hooks:
- id: black
args: ["--target-version", "py36"]
Expand All @@ -20,7 +20,7 @@ repos:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 3.9.0
rev: 3.9.1
hooks:
- id: flake8
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
Expand All @@ -40,6 +40,11 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
Expand Down
54 changes: 54 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,56 @@
[metadata]
name = tinytext
description = A helpful converter to change any normal text into cuter tinier text
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/hugovk/tinytext
author = Hugo van Kemenade
license = MIT
license_file = LICENSE.txt
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Artistic Software
Topic :: Text Processing
keywords =
botally
tiny type
tiny text
cute text
generator
project_urls =
Source=https://github.com/hugovk/tinytext

[options]
packages = find:
python_requires = >=3.6
package_dir = =src
setup_requires =
setuptools_scm
zip_safe = True

[options.packages.find]
where = src

[options.entry_points]
console_scripts =
tinytext = tinytext.cli:main

[options.extras_require]
tests =
hypothesis-auto
pytest
pytest-cov

[flake8]
max_line_length = 88
46 changes: 1 addition & 45 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from setuptools import find_packages, setup

with open("README.md") as f:
long_description = f.read()
from setuptools import setup


def local_scheme(version):
Expand All @@ -11,46 +8,5 @@ def local_scheme(version):


setup(
name="tinytext",
description="A helpful converter to change any normal text into cuter tinier text",
long_description=long_description,
long_description_content_type="text/markdown",
author="Hugo van Kemenade",
url="https://github.com/hugovk/tinytext",
license="MIT",
keywords=[
"botally",
"tiny type",
"tiny type",
"tiny text",
"cute text",
"generator",
],
packages=find_packages(where="src"),
package_dir={"": "src"},
entry_points={"console_scripts": ["tinytext = tinytext.cli:main"]},
zip_safe=True,
use_scm_version={"local_scheme": local_scheme},
setup_requires=["setuptools_scm"],
extras_require={"tests": ["hypothesis-auto", "pytest", "pytest-cov"]},
python_requires=">=3.6",
project_urls={
"Source": "https://github.com/hugovk/tinytext",
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Artistic Software",
"Topic :: Text Processing",
],
)