Skip to content

Commit

Permalink
Add Packaging (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagueta authored Jul 4, 2024
1 parent 3bca4ed commit 6bf1ae6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include tests/assets/*.csv
22 changes: 21 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install virtualenv ipython clean test pflake8
.PHONY: install virtualenv ipython clean test pflake8 fmt lint watch docs docs-serve build


install:
Expand Down Expand Up @@ -46,3 +46,23 @@ clean: ## Clean unused files.
@rm -rf htmlcov
@rm -rf .tox/
@rm -rf docs/_build


docs:
@mkdocs build --clean


docs-serve:
@mkdocs serve


build:
@python setup.py sdist bdist_wheel


publish-test:
@twine upload --repository testpypi dist/*


publish:
@twine updload dist/*
3 changes: 3 additions & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ isort
# docs
mkdocs

# build
wheel

# Install project as editable
-e .
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ def read_requirements(path):

setup(
name="dundie",
version="0.1.0",
# Major.Minor.Patch
# X.Y.Z
version="0.1.1",
description="Reward Point System for Dundler Mifflin",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="Victor Magueta",
python_requires=">=3.8",
packages=find_packages(),
packages=find_packages(exclude=["integration"]),
include_package_data=True,
entry_points={
"console_scripts": [
"dundie = dundie.__main__:main"
Expand Down

0 comments on commit 6bf1ae6

Please sign in to comment.