Skip to content

Commit

Permalink
feat: switch to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
filipporomani committed Jun 15, 2024
1 parent 380c7e6 commit bbdd53a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 39 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
## Content index

- [Changelog](#changelog)
- [New in 2.0.2 (Latest)](#new-in-202-latest)
- [New in 2.0.3 (Latest)](#new-in-203-latest)
- [New in 2.0.2](#new-in-202)
- [New in 2.0.1](#new-in-201)
- [New in 2.0.0](#new-in-200)
- [New in 1.1.0](#new-in-110)
Expand All @@ -32,7 +33,10 @@

# Changelog

## New in 2.0.2 (Latest)
## New in 2.0.3 (Latest)
- Switched to hatch for packaging

## New in 2.0.2
- Bugfix in the get_many() function
- Pep8 compliant
- Fixes in the docs
Expand Down
41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name="securedb"
authors = [{name="Filippo Romani", email="[email protected]"}]
description="Easily interact with JSON-based encrypted databases."
readme = "README.md"
requires-python = ">=3.10"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",

]
dynamic = [
"version"
]
dependencies = ["cryptography"]

[project.urls]
Homepage = "https://github.com/filipporomani/securedb"
Docs = "https://github.com/filipporomani/securedb/blob/main/README.md"
"Issues Reporting" = "https://github.com/filipporomani/securedb/issues"
Download = "https://github.com/filipporomani/securedb/releases/latest"
Changelog = "https://github.com/filipporomani/securedb/releases"


[tool.hatch.version]
path = "src/securedb.py"
variable = "VERSION"

[tool.hatch.build.targets.wheel]
packages = ["whatsapp"]
34 changes: 0 additions & 34 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/securedb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from cryptography.fernet import Fernet

VERSION = "2.0.3"

class Error(Exception):
pass
Expand Down

0 comments on commit bbdd53a

Please sign in to comment.