diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3a20711..bc62693 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,5 +45,5 @@ jobs: echo -e "[pypi]" >> ~/.pypirc echo -e "username = $PYPI_USERNAME" >> ~/.pypirc echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc - pip install twine + pip install twine wheel make deploy diff --git a/.gitignore b/.gitignore index 4655409..c39b70d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # App files and folders __pycache__ .coverage +build coverage dist onany.egg-info diff --git a/Makefile b/Makefile index d736f99..87dd49b 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ +citest: + coverage run -m unittest discover + coverage xml + deploy: - python setup.py sdist + python setup.py sdist bdist_wheel twine upload dist/* test: coverage run -m unittest discover coverage html - coverage report - -citest: - coverage run -m unittest discover - coverage xml + coverage report \ No newline at end of file diff --git a/setup.py b/setup.py index 2795536..e4e68c7 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,9 @@ readme = file.read() +with open(os.path.join("requirements.txt")) as file: + requirements = file.read().split("\n") + setup( name="onany", packages=["onany"], @@ -20,7 +23,7 @@ download_url="https://github.com/vinyguedess/onany/archive/master.zip", keywords=["event", "events", "listener", "dispatch"], - install_requires=[], + install_requires=requirements, classifiers=[ 'Development Status :: 5 - Production/Stable',