Skip to content

Commit 91ded93

Browse files
authored
Move VERSION source directory (#443)
1 parent 445d0c3 commit 91ded93

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ recursive-include requirements *
22
include requirements.txt
33
include README.rst
44
include LICENSE.txt
5-
include VERSION
5+
include dbbackup/VERSION
66
recursive-include dbbackup/tests/testapp/blobs *
File renamed without changes.

dbbackup/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import django
66

7-
project_dir = Path(__file__).parent
8-
with (project_dir.parent / "VERSION").open() as f:
7+
src_dir = Path(__file__).parent
8+
with (src_dir / "VERSION").open() as f:
99
__version__ = f.read().strip()
1010
"""The full version, including alpha/beta/rc tags."""
1111

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44

55
from setuptools import find_packages, setup
66

7-
project_dir = Path(__file__).parent
8-
with (project_dir / "VERSION").open() as f:
7+
root_dir = Path(__file__).parent
8+
src_dir = root_dir / "dbbackup"
9+
with (src_dir / "VERSION").open() as f:
910
version = f.read().strip()
1011

1112

1213
def get_requirements():
13-
with (project_dir / "requirements.txt").open() as f:
14+
with (root_dir / "requirements.txt").open() as f:
1415
return f.read().splitlines()
1516

1617

1718
def get_test_requirements():
18-
with (project_dir / "requirements" / "tests.txt").open() as f:
19+
with (root_dir / "requirements" / "tests.txt").open() as f:
1920
return f.read().splitlines()
2021

2122

@@ -25,7 +26,7 @@ def get_test_requirements():
2526
description="Management commands to help backup and restore a project database and media.",
2627
author="Archmonger",
2728
author_email="[email protected]",
28-
long_description=project_dir.joinpath("README.rst").read_text(encoding="utf-8"),
29+
long_description=(root_dir / "README.rst").read_text(encoding="utf-8"),
2930
python_requires=">=3.6",
3031
install_requires=get_requirements(),
3132
tests_require=get_test_requirements(),

0 commit comments

Comments
 (0)