Skip to content

Commit aa3f25b

Browse files
authored
Merge pull request #752 from strictdoc-project/fix-pip-package
setup.py: fix issue with packaging requirements.txt file
2 parents bfd692e + 9223f4b commit aa3f25b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import strictdoc
66

77
package_data = {
8+
"": ["requirements.txt", "requirements.development.txt"],
89
# It looks like the package data in setup.py does not support globbing
910
# (see pypa/setuptools#1806, https://github.com/pypa/setuptools/issues/1806)
1011
# Doing the globbing manually for now.
@@ -55,8 +56,14 @@
5556
"tests*",
5657
],
5758
),
58-
"package_data": package_data,
5959
# 'package_dir': {"": "strictdoc"},
60+
# package_data - defines files related to the python package, e.g.,
61+
# documentation, static image files, configurations.
62+
# data_files - defines files that will be installed system-wise, not in
63+
# site-package directory. eg. desktop icons, fonts.
64+
# https://stackoverflow.com/a/66370532/598057
65+
"package_data": package_data,
66+
"data_files": [],
6067
"install_requires": REQUIREMENTS,
6168
"extras_require": REQUIREMENTS_DEVELOPMENT,
6269
"setup_requires": REQUIREMENTS_SETUP,

strictdoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
22

3-
__version__ = "0.0.27"
3+
__version__ = "0.0.28"
44

55
STRICTDOC_ROOT_PATH = os.path.join(os.path.dirname(__file__), "..")

0 commit comments

Comments
 (0)