Skip to content

Commit f36dd6c

Browse files
committed
Restructuring.
1 parent 0d259a7 commit f36dd6c

39 files changed

+578
-1051
lines changed

.coveragerc

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

.github/workflows/python-package.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,26 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, "3.10"]
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: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
- name: Setup uv
26+
uses: astral-sh/setup-uv@v6
2527
- name: Install deps
2628
run: |
27-
python -m pip install pytest coverage coveralls
29+
uv sync --only-group tests
30+
uv pip install coveralls
31+
- uses: astral-sh/ruff-action@v3
32+
with:
33+
args: check
2834
- name: Run tests
2935
env:
3036
GITHUB_TOKEN: ${{ secrets.github_token }}
3137
run: |
32-
coverage run --source=envbox setup.py test
33-
coveralls --service=github
38+
uv run coverage run -m pytest
39+
uv run coveralls --service=github

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
.project
2-
.pydevproject
31
.idea
42
.tox
53
__pycache__
64
*.pyc
75
*.pyo
86
*.egg-info
9-
docs/_build/
10-

.readthedocs.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 mkdocs-apidescribed-plugin git+https://github.com/idlesign/envbox
10+
11+
mkdocs:
12+
configuration: mkdocs.yml
13+

AUTHORS

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

AUTHORS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# envbox authors
2+
3+
Created by Igor `idle sign` Starikov.
4+
5+
6+
## Contributors
7+
8+
Here could be your name.

CHANGELOG

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

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# envbox changelog
2+
3+
### v1.3.0 [2022-06-08]
4+
* ++ 'read_envfile()' now supports Path objects.
5+
* ++ Implemented support for multiline values in .env files.
6+
7+
8+
### v1.2.0 [2020-05-02]
9+
* !! Dropped support for Py 2.
10+
* ** Added QA for Py 3.8.
11+
* ** Dropped support for Py 3.5.
12+
13+
14+
### v1.1.0
15+
* !! Dropped QA for Python 2.
16+
* ++ Improved 'import_by_environment' no accepts optional 'package_name' argument.
17+
18+
19+
### v1.0.0
20+
* !! Dropped QA for Python 3.4.
21+
* ** Dropped support for py<3.4.
22+
* ** No functional changes. Celebrating 1.0.0.
23+
24+
25+
### v0.4.0
26+
* ++ Added per-thread settings container SettingsBase.
27+
28+
29+
### v0.3.0
30+
* ++ CLI. Added 'show' command.
31+
* ++ Added 'dev', 'test', 'stage', 'prod' aliases.
32+
* ++ Environment initializer now accepts 'name' and 'type_cast' arguments.
33+
* ++ Added support for .env files (see #1).
34+
* ++ set() and setmany() now accept 'overwrite' argument.
35+
36+
37+
### v0.2.0
38+
* ++ Introduced 'import_by_environment()' function.
39+
40+
41+
### v0.1.0
42+
* ++ Basic functionality.

INSTALL

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

INSTALL.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# envbox installation
2+
3+
Python `pip` package is required to install `envbox`.
4+
5+
6+
## From sources
7+
8+
Use the following command line to install `envbox` from sources directory (containing setup.py):
9+
10+
pip install .
11+
12+
13+
## From PyPI
14+
15+
Alternatively you can install `envbox` from PyPI:
16+
17+
pip install envbox
18+
19+
; Install with Click package for CLI:
20+
pip install uwsgiconf[cli]
21+
22+
Use `-U` flag for upgrade:
23+
24+
pip install -U envbox
25+

0 commit comments

Comments
 (0)