diff --git a/.gitignore b/.gitignore index 119c224..fff603e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .idea/ .vscode/ .DS_Store -*.egg-info/* +*.egg-info .coverage **/htmlcov/** +dist/* diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 0000000..006d1a9 --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,6 @@ +# Create Release + +1. Update version in `autocompleter/__init__.py` +2. `pip install -r dev_requirements.txt` +3. `python -m build` +4. `twine upload dist/*` diff --git a/autocompleter/__init__.py b/autocompleter/__init__.py index 30b0a3a..16ab705 100644 --- a/autocompleter/__init__.py +++ b/autocompleter/__init__.py @@ -1,4 +1,4 @@ -VERSION = (1, 0, 0) +VERSION = (1, 0, 1) from autocompleter.registry import registry, signal_registry from autocompleter.base import ( diff --git a/dev_requirements.txt b/dev_requirements.txt index c62b0d1..8f74f08 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -2,3 +2,5 @@ # Packages needed if you'd like to test / develop on django-autocompleter coverage pre-commit +twine +build diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a9ee6bf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "django-redis-autocompleter" +authors = [ + { name="Ara Anjargolian", email="ara818@gmail.com" }, + { name="Kevin Fox", email="kevin_fox@me.com" }, +] +description = "A redis-backed autocompleter for Django projects." +readme = "README.md" +requires-python = ">=3.7" +keywords = [ + "autocompleter", + "django" +] +classifiers = [ + "Programming Language :: Python :: 3", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Framework :: Django", +] +dependencies = [ + "Django >=3.2.*, <4.0", + "hiredis >= 1", + "redis >= 3", +] +dynamic = ["version"] + +[project.urls] +"Homepage" = "https://github.com/ycharts/django-autocompleter" +"Bug Tracker" = "https://github.com/ycharts/django-autocompleter/issues" + +[tool.setuptools] +packages = [ + "autocompleter", + "autocompleter.management", + "autocompleter.management.commands", +] + +[tool.setuptools.dynamic] +version = {attr = "autocompleter.VERSION"} diff --git a/setup.py b/setup.py deleted file mode 100644 index f61d6d8..0000000 --- a/setup.py +++ /dev/null @@ -1,23 +0,0 @@ -from setuptools import setup - -setup( - name="django-autocompleter", - version="1.0.0", - description="A redis-backed autocompleter for Django projects. Originally created by Ara Anjargolian", - author="YCharts", - author_email="developers@ycharts.com", - url="https://github.com/ycharts/django-autocompleter", - packages=[ - "autocompleter", - "autocompleter.management", - "autocompleter.management.commands", - ], - install_requires=["setuptools", "redis", "hiredis"], - classifiers=[ - "Environment :: Web Environment", - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Framework :: Django", - ], -)