Skip to content

Commit

Permalink
Update distribution setup.
Browse files Browse the repository at this point in the history
Switch to src-layout for code and move distribution metadata from setup.py
to pyproject.toml.
  • Loading branch information
zsiciarz committed Oct 30, 2024
1 parent 11e13e7 commit d9d82b4
Show file tree
Hide file tree
Showing 33 changed files with 56 additions and 66 deletions.
15 changes: 12 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
include CHANGES.rst
include .coveragerc
include LICENSE
include README.rst
include Makefile
include MANIFEST.in
recursive-include pgallery/templates *
recursive-include pgallery/locale *
include README.rst
include pyproject.toml
include requirements.txt
include test_requirements.txt
include tox.ini
graft src
graft tests
graft example_project
global-exclude *.py[cod] __pycache__
15 changes: 0 additions & 15 deletions pgallery/__init__.py

This file was deleted.

43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"

[project]
name = "django-pgallery"
description = "Photo gallery app for PostgreSQL and Django."
readme = "README.rst"
requires-python = ">=3.9"
authors = [{name="Zbigniew Siciarz", email="[email protected]"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Topic :: Utilities",
]
dependencies = [
"Django>=4.2,<6.0",
"Pillow>=10",
"psycopg2>=2.8",
"django-markitup>=4.0",
"django-model-utils>=5.0",
]
dynamic = ["version"]

[project.urls]
source = "https://github.com/zsiciarz/django-pgallery"

[tool.setuptools.dynamic]
version = {attr = "pgallery.__version__"}
48 changes: 0 additions & 48 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions src/pgallery/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.12.0a1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d9d82b4

Please sign in to comment.