-
-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI and drop support for py35 #1015
Closed
Closed
Changes from 4 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c4f670e
style(client): move comment inline as black and flake are contradicting
Addono 3bd06d9
ci(travis): use addono/jira-run-standalone as testing server instance
Addono f760c30
make getting started a little bit easier
studioj 95caba7
update setup.cfg
adehad 44a5249
updating tox side for Windows devs
adehad bd95d66
Merge branch 'improve_getting_started_documentation_for_ci_fixing' in…
adehad 915cd9f
Merge remote-tracking branch 'origin/master' into fix_ci
adehad 09ac5ea
new properties that use rest_api_version and rest_path
adehad a71a412
replace server property with server_url property
adehad e2a8957
bump pytest versions
adehad 717bc32
tidy some travis things
adehad 0443d31
using GH Actions
ef9c03a
fixing kerberos install
1d4b13d
waiting for docker
2ee10f5
satisfy lint, split ci into lint vs test sections,
adehad 15dd2a3
adding all py versions and pip cache
studioj 225608b
fix docs build
adehad e44abe8
bump lint versions
adehad 15f64d2
commit package lock file
adehad 19f397c
avoid duplicate builds running ?
adehad 03fb317
update developer instructions
adehad ebc4429
clean legacy
adehad 95ff1f9
fix lint, add guidance for Windows users
adehad e7c62a5
Upgrade to GitHub-native Dependabot
adehad 4afa955
drop support for py 35
studioj 2f357e9
Update setup.cfg
ssbarnea 7f385bd
Update setup.cfg
ssbarnea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
--- | ||
language: python | ||
dist: xenial | ||
services: | ||
- docker | ||
# Build only commits on master and release tags for the "Build pushed branches" feature. | ||
# This prevents building twice on PRs originating from our repo ("Build pushed pull requests)". | ||
# See: | ||
# - https://github.com/travis-ci/travis-ci/issues/1147 | ||
# - https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests | ||
branches: | ||
only: | ||
- master | ||
- /^\d+\.\d+(\.\d+)?(-\S*)?$/ | ||
# branches: | ||
# only: | ||
# - master | ||
# - /^\d+\.\d+(\.\d+)?(-\S*)?$/ | ||
|
||
cache: | ||
bundler: true | ||
|
@@ -28,6 +30,14 @@ stages: | |
before_install: | ||
- pip install --upgrade tox tox-venv | ||
- rm -rf .tox | ||
# Launch a Jira instance in detached mode | ||
- docker run -dit -p 2990:2990 --name jira addono/jira-software-standalone | ||
# Wait until Jira has booted | ||
- until $(curl -u $CI_JIRA_ADMIN:$CI_JIRA_ADMIN_PASSWORD --output /dev/null --silent --head --fail $CI_JIRA_URL/rest/api/2/permissions); do sleep 5; done | ||
# Install this repository, as we will need it in the next step | ||
- pip install . | ||
# Attempt to create the test user, as the empty JIRA instance isn't provisioned with one | ||
- (python -c "from jira import JIRA; JIRA('$CI_JIRA_URL', basic_auth=('$CI_JIRA_ADMIN', '$CI_JIRA_ADMIN_PASSWORD')).add_user('$CI_JIRA_USER', '[email protected]', password='$CI_JIRA_USER_PASSWORD')" && echo "Created user '$CI_JIRA_USER'") || (echo "Failed creating user '$CI_JIRA_USER'" && docker logs --tail 500 jira) | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
@@ -72,5 +82,9 @@ jobs: | |
branch: master | ||
env: | ||
global: | ||
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U=" | ||
- PIP_DISABLE_PIP_VERSION_CHECK=1 | ||
- CI_JIRA_URL=http://localhost:2990/jira | ||
- CI_JIRA_ADMIN=admin | ||
- CI_JIRA_ADMIN_PASSWORD=admin | ||
- CI_JIRA_USER=jira_user | ||
- CI_JIRA_USER_PASSWORD=jira |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from jira import JIRA | ||
from os import environ | ||
|
||
|
||
try: | ||
JIRA( | ||
environ["CI_JIRA_URL"], | ||
basic_auth=(environ["CI_JIRA_ADMIN"], environ["CI_JIRA_ADMIN_PASSWORD"]), | ||
).add_user( | ||
environ["CI_JIRA_USER"], | ||
"[email protected]", | ||
password=environ["CI_JIRA_USER_PASSWORD"], | ||
) | ||
except Exception as e: | ||
if not "username already exists" in str(e): | ||
raise e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[metadata] | ||
name = jira | ||
author = Ben Speakmon | ||
author-email = [email protected] | ||
author_email = [email protected] | ||
maintainer = Sorin Sbarnea | ||
maintainer-email = [email protected] | ||
maintainer_email = [email protected] | ||
summary = Python library for interacting with JIRA via REST APIs. | ||
long-description = file: README.rst | ||
long_description = file: README.rst | ||
# Do not include ChangeLog in description-file due to multiple reasons: | ||
# - Unicode chars, see https://github.com/pycontribs/jira/issues/512 | ||
# - Breaks ability to perform `python setup.py install` | ||
long-description-content-type = text/x-rst; charset=UTF-8 | ||
home-page = https://github.com/pycontribs/jira | ||
project-urls = | ||
long_description_content_type = text/x-rst; charset=UTF-8 | ||
url = https://github.com/pycontribs/jira | ||
project_urls = | ||
Bug Tracker = https://github.com/pycontribs/jira/issues | ||
Release Management = https://github.com/pycontribs/jira/projects | ||
CI: Travis = https://travis-ci.com/pycontribs/jira | ||
Source Code = https://github.com/pycontribs/jira.git | ||
Documentation = https://jira.readthedocs.io/en/master/ | ||
Forum = https://community.atlassian.com/t5/tag/jira-python/tg-p?sort=recent | ||
requires-python = >=3.5 | ||
requires_python = >=3.5 | ||
platforms = any | ||
license = BSD | ||
classifiers = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice i wash just cleaning up that functionality too 👍
maybe this can be used in the test.local script too