From 01a80c62ddcf42ac1736a0ca4f8730e7c7d4f492 Mon Sep 17 00:00:00 2001 From: Stuart MacKay Date: Sun, 22 Oct 2023 20:00:22 +0100 Subject: [PATCH] Remove references to daughter project from setup In the process of tidy up the code here and in a daughter project, django-feeds the setup got copied into this template. This commit tidies all of that up. --- setup.cfg | 23 ++++++++++++++--------- setup.py | 20 ++++++++------------ 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/setup.cfg b/setup.cfg index 98379cb..3948571 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,7 +23,7 @@ tag = True tag_name = v{new_version} sign_tags = True -[bumpversion:file:src/feeds/__init__.py] +[bumpversion:file:src/app_project/__init__.py] search = __version__ = "{current_version}" replace = __version__ = "{new_version}" @@ -85,10 +85,9 @@ force_grid_wrap = 0 use_parentheses = True ensure_newline_before_comments = True line_length = 88 - default_section = THIRDPARTY known_django = django -known_first_party = feeds +known_first_party = app_project sections = FUTURE, STDLIB, @@ -96,7 +95,6 @@ sections = THIRDPARTY, FIRSTPARTY, LOCALFOLDER - skip = migrations, venv @@ -107,6 +105,7 @@ DJANGO_SETTINGS_MODULE = demo.settings testpaths = src + [coverage:run] branch = true data_file = .coverage @@ -126,17 +125,23 @@ exclude_lines = [coverage:html] directory = coverage +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + [tox:tox] envlist = {py38,py310}-django{32,40} - [testenv:docs] -basepython=python -changedir=docs -deps= -r requirements/docs.txt -commands= +basepython = python +changedir = docs +deps = -r requirements/docs.txt +commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html + [testenv] commands = pytest deps = -r requirements/tests.txt diff --git a/setup.py b/setup.py index cf58d31..1685ef5 100644 --- a/setup.py +++ b/setup.py @@ -17,27 +17,23 @@ def read(filename): setup( - name="django-rss-feeds", + name="django-app-template", version="0.0.0", - description="An aggregator for RSS and Atom feeds.", + description="A project template for reusable Django apps.", long_description=read("README.md"), long_description_content_type="text/x-rst", - author="Stuart MacKay", - author_email="smackay@flagstonesoftware.com", - keywords="django, rss, atom", - url="https://github.com/StuartMacKay/django-feeds", - packages=["feeds", "feeds/migrations"], + author="A Developer", + author_email="developer@example.com", + keywords="django, app, template", + url="https://github.com/StuartMacKay/django-app_template", + packages=["app_project", "app_project/migrations"], package_dir={"": "src"}, include_package_data=True, zip_safe=False, python_requires=">=3.8", install_requires=[ - "Django>=3.2,<3.3", - "croniter", + "Django>=3.2", "django-extensions", - "django-tagulous", - "feedparser", - "python-dateutil", "psycopg2-binary", ], license="License :: OSI Approved :: Apache Software License",