Skip to content

Commit

Permalink
Try using package_data to include helpers directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jan 4, 2022
1 parent 093ee97 commit 9451e2a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

0.2.2 (01/03/2022)
------------------
- Try using `package_data` to include helpers directory

0.2.1 (01/03/2022)
------------------
- Remove find_packages
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
recursive-include expose *
recursive-include helpers *
recursive-exclude venv *
recursive-exclude docs *
recursive-exclude doc_generator *
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def dependencies() -> list:
Returns:
List of dependencies to be installed.
"""
requirement_file = dirname(realpath(__file__)) + f'{sep}expose{sep}requirements.txt'
requirement_file = dirname(realpath(__file__)) + f'{sep}requirements.txt'
if isfile(requirement_file):
with open(requirement_file) as requirements:
install_requires = requirements.read().splitlines()
Expand All @@ -56,7 +56,9 @@ def dependencies() -> list:
classifiers=classifiers,
keywords='route53, certificate, ec2, ngrok-alternative, tunnel',
packages=['.expose'],
scripts=[f'expose{sep}tunnel.py', f'expose{sep}helpers{sep}auxiliary.py',
f'expose{sep}helpers{sep}nginx_server.py', f'expose{sep}helpers{sep}route_53.py'],
install_requires=dependencies()
install_requires=dependencies(),
package_data={
'expose': [f'helpers{sep}auxiliary.py', f'helpers{sep}nginx_server.py', f'helpers{sep}route_53.py'],
},
include_package_data=True
)
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_info = (0, 2, 1)
version_info = (0, 2, 2)

0 comments on commit 9451e2a

Please sign in to comment.