Skip to content

Commit 11422ec

Browse files
authored
Update code and tooling.
1 parent 7aaf4b4 commit 11422ec

File tree

162 files changed

+1230
-2169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+1230
-2169
lines changed

.coveragerc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,27 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: [3.9, "3.10", 3.11, 3.12]
17+
python-version: ["3.10", 3.11, 3.12, 3.13]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Setup Git
2222
run: |
2323
git config --global user.email "[email protected]"
2424
git config --global user.name "auto tester"
2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Setup uv
30+
uses: astral-sh/setup-uv@v6
2931
- name: Install deps
3032
run: |
31-
python -m pip install pytest coverage coveralls
33+
uv sync
34+
uv pip install coverage coveralls
3235
- name: Run tests
3336
env:
3437
GITHUB_TOKEN: ${{ secrets.github_token }}
3538
run: |
36-
coverage run --source=makeapp setup.py test
37-
coveralls --service=github
39+
uv run coverage run --source=makeapp -m pytest
40+
uv run coveralls --service=github

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
.pydevproject
33
.idea
44
.tox
5+
.venv
56
__pycache__
67
*.pyc
78
*.pyo
89
*.egg-info
9-
docs/_build/
10+
.mypy_cache
11+
.ruff_cache
12+
.pytest_cache
13+
.env

.readthedocs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
3+
build:
4+
os: "ubuntu-24.04"
5+
tools:
6+
python: "3"
7+
jobs:
8+
pre_install:
9+
- pip install mkdocs-material mkdocs-navsorted-plugin
10+
11+
mkdocs:
12+
configuration: mkdocs.yml
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
makeapp authors
2-
===============
1+
# makeapp authors
32

43
Created by Igor `idle sign` Starikov.
54

65

7-
Contributors
8-
------------
6+
## Contributors
97

108
Here could be your name.

CHANGELOG renamed to CHANGELOG.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
makeapp changelog
2-
=================
3-
4-
5-
Unreleased
6-
----------
7-
+ Added virtual environment creation on project rollout.
8-
+ CLI. Added 'venv reset' command.
9-
+ CLI. Descriptions passed to 'change' command all go into a commit messages.
10-
* Added QA for Py 3.11, 3.12.
11-
* Dropped QA for Py 3.7, 3.8.
12-
* Fixed package name availability check.
1+
# makeapp changelog
2+
3+
4+
# Unreleased
5+
* !! Big rewrite. Now uses up-to-date technologies.
6+
* ++ Added virtual environment creation on project rollout.
7+
* ++ CLI. Added 'venv reset' command.
8+
* ++ CLI. Descriptions passed to 'change' command all go into a commit messages.
9+
* ** Added QA for Py 3.11, 3.12, 3.13.
10+
* ** Dropped QA for Py 3.7, 3.8, 3.9.
11+
* ** Fixed package name availability check.
1312

1413

1514
v1.9.1 [2023-05-19]

INSTALL

Lines changed: 0 additions & 31 deletions
This file was deleted.

INSTALL.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# makeapp installation
2+
3+
Use ``uv`` to install and upgrade ``makeapp``.
4+
https://docs.astral.sh/uv/getting-started/installation/
5+
6+
## Install
7+
8+
```bash
9+
uv tool install makeapp
10+
```
11+
12+
## Upgrade
13+
14+
```bash
15+
uv tool upgrade makeapp
16+
```

MANIFEST.in

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 28 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
1-
makeapp
2-
=======
3-
https://github.com/idlesign/makeapp
4-
5-
|release| |lic| |coverage|
6-
7-
.. |release| image:: https://img.shields.io/pypi/v/makeapp.svg
8-
:target: https://pypi.python.org/pypi/makeapp
1+
# makeapp
92

10-
.. |lic| image:: https://img.shields.io/pypi/l/makeapp.svg
11-
:target: https://pypi.python.org/pypi/makeapp
12-
13-
.. |coverage| image:: https://img.shields.io/coveralls/idlesign/makeapp/master.svg
14-
:target: https://coveralls.io/r/idlesign/makeapp
3+
https://github.com/idlesign/makeapp
154

5+
[![PyPI - Version](https://img.shields.io/pypi/v/makeapp)](https://pypi.python.org/pypi/makeapp)
6+
[![License](https://img.shields.io/pypi/l/makeapp)](https://pypi.python.org/pypi/makeapp)
7+
[![Coverage](https://img.shields.io/coverallsCoverage/github/idlesign/makeapp)](https://coveralls.io/r/idlesign/makeapp)
168

17-
Description
18-
------------
9+
## Description
1910

2011
*Simplifies Python application rollout and publishing.*
2112

@@ -28,23 +19,20 @@ Description
2819
* Publish your application to remotes (VCS, PyPI) with single command.
2920

3021

31-
Application scaffolding
32-
-----------------------
22+
## Application scaffolding
3323

3424
Scaffold a new application:
3525

36-
.. code-block:: bash
37-
38-
$ makeapp new my_new_app /home/librarian/mynewapp/ -d "My application." --author "The Librarian"
26+
``` bash
27+
makeapp new my_new_app /home/librarian/mynewapp/ -d "My application." --author "The Librarian"
28+
```
3929

40-
41-
This will create a decent application skeleton using the default skeleton template (``setup.py``, docs, tests, etc.)
30+
This will create a decent application skeleton using the default skeleton template (``pyproject.toml``, docs, tests, etc.)
4231
and initialize Git repository.
4332

4433
``makeapp`` also bundles templates for commonly used application types:
4534

4635
* ``click`` powered app
47-
* ``pytest`` powered app
4836
* ``pytest`` plugin
4937
* ``Django`` app
5038
* ``webscaff`` project (https://github.com/idlesign/webscaff)
@@ -54,17 +42,15 @@ Multiple templates can be used together. Complete list of featured templates can
5442
User-made templates are also supported.
5543

5644

57-
Application publishing
58-
----------------------
59-
60-
When you're ready to publish issue the following command while in project directory (containing ``setup.py``):
61-
62-
.. code-block:: bash
45+
## Application publishing
6346

64-
$ makeapp release
65-
; Bump version number part manually: major, minor, patch
66-
$ makeapp release --increment major
47+
When you're ready to publish issue the following command while in project directory (containing ``pyproject.toml``):
6748

49+
``` bash
50+
makeapp release
51+
; Bump version number part manually: major, minor, patch
52+
makeapp release --increment major
53+
```
6854

6955
This will automatically:
7056

@@ -74,14 +60,13 @@ This will automatically:
7460
* upload application package to PyPI
7561

7662

77-
Adding changes
78-
--------------
63+
## Adding changes
7964

8065
When you're ready to add another entry to your changelog use ``change`` command:
8166

82-
.. code-block:: bash
83-
84-
$ makeapp change "+ New 'change' command implemented"
67+
``` bash
68+
makeapp change "+ New 'change' command implemented"
69+
```
8570

8671
This will also stage and commit all changed files.
8772

@@ -104,17 +89,14 @@ Supported message prefixes:
10489
Increment: *patch*.
10590

10691

107-
Bash completion
108-
---------------
92+
## Bash completion
10993

11094
To enable bash completion for ``makeapp`` command append the following line into your ``.bashrc``:
11195

112-
.. code-block:: bash
113-
114-
eval "$(_MAKEAPP_COMPLETE=source makeapp)"
115-
96+
``` bash
97+
eval "$(_MAKEAPP_COMPLETE=source makeapp)"
98+
```
11699

117-
Documentation
118-
-------------
100+
## Documentation
119101

120-
https://makeapp.readthedocs.org/
102+
https://makeapp.readthedocs.io/

0 commit comments

Comments
 (0)