This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-30
lines changed Expand file tree Collapse file tree 3 files changed +40
-30
lines changed Original file line number Diff line number Diff line change 1
- sudo : false
1
+ dist : xenial
2
2
language : python
3
- services :
4
- - memcached
5
- - postgresql
6
- - redis-server
7
3
python :
8
4
- ' 2.7'
9
5
cache :
10
6
directories :
11
7
- node_modules
12
8
- " $HOME/.cache/pip"
9
+
10
+ matrix :
11
+ fast_finish : true
12
+ include :
13
+ - name : ' Linter'
14
+ script :
15
+ - pip install 'sentry-flake8==0.1.1'
16
+ - make lint
17
+ - name : ' Tests (sentry latest release)'
18
+ install :
19
+ - make ci-install-tests-sentry-latest
20
+ script :
21
+ - coverage run --source=. -m make test
22
+ - name : ' Tests (sentry git)'
23
+ install :
24
+ - make ci-install-tests-sentry-git
25
+ script :
26
+ - coverage run --source=. -m make test
27
+
28
+ after_success :
29
+ - codecov
30
+
13
31
deploy :
14
32
provider : pypi
15
33
user : getsentry
@@ -18,15 +36,3 @@ deploy:
18
36
on :
19
37
tags : true
20
38
distributions : sdist bdist_wheel
21
- env :
22
- global :
23
- - PIP_DOWNLOAD_CACHE=".pip_download_cache"
24
- before_install :
25
- - pip install codecov
26
- install :
27
- - make develop
28
- script :
29
- - PYFLAKES_NODOCTEST=1 flake8
30
- - coverage run --source=. -m py.test tests
31
- after_success :
32
- - codecov
Original file line number Diff line number Diff line change 1
1
.PHONY : clean develop install-tests lint publish test
2
2
3
- develop :
4
- pip install " pip>=7"
5
- pip install -e .
6
- make install-tests
3
+ install-pip :
4
+ pip install " pip==19.2.3"
7
5
8
- install-tests :
6
+ develop : install-pip
7
+ SENTRY_LIGHT_BUILD=1 pip install --no-use-pep517 -e " ../sentry[dev]"
8
+ pip install -e .[tests]
9
+
10
+ ci-install-tests-sentry-git : install-pip
11
+ pip install --no-use-pep517 ' git+https://github.com/getsentry/sentry.git#egg=sentry[dev]'
12
+ pip install .[tests]
13
+
14
+ ci-install-tests-sentry-latest : install-pip
15
+ # Note that requirements-test (setuptools tests_require) is in 9.1.2 but was removed in git.
16
+ pip install --no-use-pep517 ' sentry[dev,tests]'
9
17
pip install .[tests]
10
18
11
19
lint :
Original file line number Diff line number Diff line change 9
9
10
10
11
11
install_requires = [
12
- 'sentry>=7.0.0' ,
13
- ]
14
-
15
- tests_require = [
16
- 'mock' ,
17
- 'flake8>=2.0,<2.1' ,
12
+ 'sentry>=9.0.0' ,
18
13
]
19
14
20
15
setup (
29
24
packages = find_packages (exclude = ['tests' ]),
30
25
zip_safe = False ,
31
26
install_requires = install_requires ,
32
- tests_require = tests_require ,
33
- extras_require = {'tests' : tests_require },
27
+ extras_require = {
28
+ 'tests' : [],
29
+ },
34
30
include_package_data = True ,
35
31
entry_points = {
36
32
'sentry.apps' : [
You can’t perform that action at this time.
0 commit comments