-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move VERSION source directory (#443)
- Loading branch information
1 parent
445d0c3
commit 91ded93
Showing
4 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,19 @@ | |
|
||
from setuptools import find_packages, setup | ||
|
||
project_dir = Path(__file__).parent | ||
with (project_dir / "VERSION").open() as f: | ||
root_dir = Path(__file__).parent | ||
src_dir = root_dir / "dbbackup" | ||
with (src_dir / "VERSION").open() as f: | ||
version = f.read().strip() | ||
|
||
|
||
def get_requirements(): | ||
with (project_dir / "requirements.txt").open() as f: | ||
with (root_dir / "requirements.txt").open() as f: | ||
return f.read().splitlines() | ||
|
||
|
||
def get_test_requirements(): | ||
with (project_dir / "requirements" / "tests.txt").open() as f: | ||
with (root_dir / "requirements" / "tests.txt").open() as f: | ||
return f.read().splitlines() | ||
|
||
|
||
|
@@ -25,7 +26,7 @@ def get_test_requirements(): | |
description="Management commands to help backup and restore a project database and media.", | ||
author="Archmonger", | ||
author_email="[email protected]", | ||
long_description=project_dir.joinpath("README.rst").read_text(encoding="utf-8"), | ||
long_description=(root_dir / "README.rst").read_text(encoding="utf-8"), | ||
python_requires=">=3.6", | ||
install_requires=get_requirements(), | ||
tests_require=get_test_requirements(), | ||
|