Skip to content

Commit

Permalink
Start using pyproject.toml and setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
shacker committed Nov 3, 2022
1 parent 103b00a commit f8ff87f
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 457 deletions.
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions Pipfile

This file was deleted.

349 changes: 0 additions & 349 deletions Pipfile.lock

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ django-todo uses pytest exclusively for testing. The best way to run the suite i

## Version History

**2.5.0** Change setup to pyprojec.toml

**2.4.11** Add SECURITY.md

**2.4.10** It is now possible to use unicode characters (such as Chinese) as the only chars in a list title.
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ['setuptools>=40.8.0', 'wheel']
build-backend = 'setuptools.build_meta:__legacy__'
35 changes: 35 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[metadata]
name = django-todo
version = 2.5.0
description = A multi-user, multi-group task management and assignment system for Django.
long_description = file: README.md
long_description_content_type = text/markdown
url = http://django-todo.org
author = Scot Hacker
author_email = [email protected]
license = BSD-3-Clause
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 4.0
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
include_package_data = true
packages = find:
python_requires = >=3.9
install_requires =
Django >= 4.0
factory-boy
titlecase
bleach
django-autocomplete-light
html2text
50 changes: 2 additions & 48 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,49 +1,3 @@
# Based on setup.py master example at https://github.com/pypa/sampleproject/blob/master/setup.py
from setuptools import setup

from io import open
from os import path

from setuptools import setup, find_packages

import todo

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

setup(
name="django-todo",
version=todo.__version__,
description="A multi-user, multi-group task management and assignment system for Django.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/shacker/django-todo",
author="Scot Hacker",
# For a list of valid classifiers, see https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Environment :: Web Environment",
"Framework :: Django",
"Operating System :: OS Independent",
"Topic :: Office/Business :: Groupware",
"Topic :: Office/Business :: Groupware",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Software Development :: Bug Tracking",
],
keywords="lists todo bug bugs tracking",
packages=find_packages(), # Finds modules with an __init__.py
include_package_data=True, # Pulls in non-module data from MANIFEST.in
python_requires=">=3.5",
install_requires=["unidecode"],
project_urls={
"Demo Site": "http://django-todo.org",
"Bug Reports": "https://github.com/shacker/django-todo/issues",
"Source": "https://github.com/shacker/django-todo",
},
)
setup()
10 changes: 0 additions & 10 deletions todo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
"""
A multi-user, multi-group task management and assignment system for Django.
"""
__version__ = "2.4.10"

__author__ = "Scot Hacker"
__email__ = "[email protected]"

__url__ = "https://github.com/shacker/django-todo"
__license__ = "BSD License"

try:
# if django is not installed,
Expand Down

0 comments on commit f8ff87f

Please sign in to comment.