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

chore(build): Improve build process #210 #212

Merged
merged 2 commits into from
Dec 17, 2024
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: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<!--next-version-placeholder-->

## [2024.12.17.1]

### Maintenance
- Improve build process (build) [#210](https://github.com/imAsparky/django-tag-me/pull/210)


## [2024.12.16.6]

### Bug Fixes
Expand Down
21 changes: 21 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Documentation
include README.rst
include CHANGELOG.md
include CONTRIBUTING.rst
include LICENSE
include version.toml
include pyproject.toml

# Development project
graft example

# Tests
# recursive-include tests *.py
graft tests

# Exclusions - be aggressive
global-exclude */__pycache__/*
global-exclude *.py[cod]
global-exclude *.so
global-exclude .*.swp
global-exclude .DS_Store
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

|

**Version = 2024.12.16.6**
**Version = 2024.12.17.1**

|

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
copyright = "2023, Mark Sevelj"
author = "Mark Sevelj"

__version__ = "2024.12.16.6"
__version__ = "2024.12.17.1"
# The full version, including alpha/beta/rc tags.
release = __version__

Expand Down
43 changes: 31 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "django-tag-me"
version = "2024.12.17.1"
description = "A simple approach to Django tagging"
readme = "README.rst"
requires-python = ">=3.10"
license = {text = "BSD-3-Clause"}

authors = [{ name = "Mark Sevelj", email = "[email protected]" }]
maintainers = [{ name = "Mark Sevelj", email = "[email protected]" }]

keywords = ["Django Tag Me", "Django", "django", "django tagging", "Django tags", "Django field tags"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
Expand All @@ -21,37 +31,46 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = ["Django>=4.0"]
description = "A simple approach to Django tagging"
keywords = ["Django Tag Me", "Django", "django", "django tagging"]
license = {text = "BSD-3-Clause"}
maintainers = [{ name = "Mark Sevelj", email = "[email protected]" }]
name = "django-tag-me"
readme = "README.rst"
requires-python = ">=3.10"
version = "2024.12.16.6"

[project.optional-dependencies]
dev = [
"django-extensions",
"hypothesis",
"pyright",
"pytest",
"pytest-django",
"pytest-cov",
"tox",
]

[project.urls]
Repository = "https://github.com/imAsparky/django-tag-me"
Tracker = "https://github.com/imAsparky/django-tag-me/issues"
Documentation = "https://django-tag-me.readthedocs.io"
Tracker = "https://github.com/imAsparky/django-tag-me/issues"
Changelog = "https://github.com/imAsparky/django-tag-me/blob/main/CHANGELOG.md"

[tool.setuptools]
packages = {find = {where = ["tag_me"]}}

[tool.setuptools.package-data]
tag_me = [
"static/**/*",
"templates/**/*",
"templatetags/**/*",
]

[tool.setuptools.exclude-package-data]
"*" = ["tests/*", "example/*"]

[tool.distutils.commands]
pre-build = "rm -rf **/__pycache__ *.pyc"

[tool.coverage.run]
omit = [
'tests/test_*.py',
# '*/migrations/*'
]

[tool.setuptools]
packages = ["tag_me"]

[tool.bandit]
exclude_dirs = ["tests"]

Expand Down
2 changes: 1 addition & 1 deletion tag_me/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2024.12.16.6"
__version__ = "2024.12.17.1"
24 changes: 20 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
[tox]
skipsdist = true
# Usage: TOX_SKIPSDIST=false TOX_ISOLATED_BUILD=true tox
# Or add them to your environment, .env etc and just run tox.
# - Override for faster dev testing:
# TOX_SKIPSDIST=true TOX_ISOLATED_BUILD=false tox
# Comprehensive testing with x-dist:
# - Isolated builds for worker consistency.
# - Full package builds for accurate testing.
skipsdist = {env:TOX_SKIPSDIST:false}
isolated_build = {env:TOX_ISOLATED_BUILD:true}
workdir = ../.tox
skip_missing_interpreters = true
env_list =
py{310}-dj40
py{310}-dj{40}
py{310, 311}-dj{41}
py{310, 311, 312}-dj{42,50}
py{310, 311, 312, 313}-dj{51,main}
minversion = 4.23.0

# This section controls which environments run in GitHub Actions
[gh-actions]
python =
3.10: py310-dj41
3.11: py311-dj42
3.12: py311-dj51

[testenv]
allowlist_externals =
Expand All @@ -28,7 +40,11 @@ setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1

deps =
dj41: Django>=4.0,<5.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion version.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tb.version]
__version__ = "2024.12.16.6"
__version__ = "2024.12.17.1"