File tree Expand file tree Collapse file tree 6 files changed +719
-17
lines changed Expand file tree Collapse file tree 6 files changed +719
-17
lines changed Load Diff This file was deleted.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- # python-template
2
- General Python Project Template
3
- * Version December 29th, 2019*
1
+ *** THIS IS A TEMPLATE***
4
2
5
- [ ![ test-action] ( https://github.com/JimFawkes/python-template/workflows/run_tests/badge.svg )] ( https://github.com/JimFawkes/python-template/actions )
6
- [ ![ codecov] ( https://codecov.io/gh/JimFawkes/python-template/branch/master/graph/badge.svg )] ( https://codecov.io/gh/JimFawkes/python-template )
3
+ # <PROJECTNAME >
4
+ <DESCRIPTION >
5
+
6
+
7
+ [ ![ test-action] ( https://github.com/JimFawkes/<PROJECTNAME>/workflows/run_tests/badge.svg )] ( https://github.com/JimFawkes/<PROJECTNAME>/actions )
8
+ [ ![ codecov] ( https://codecov.io/gh/JimFawkes/<PROJECTNAME>/branch/master/graph/badge.svg )] ( https://codecov.io/gh/JimFawkes/<PROJECTNAME> )
9
+ ![ python] ( https://img.shields.io/badge/python-3.8-blue )
10
+ [ ![ black] ( https://github.com/JimFawkes/<PROJECTNAME>/workflows/Lint/badge.svg )] ( https://github.com/JimFawkes/<PROJECTNAME>/actions )
11
+ [ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( COPYING )
12
+ [ ![ Latest Tag] ( https://img.shields.io/github/v/tag/jimfawkes/<PROJECTNAME> )] ( https://github.com/JimFawkes/<PROJECTNAME>/releases )
13
+ [ ![ CodeFactor] ( https://www.codefactor.io/repository/github/jimfawkes/<PROJECTNAME>/badge )] ( https://www.codefactor.io/repository/github/jimfawkes/<PROJECTNAME> )
14
+ [ ![ CodeQL] ( https://github.com/JimFawkes/<PROJECTNAME>/workflows/CodeQL/badge.svg )] ( https://github.com/JimFawkes/<PROJECTNAME>/actions )
7
15
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ update_project_name () {
10
10
# Search entire project for the template_project_name and replace with
11
11
# actual project name
12
12
echo " Update Project name in files for $PROJECT_NAME "
13
- rg python-template -g ' !.git/*' -g ' !initialize.sh' --hidden --files-with-matches | xargs sed -i.bak " s/python-template /$PROJECT_NAME /g"
13
+ rg python-template -g ' !.git/*' -g ' !initialize.sh' --hidden --files-with-matches | xargs sed -i.bak " s/<PROJECT_NAME> /$PROJECT_NAME /g"
14
14
}
15
15
16
16
create_project_structure () {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
-
2
1
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
3
2
# It's the equivalent of r-strings in Python. Multiline strings are treated as
4
3
# verbose regular expressions by Black. Use [ ] to denote a significant space
5
4
# character.
6
5
7
6
[tool .black ]
8
- line-length = 120
7
+ line-length = 100
9
8
target-version = [" py38" ]
10
9
include = ' \.pyi?$'
11
10
exclude = '''
@@ -23,3 +22,32 @@ exclude = '''
23
22
)/
24
23
'''
25
24
25
+ [build-system ]
26
+ requires = [" flit_core >=2,<4" ]
27
+ build-backend = " flit_core.buildapi"
28
+
29
+ [tool .flit .metadata ]
30
+ module =" <PROJECTNAME>"
31
+ author =" Moritz Eilfort"
32
+ author-email =" <PROJECTNAME>@jimfawkes.com"
33
+ home-page =" https://github.com/JimFawkes/<PROJECTNAME>"
34
+ requires =[
35
+ " <REQUIREMENTS>"
36
+ ]
37
+ requires-python =" >=3.8"
38
+ description-file =" README.md"
39
+ classifiers =[
40
+ " Intended Audience :: Developers" ,
41
+ ' Natural Language :: English' ,
42
+ " License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)" ,
43
+ " Programming Language :: Python :: 3.8" ,
44
+ " Topic :: SoftwareDevelopment :: Libraries :: Python Modules" ,
45
+ ]
46
+
47
+ [tool .flit .metadata .requires-extra ]
48
+ test =[
49
+ " <REQUIREMENTS>"
50
+ ]
51
+
52
+ [tool .flit .entrypoints .console_scripts ]
53
+ <PROJECTNAME>="<PROJECTNAME>.cli:cli"
You can’t perform that action at this time.
0 commit comments