Skip to content

Commit b852d02

Browse files
committed
tidy up metadata for check-manifest.
1 parent 9073ba6 commit b852d02

File tree

7 files changed

+61
-12
lines changed

7 files changed

+61
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ django_haystackbrowser.egg-info
77
.eggs
88
db.sqlite3
99
.tox
10+
htmlcov/

MANIFEST.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include LICENSE
22
include README.rst
3+
include tox.ini
4+
include Makefile
35
global-include *.rst *.py *.html
4-
global-exclude *.pyc *.pyo *.sw? *.sh
56
recursive-include docs Makefile
7+
recursive-exclude htmlcov *.html
68
prune docs/_build

Makefile

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.PHONY: clean-pyc clean-build docs clean
2+
3+
help:
4+
@echo "clean - remove all build, test, coverage and Python artifacts"
5+
@echo "clean-build - remove build artifacts"
6+
@echo "clean-pyc - remove Python file artifacts"
7+
@echo "clean-test - remove test and coverage artifacts"
8+
@echo "test - run tests quickly with the default Python"
9+
@echo "release - package and upload a release"
10+
@echo "dist - package"
11+
@echo "check - package & run metadata sanity checks"
12+
@echo "run - runserver"
13+
@echo "install - install the package to the active Python's site-packages"
14+
15+
clean: clean-build clean-pyc clean-test
16+
17+
clean-build:
18+
rm -fr build/
19+
rm -fr dist/
20+
rm -fr .eggs/
21+
find . -name '*.egg-info' -exec rm -fr {} +
22+
find . -name '*.egg' -exec rm -f {} +
23+
24+
clean-pyc:
25+
find . -name '*.pyc' -exec rm -f {} +
26+
find . -name '*.pyo' -exec rm -f {} +
27+
find . -name '*~' -exec rm -f {} +
28+
find . -name '__pycache__' -exec rm -fr {} +
29+
30+
clean-test:
31+
rm -fr .tox/
32+
rm -f .coverage
33+
rm -fr htmlcov/
34+
35+
test: clean-pyc clean-test
36+
python -B -R -tt -W ignore setup.py test
37+
38+
release: dist
39+
twine upload dist/*
40+
41+
dist: test clean
42+
python setup.py sdist bdist_wheel
43+
ls -l dist
44+
45+
check: dist
46+
check-manifest
47+
pyroma .
48+
restview --long-description
49+
50+
install: clean
51+
python setup.py install
52+
53+
run: clean-pyc
54+
python demo_project.py runserver 0.0.0.0:8080

release.sh

-10
This file was deleted.

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ ignore =
3636
.gitignore
3737
.bzrignore
3838
*.mo
39+
htmlcov

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def make_readme(root_path):
8181
author_email='[email protected]',
8282
license="BSD License",
8383
keywords="django",
84+
zip_safe=False,
8485
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
8586
url='https://github.com/kezabelle/django-haystackbrowser/tree/master',
8687
packages=PACKAGES,

tests_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
USE_TZ = True
6464

6565

66-
OLD_HAYSTACK = bool(int(os.getenv('OLD_HAYSTACK')))
66+
OLD_HAYSTACK = bool(int(os.getenv('OLD_HAYSTACK', '0')))
6767

6868
if OLD_HAYSTACK is True:
6969
HAYSTACK_SITECONF = 'tests_search_sites'

0 commit comments

Comments
 (0)