Skip to content

Commit

Permalink
chore: declare needed packages when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
vinyguedess committed May 9, 2020
1 parent 04593cb commit 8628ec7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# App files and folders
__pycache__
.coverage
build
coverage
dist
onany.egg-info
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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',
Expand Down

0 comments on commit 8628ec7

Please sign in to comment.