File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ recursive-include requirements *
2
2
include requirements.txt
3
3
include README.rst
4
4
include LICENSE.txt
5
- include VERSION
5
+ include dbbackup/ VERSION
6
6
recursive-include dbbackup/tests/testapp/blobs *
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
5
5
import django
6
6
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 :
9
9
__version__ = f .read ().strip ()
10
10
"""The full version, including alpha/beta/rc tags."""
11
11
Original file line number Diff line number Diff line change 4
4
5
5
from setuptools import find_packages , setup
6
6
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 :
9
10
version = f .read ().strip ()
10
11
11
12
12
13
def get_requirements ():
13
- with (project_dir / "requirements.txt" ).open () as f :
14
+ with (root_dir / "requirements.txt" ).open () as f :
14
15
return f .read ().splitlines ()
15
16
16
17
17
18
def get_test_requirements ():
18
- with (project_dir / "requirements" / "tests.txt" ).open () as f :
19
+ with (root_dir / "requirements" / "tests.txt" ).open () as f :
19
20
return f .read ().splitlines ()
20
21
21
22
@@ -25,7 +26,7 @@ def get_test_requirements():
25
26
description = "Management commands to help backup and restore a project database and media." ,
26
27
author = "Archmonger" ,
27
28
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" ),
29
30
python_requires = ">=3.6" ,
30
31
install_requires = get_requirements (),
31
32
tests_require = get_test_requirements (),
You can’t perform that action at this time.
0 commit comments