File tree 7 files changed +79
-5
lines changed
7 files changed +79
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
rm -rf * .egg-info build dist
13
13
find . -name ' *.pyc' -exec rm -rf {} \;
14
- python setup.py sdist bdist_wheel
14
+ hatchling build
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ help() {
12
12
13
13
14
14
if [ " ${1} " = " --version" ]; then
15
- python${PY_VERSION} -c ' from freenit.version import version ; print(version )'
15
+ python${PY_VERSION} -c ' from freenit import __version__ ; print(__version__ )'
16
16
exit 0
17
17
fi
18
18
Original file line number Diff line number Diff line change
1
+ __version__ = "0.3.0"
Original file line number Diff line number Diff line change
1
+ import subprocess
2
+ from prompt_toolkit import prompt
3
+
4
+ def main ():
5
+ project_name = prompt ("Name of the project: " )
6
+ subprocess .run (["bin/freenit.sh" , "project" , project_name ])
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" hatchling" ]
3
+ build-backend = " hatchling.build"
4
+
5
+ [project ]
6
+ name = " freenit"
7
+ dynamic = [" version" ]
8
+ description = " REST API framework based on FastAPI"
9
+ readme = " README.md"
10
+ license = {file = " LICENSE" }
11
+ requires-python = " >=3.8"
12
+ dependencies = [
13
+ " fastapi" ,
14
+ " passlib" ,
15
+ " pydantic[email]" ,
16
+ " pyjwt" ,
17
+ ]
18
+ authors = [
19
+ {
name =
" Goran Mekić" ,
email =
" [email protected] " },
20
+ ]
21
+ classifiers = [
22
+ " Development Status :: 4 - Beta" ,
23
+ " Intended Audience :: Developers" ,
24
+ " Topic :: Internet :: WWW/HTTP" ,
25
+ " Environment :: Web Environment" ,
26
+ " Programming Language :: Python"
27
+ ]
28
+
29
+ [project .optional-dependencies ]
30
+ beanie = [" beanie" ]
31
+ dev = [
32
+ " aiosqlite" ,
33
+ " black" ,
34
+ " isort" ,
35
+ " uvicorn" ,
36
+ ]
37
+ ldap = [" bonsai" ]
38
+ ormar = [
39
+ " alembic" ,
40
+ " ormar" ,
41
+ ]
42
+ test = [
43
+ " aiosqlite" ,
44
+ " bandit" ,
45
+ " black" ,
46
+ " httpx" ,
47
+ " isort" ,
48
+ " pytest-asyncio" ,
49
+ " pytest-factoryboy" ,
50
+ " requests" ,
51
+ ]
52
+
53
+ [project .urls ]
54
+ Homepage = " https://freenit.org"
55
+ Repository = " https://github.com/freenit-framework/backend"
56
+
57
+ [project .scripts ]
58
+ freenit = " freenit.cli:main"
59
+
60
+ [tool .hatch .version ]
61
+ path = " freenit/__init__.py"
62
+
63
+ [tool .hatch .build .targets .wheel ]
64
+ only-include = [" freenit" , " bin" ]
65
+
66
+ [tool .hatch .build .targets .wheel .sources ]
67
+ "src" = " "
68
+ "bin" = " freenit/bin"
Original file line number Diff line number Diff line change 4
4
5
5
from setuptools import find_packages , setup
6
6
7
- from freenit . version import version
7
+ from freenit import __version__
8
8
9
9
PROJECT_ROOT = pathlib .Path (__file__ ).parent
10
10
README = (PROJECT_ROOT / "README.md" ).read_text ()
47
47
48
48
setup (
49
49
name = "freenit" ,
50
- version = version ,
50
+ version = __version__ ,
51
51
description = "REST API framework based on FastAPI" ,
52
52
long_description = README ,
53
53
long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments