Skip to content

Commit

Permalink
Make package detectable
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolab committed Dec 6, 2019
1 parent 3e79971 commit a3e46f6
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 9 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graft localite/flow
10 changes: 2 additions & 8 deletions localite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Robert Guggenberger
"""
#from localite.coil import Coil
#from localite.response import Response
# %%
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

25 changes: 25 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
SHELL := /bin/bash #to be able to execute `source`

.PHONY: build
build: clean
python setup.py sdist bdist_wheel

.PHONY: clean
clean:
rm -rf dist */*.egg-info *.egg-info build
rm -rf .test

.PHONY: test
test: build
twine check dist/*
# twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose
virtualenv .test
source .test/bin/activate
pip install git+https://github.com/labstreaminglayer/liblsl-Python.git
pip install dist/*.whl
pytest

.PHONY: upload
upload: build
twine check dist/*
twine upload dist/* --verbose
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url="https://github.com/pyreiz/ctrl-localite",
download_url="https://github.com/pyreiz/ctrl-localite",
license="MIT",
packages=setuptools.find_packages(),
packages=["localite", "localite.flow"],
entry_points={
"console_scripts": [
"ctrl-localite=localite.cli:ctrl",
Expand Down
Empty file removed test/__init__.py
Empty file.
Empty file removed test/flow/__init__,py
Empty file.

0 comments on commit a3e46f6

Please sign in to comment.