Skip to content

Commit

Permalink
Merge pull request #33 from ycharts/pypi_distribution
Browse files Browse the repository at this point in the history
Pypi Distribution
  • Loading branch information
KFoxder authored Nov 8, 2022
2 parents 55bb8fa + ab651b3 commit 0d7fc85
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 25 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/
.vscode/
.DS_Store
*.egg-info/*
*.egg-info
.coverage
**/htmlcov/**
dist/*
6 changes: 6 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -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/*`
2 changes: 1 addition & 1 deletion autocompleter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (1, 0, 0)
VERSION = (1, 0, 1)

from autocompleter.registry import registry, signal_registry
from autocompleter.base import (
Expand Down
2 changes: 2 additions & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
# Packages needed if you'd like to test / develop on django-autocompleter
coverage
pre-commit
twine
build
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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="[email protected]" },
{ name="Kevin Fox", email="[email protected]" },
]
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"}
23 changes: 0 additions & 23 deletions setup.py

This file was deleted.

0 comments on commit 0d7fc85

Please sign in to comment.