From 01db9c0923b9cb60f2a6641255e94b6d6a496a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20B=C3=A4uerle?= Date: Sun, 24 Oct 2021 21:29:06 +0200 Subject: [PATCH] Added autodeploy to travis for pypi (#26) --- .travis.yml | 11 +++++++++-- CONTRIBUTING.md | 14 ++++++++++---- requirements.txt | 2 ++ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 02cf24f..f0a2c9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,14 @@ language: python -python: '3.8' - +python: "3.8" install: - pip install -r requirements.txt scripts: - pylint luna +deploy: + provider: pypi + username: "__token__" + password: + secure: qw3pIHSqqfxgsCer/ufOn0u7X/vVznNiFJUq++SwJzBdUu+LtjhxscvBLVZ2GoaKC3k/qrwdXUZCzcAIAWlQlgbD8d+OCXla+0AyIKjpZUkPGZdjPQW8RGQlTatM1jKJRt4DtpSJqoBJi/Qx30Cjea+idRcqnmZtIV+BHC8VgkFqmxX34D9T4pJvR/SmeJXMf+8yKaQvwXcdiSVuHbUtBXNs/3jz/RiO4nMJfRbqGlrGfZeQUCSaLYueN0HQ+K1UODtX3tlX2LiaZldUA9w5E2vlEa/ijqyZdfXsI+MRRGSAVeogARvinkzoWWuNaOHGfH6nH1St2m3+a78twFcGBBlmcx8MDU0j2PzpCZx7RQXUFXCpOb79y5ibp2OrT5Fo5b7gtdcmx4baXzxVpHPWYNiSM4S6YfwSm3bNcJveoLYRIqzBeY1CVmrPNC1lh//6ThqpXsGk7rkh4ZOCTtdkdkMPiEr2fe53ZazVkgjykGd+qzJlmAAa/VhJ+UEBRiskGc6wIF+quoKrq6Jt7uoeEL03szwmPT9iJxcEU7eCoa6od1/nVBq/xYq2kwrhcnWumXYLAvexsAC0K8S25UhJMQxj+ylR89cZk4OAY3etnzFURb7JjQHKiZyn0H88/tFfCzikggB4jVFreMhrDudMIUCG6UJPdVP1PJm+dtNwmsk= + on: + tags: true + branch: master diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 447fd87..cdb7cd2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,11 +10,17 @@ To contribute your changes, you need to apply them to a different branch (on a f We will review these requests as fast as we can to get your changes in. Please make sure your changes pass our tests (they will be run automatically for every PR). -### Docs - -To also deploy the documentation if something has changed there, use the [update script](./pages-publish.sh). - ### Open Issues For contribution opportunities, see our [Issues](https://github.com/Sparkier/luna/issues). To get started, look for ones with the tag **good first issue**. + +### Releasing + +To create a new release of Luna, update the verion number in [setup.cfg](./setup.cfg) and tag your release accordingly with `git tag `. +Make sure to push your tag with `git push --tags`. +Once your commit is merged, it will automatically be deployed. + +### Docs + +To also deploy the documentation if something has changed there, use the [update script](./pages-publish.sh). diff --git a/requirements.txt b/requirements.txt index 0a83928..b2d6ca1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,5 @@ pylint sphinx furo m2r2 +build +twine