File tree Expand file tree Collapse file tree 3 files changed +33
-10
lines changed Expand file tree Collapse file tree 3 files changed +33
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ publish :
9
+
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v2
15
+ with :
16
+ python-version : 3.8
17
+ - name : Install dependencies
18
+ run : python -m pip install --upgrade pip setuptools twine wheel
19
+ - name : Build package
20
+ run : python setup.py sdist bdist_wheel
21
+ - name : Publish to PyPI
22
+ run : twine upload --non-interactive dist/*
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools>=42" , " wheel" , " setuptools_scm[toml]>=3.4" ]
3
+
1
4
[tool .black ]
2
5
line_length =88
3
6
4
7
[tool .isort ]
5
8
known_first_party = [" haystack" , " test_haystack" ]
6
9
profile = " black"
7
- multi_line_output = 3
10
+ multi_line_output = 3
11
+
12
+ [tool .setuptools_scm ]
13
+ fallback_version = " 0.0.dev0"
14
+ write_to = " haystack/version.py"
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from setuptools import setup
3
3
4
- try :
5
- from setuptools import setup
6
- except ImportError :
7
- from ez_setup import use_setuptools
8
-
9
- use_setuptools ()
10
- from setuptools import setup
11
-
12
4
install_requires = ["Django>=2.2" ]
13
5
14
6
tests_require = [
45
37
"Environment :: Web Environment" ,
46
38
"Framework :: Django" ,
47
39
"Framework :: Django :: 2.2" ,
48
- "Framework :: Django :: 3.0" ,
40
+ "Framework :: Django :: 3.1" ,
41
+ "Framework :: Django :: 3.2" ,
49
42
"Intended Audience :: Developers" ,
50
43
"License :: OSI Approved :: BSD License" ,
51
44
"Operating System :: OS Independent" ,
55
48
"Programming Language :: Python :: 3.6" ,
56
49
"Programming Language :: Python :: 3.7" ,
57
50
"Programming Language :: Python :: 3.8" ,
51
+ "Programming Language :: Python :: 3.9" ,
58
52
"Topic :: Utilities" ,
59
53
],
60
54
zip_safe = False ,
You can’t perform that action at this time.
0 commit comments