Skip to content

Commit

Permalink
Switch to Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 19, 2023
1 parent 9302424 commit 622216d
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 84 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
commit-message:
prefix: "[python]"
labels:
- dependencies
- d:python

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
*.egg
*.egg-info/
*.pyc
.cache/
.coverage*
.eggs/
.mypy_cache/
.pytest_cache/
.tox/
__pycache__/
build/
dist/
docs/_build/
venv/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v0.9.0 (in development)
-----------------------
- Drop support for Python 3.6
- Support Python 3.11 and 3.12
- Migrated from setuptools to hatch

v0.8.1 (2021-10-05)
-------------------
Expand Down
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ v0.9.0 (in development)
-----------------------
- Drop support for Python 3.6
- Support Python 3.11 and 3.12
- Migrated from setuptools to hatch


v0.8.1 (2021-10-05)
Expand Down
83 changes: 81 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,82 @@
[build-system]
requires = ["setuptools >= 46.4.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "javaproperties"
dynamic = ["version"]
description = "Read & write Java .properties files"
readme = "README.rst"
requires-python = ">=3.7"
license = "MIT"
license-files = { paths = ["LICENSE"] }
authors = [
{ name = "John Thorvald Wodder II", email = "[email protected]" }
]

keywords = [
"java",
"properties",
"javaproperties",
"configfile",
"config",
"configuration",
]

classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"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 :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Java Libraries",
"Topic :: Utilities",
"Typing :: Typed",
]

dependencies = []

[project.urls]
"Source Code" = "https://github.com/jwodder/javaproperties"
"Bug Tracker" = "https://github.com/jwodder/javaproperties/issues"
"Documentation" = "https://javaproperties.readthedocs.io"

[tool.hatch.version]
path = "src/javaproperties/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/src",
"/test",
"CHANGELOG.*",
"CONTRIBUTORS.*",
"tox.ini",
]

[tool.hatch.envs.default]
python = "3"

[tool.mypy]
allow_incomplete_defs = false
allow_untyped_defs = false
ignore_missing_imports = false
# <https://github.com/python/mypy/issues/7773>:
no_implicit_optional = true
implicit_reexport = false
local_partial_types = true
pretty = true
show_error_codes = true
show_traceback = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
68 changes: 0 additions & 68 deletions setup.cfg

This file was deleted.

0 comments on commit 622216d

Please sign in to comment.