Skip to content

Commit

Permalink
Fixed distribution package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed Jul 20, 2023
1 parent 09ddcbd commit 5e39294
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ include common-requirements.txt
include py2-requirements.txt
include py3-requirements.txt

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
recursive-exclude tests/ *
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ docs: ## generate Sphinx HTML documentation, including API docs
servedocs: docs ## compile the docs watching for changes
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .

release: clean ## package and upload a release
python -m build -n
release: clean dist ## package and upload a release
twine dist/*

dist: clean ## builds source and wheel package
cp README.rst README.rst.bak
sed -i "s/.. raw:: html//g" README.rst
sed -i -E "s/ +<a href.+//g" README.rst
python -m build -n
ls -l dist
mv README.rst.bak README.rst

install: clean ## install the package to the active Python's site-packages
python setup.py install

0 comments on commit 5e39294

Please sign in to comment.