Skip to content

Commit

Permalink
Complete packaging. Resolves #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtmartensson committed Jun 29, 2017
1 parent 3047174 commit 5894685
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include README.md
include README.rst
include LICENSE
include bin/lirconian
include api_example.py
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PIP=pip3.5
PACKAGE=lirconian
VERSION=$(shell bin/$(PACKAGE) --version)

all: style
all: sdist bdist

style: pep8 pylint

Expand All @@ -24,10 +24,15 @@ uninstall:

sdist: dist/$(PACKAGE)-$(VERSION).tar.gz

bdist: dist/$(PACKAGE)-$(VERSION)-py2.py3-none-any.whl

dist/$(PACKAGE)-$(VERSION).tar.gz: setup.py
$(PYTHON) setup.py sdist

dist/$(PACKAGE)-$(VERSION)-py2.py3-none-any.whl:
$(PYTHON) setup.py bdist_wheel

clean:
rm -rf dist __pycache__ $(PACKAGE).egg-info
rm -rf dist build __pycache__ $(PACKAGE).egg-info

.PHONY: pep8 pylint clean
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
license = "GPLv2+",
packages = ['lirconian'],
# scripts=['bin/lirconian'],
include_package_data = True,
entry_points = {'console_scripts': ['lirconian=lirconian:main']},
classifiers = [
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
Expand Down

0 comments on commit 5894685

Please sign in to comment.