Skip to content

Commit

Permalink
Added: requirements to include files
Browse files Browse the repository at this point in the history
  • Loading branch information
asrulsibaoel committed Dec 25, 2023
1 parent 0704789 commit 51dc82c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include LICENSE
include HISTORY.md
include Containerfile
include requirements.txt
include requirements-test.txt
graft tests
graft gmaps_scrapper
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ release: ## Create a new tag for release.
@git push -u origin HEAD --tags
@echo "Github Actions will detect the new tag and release the new version."

.PHONY: build
build:
@echo "-=[ Building package ... ]=-"
@rm -rf dist
@rm -rf ./**/__pycache__
@python -m build

.PHONY: docs
docs: ## Build the documentation.
@echo "building documentation ..."
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from setuptools import find_packages, setup


dir_path = os.path.dirname(os.path.realpath(__file__))


def read(*paths, **kwargs):
"""Read the contents of a text file safely.
>>> read("gmaps_scrapper", "VERSION")
Expand All @@ -24,7 +27,7 @@ def read(*paths, **kwargs):
def read_requirements(path):
return [
line.strip()
for line in read(path).split("\n")
for line in read(os.path.join(dir_path, path)).split("\n")
if not line.startswith(('"', "#", "-", "git+"))
]

Expand All @@ -38,6 +41,7 @@ def read_requirements(path):
long_description_content_type="text/markdown",
author="asrulsibaoel",
packages=find_packages(exclude=["tests", ".github"]),
package_data={"": ["requirements.txt"]},
install_requires=read_requirements("requirements.txt"),
entry_points={
"console_scripts": ["gmaps_scrapper = gmaps_scrapper.__main__:main"]
Expand Down

0 comments on commit 51dc82c

Please sign in to comment.