Skip to content

Commit bad2d28

Browse files
authored
Fix packaging of the tests directory (#1215)
Do not install tests as a package, but instead include it only in the source tarball via MANIFEST.in. I have verified that the resulting tarball installs only the 'atlassian' package into site-packages and that the included files are sufficient to successfully run the tests. Fixes #1206 Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
1 parent b188ed9 commit bad2d28

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include atlassian/VERSION
22
include LICENSE
33
include README.rst
44
include tox.ini
5-
include requirements.txt
5+
include requirements.txt
6+
recursive-include tests *

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
maintainer_email="gonchik.tsymzhitov@gmail.com",
2222
url="https://github.com/atlassian-api/atlassian-python-api",
2323
keywords="atlassian jira core software confluence bitbucket bamboo crowd portfolio tempo servicedesk assets api",
24-
packages=find_packages(include=["atlassian*", "tests*"]),
25-
package_dir={"atlassian": "atlassian", "tests": "tests"},
24+
packages=find_packages(include=["atlassian*"]),
25+
package_dir={"atlassian": "atlassian"},
2626
include_package_data=True,
2727
zip_safe=False,
2828
install_requires=["deprecated", "requests", "six", "oauthlib", "requests_oauthlib"],

0 commit comments

Comments
 (0)