Skip to content

Commit

Permalink
Fix packaging of the tests directory (#1215)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
WOnder93 authored Aug 16, 2023
1 parent b188ed9 commit bad2d28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ include atlassian/VERSION
include LICENSE
include README.rst
include tox.ini
include requirements.txt
include requirements.txt
recursive-include tests *
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
maintainer_email="gonchik.tsymzhitov@gmail.com",
url="https://github.com/atlassian-api/atlassian-python-api",
keywords="atlassian jira core software confluence bitbucket bamboo crowd portfolio tempo servicedesk assets api",
packages=find_packages(include=["atlassian*", "tests*"]),
package_dir={"atlassian": "atlassian", "tests": "tests"},
packages=find_packages(include=["atlassian*"]),
package_dir={"atlassian": "atlassian"},
include_package_data=True,
zip_safe=False,
install_requires=["deprecated", "requests", "six", "oauthlib", "requests_oauthlib"],
Expand Down

0 comments on commit bad2d28

Please sign in to comment.