Skip to content

Commit

Permalink
Merge pull request #140 from hugovk/migrate-config
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 4, 2022
2 parents c9136ec + 497ae59 commit 80fc4c5
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
python-version: "3.10"
cache: pip
cache-dependency-path: setup.cfg
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.cfg
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand Down
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ repos:
additional_dependencies: [types-setuptools]
args: [--strict]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.0.0
hooks:
- id: setup-cfg-fmt
args: [--max-py-version=3.11, --include-version-classifiers]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.3.5
hooks:
Expand Down
72 changes: 68 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,78 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=6.2",
]

[project]
name = "tinytext"
description = "A helpful converter to change any normal text into cuter tinier text"
readme = "README.md"
keywords = [
"botally",
"cute text",
"generator",
"tiny text",
"tiny type",
]
license = {text = "MIT"}
authors = [{name = "Hugo van Kemenade"}]
requires-python = ">=3.7"
dependencies = [
'importlib-metadata; python_version < "3.8"',
]
dynamic = [
"version",
]
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.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Artistic Software",
"Topic :: Text Processing",
]
[project.optional-dependencies]
tests = [
"hypothesis-auto",
"pytest",
"pytest-cov",
]

[project.urls]
Changelog = "https://github.com/hugovk/tinytext/releases"
Homepage = "https://github.com/hugovk/tinytext"
Source = "https://github.com/hugovk/tinytext"

[project.scripts]
tinytext = "tinytext.cli:main"


[tool.black]
target_version = ["py37"]

[tool.isort]
profile = "black"

[tool.mypy]
strict = true
[tool.setuptools]
package-dir = {"" = "src"}
zip-safe = true
license-files = ["LICENSE.txt"]
include-package-data = false

[tool.pytest.ini_options]
addopts = "-W error::DeprecationWarning"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false

[tool.setuptools_scm]
local_scheme = "no-local-version"
57 changes: 0 additions & 57 deletions setup.cfg

This file was deleted.

4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

from setuptools import setup

setup()
setup(
setup_requires=["setuptools_scm[toml]>=6.2"],
)

0 comments on commit 80fc4c5

Please sign in to comment.