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

build: Use hatch as build system and migrate to pyproject.toml #41

Merged
merged 5 commits into from
Oct 10, 2022
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
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand All @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand All @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
104 changes: 104 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
[build-system]
requires = [
"hatchling>=1.10.0",
]
build-backend = "hatchling.build"

[project]
name = "timezone-converter"
version = "0.11.0"
description = "Compare your local timezone with foreign ones."
license = "MIT"
license-files = { paths = ["LICENSE"] }
readme = "README.md"
authors = [
{ name = "Iago Alonso", email = "deejaynof@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"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 :: Implementation :: CPython",
"Topic :: Terminals",
"Topic :: Utilities",
"Typing :: Typed",
]
requires-python = ">=3.7"
dependencies = [
"importlib-metadata; python_version < '3.8'",
"pytz>=2021.1",
"rich>=10.0.1",
]

[project.scripts]
timezone-converter = "timezone_converter.main:main"

[project.urls]
Homepage = "https://github.com/ibLeDy/timezone-converter"

[tool.hatch.build.targets.sdist]
include = [
"timezone_converter",
]
exclude = [
"tests*",
]

[tool.hatch.build.targets.wheel]
packages = [
"timezone_converter",
]

[tool.mypy]
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true

[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false

[tool.coverage.run]
plugins = "covdefaults"

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37, py38, py39, py310
isolated_build = True

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[testenv]
commands =
timezone-converter
timezone-converter --help
timezone-converter tijuana
timezone-converter tijuana --single
timezone-converter tijuana --single 14
timezone-converter tijuana new_york
timezone-converter tijuana new_york --single
timezone-converter tijuana --zone
timezone-converter tijuana --list
timezone-converter tijuana --list tbd
"""
85 changes: 0 additions & 85 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.