diff options
| -rw-r--r-- | CHANGELOG.md | 22 | ||||
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | pyproject.toml | 15 | ||||
| -rw-r--r-- | setup.cfg | 44 | ||||
| -rw-r--r-- | setup.py | 56 | ||||
| -rw-r--r-- | src/etoolkit/__init__.py (renamed from etoolkit/__init__.py) | 2 | ||||
| -rw-r--r-- | src/etoolkit/__main__.py (renamed from etoolkit/__main__.py) | 0 | ||||
| -rwxr-xr-x | src/etoolkit/etoolkit.py (renamed from etoolkit/etoolkit.py) | 0 |
8 files changed, 92 insertions, 58 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2c16909 --- /dev/null +++ b/CHANGELOG.md | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # Changelog | ||
| 2 | |||
| 3 | ## [1.1.0](https://github.com/blackm0re/etoolkit/tree/1.1.0) (2022-03-14) | ||
| 4 | |||
| 5 | [Full Changelog](https://github.com/blackm0re/etoolkit/compare/1.0.0...1.1.0) | ||
| 6 | |||
| 7 | **Changes:** | ||
| 8 | |||
| 9 | - a master password can now be set using the *ETOOLKIT_MASTER_PASSWORD* env. variable | ||
| 10 | |||
| 11 | - a new parameter *-P* / *--master-password-prompt* can be used in order to force password prompt | ||
| 12 | |||
| 13 | - improved tests | ||
| 14 | |||
| 15 | - use *setuptools* instead of the deprecated *distutils* | ||
| 16 | |||
| 17 | |||
| 18 | # [1.0.0](https://github.com/blackm0re/etoolkit/tree/1.0.0) (2021-12-23) | ||
| 19 | |||
| 20 | **Changes:** | ||
| 21 | |||
| 22 | - Initial release | ||
| @@ -66,7 +66,12 @@ for processes that were not spawned by that same *etoolkit* session. | |||
| 66 | ### Gentoo | 66 | ### Gentoo |
| 67 | 67 | ||
| 68 | ```bash | 68 | ```bash |
| 69 | # add sgs' custom repository using app-eselect/eselect-repository | ||
| 70 | eselect repository add sgs | ||
| 71 | |||
| 72 | # ... or using layman (obsolete) | ||
| 69 | layman -a sgs | 73 | layman -a sgs |
| 74 | |||
| 70 | emerge dev-python/etoolkit | 75 | emerge dev-python/etoolkit |
| 71 | ``` | 76 | ``` |
| 72 | 77 | ||
| @@ -285,7 +290,11 @@ bottom of your bash startup file: | |||
| 285 | complete -W '$(compgen -W "$(etoolkit -l)")' etoolkit | 290 | complete -W '$(compgen -W "$(etoolkit -l)")' etoolkit |
| 286 | ``` | 291 | ``` |
| 287 | 292 | ||
| 288 | A complete bash completion script for *etoolkit* can be found here: [https://github.com/blackm0re/etoolkit/blob/master/completion/etoolkit.bash](https://github.com/blackm0re/etoolkit/blob/master/completion/etoolkit.bash) | 293 | A complete bash completion script for *etoolkit* can be found here: |
| 294 | [https://github.com/blackm0re/etoolkit/blob/master/completion/etoolkit.bash](https://github.com/blackm0re/etoolkit/blob/master/completion/etoolkit.bash) | ||
| 295 | |||
| 296 | |||
| 297 | ## [Changelog](https://github.com/blackm0re/etoolkit/blob/master/CHANGELOG.md) | ||
| 289 | 298 | ||
| 290 | 299 | ||
| 291 | ## Support and contributing | 300 | ## Support and contributing |
diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1173069 --- /dev/null +++ b/pyproject.toml | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | [build-system] | ||
| 2 | requires = [ | ||
| 3 | "setuptools>=51", | ||
| 4 | "wheel" | ||
| 5 | ] | ||
| 6 | |||
| 7 | build-backend = "setuptools.build_meta" | ||
| 8 | |||
| 9 | |||
| 10 | [tool.pytest.ini_options] | ||
| 11 | minversion = "6.0" | ||
| 12 | addopts = "-s" | ||
| 13 | testpaths = [ | ||
| 14 | "tests" | ||
| 15 | ] | ||
diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..c218df8 --- /dev/null +++ b/setup.cfg | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | [metadata] | ||
| 2 | name = etoolkit | ||
| 3 | version = attr: etoolkit.__version__ | ||
| 4 | author = attr: etoolkit.__author__ | ||
| 5 | author_email = sgs@pichove.org | ||
| 6 | description = A simple toolkit for setting environment variables in a flexible way | ||
| 7 | long_description = file: README.md | ||
| 8 | long_description_content_type = text/markdown | ||
| 9 | url = https://github.com/blackm0re/etoolkit | ||
| 10 | |||
| 11 | classifiers = | ||
| 12 | Development Status :: 5 - Production/Stable | ||
| 13 | Environment :: Console | ||
| 14 | Intended Audience :: Developers | ||
| 15 | Intended Audience :: System Administrators | ||
| 16 | License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) | ||
| 17 | Programming Language :: Python :: 3 | ||
| 18 | Programming Language :: Python :: 3.7 | ||
| 19 | Programming Language :: Python :: 3.8 | ||
| 20 | Programming Language :: Python :: 3.9 | ||
| 21 | Programming Language :: Python :: 3.10 | ||
| 22 | Programming Language :: Python :: 3.11 | ||
| 23 | Operating System :: POSIX | ||
| 24 | Topic :: Security :: Cryptography | ||
| 25 | |||
| 26 | project_urls = | ||
| 27 | Bug Tracker = https://github.com/blackm0re/etoolkit/issues | ||
| 28 | Source = https://github.com/blackm0re/etoolkit | ||
| 29 | |||
| 30 | [options] | ||
| 31 | package_dir = | ||
| 32 | = src | ||
| 33 | packages = find: | ||
| 34 | python_requires = >=3.7 | ||
| 35 | |||
| 36 | install_requires = | ||
| 37 | cryptography>=3.2 | ||
| 38 | |||
| 39 | [options.packages.find] | ||
| 40 | where = src | ||
| 41 | |||
| 42 | [options.entry_points] | ||
| 43 | console_scripts = | ||
| 44 | etoolkit = etoolkit.__main__:main | ||
diff --git a/setup.py b/setup.py deleted file mode 100644 index b4681c3..0000000 --- a/setup.py +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | |||
| 3 | import setuptools | ||
| 4 | |||
| 5 | import etoolkit | ||
| 6 | |||
| 7 | with open('README.md', 'r', encoding='utf-8') as fh: | ||
| 8 | long_description = fh.read() | ||
| 9 | |||
| 10 | |||
| 11 | setuptools.setup( | ||
| 12 | name='etoolkit', | ||
| 13 | version=etoolkit.__version__, | ||
| 14 | author=etoolkit.__author__, | ||
| 15 | author_email='sgs@pichove.org', | ||
| 16 | description=( | ||
| 17 | 'A simple toolkit for setting environment variables in a flexible way' | ||
| 18 | ), | ||
| 19 | license=etoolkit.__license__, | ||
| 20 | long_description=long_description, | ||
| 21 | long_description_content_type='text/markdown', | ||
| 22 | url='https://github.com/blackm0re/etoolkit', | ||
| 23 | packages=setuptools.find_packages(), | ||
| 24 | exclude_package_data={'': ['.gitignore']}, | ||
| 25 | entry_points={ | ||
| 26 | 'console_scripts': [ | ||
| 27 | 'etoolkit=etoolkit.__main__:main', | ||
| 28 | ], | ||
| 29 | }, | ||
| 30 | classifiers=[ | ||
| 31 | 'Development Status :: 5 - Production/Stable', | ||
| 32 | 'Environment :: Console', | ||
| 33 | 'Intended Audience :: Developers', | ||
| 34 | 'Intended Audience :: System Administrators', | ||
| 35 | ( | ||
| 36 | 'License :: OSI Approved :: GNU General Public License v3 or later' | ||
| 37 | ' (GPLv3+)' | ||
| 38 | ), | ||
| 39 | 'Programming Language :: Python :: 3 :: Only', | ||
| 40 | 'Programming Language :: Python :: 3.7', | ||
| 41 | 'Programming Language :: Python :: 3.8', | ||
| 42 | 'Programming Language :: Python :: 3.9', | ||
| 43 | 'Programming Language :: Python :: 3.10', | ||
| 44 | 'Programming Language :: Python :: 3.11', | ||
| 45 | 'Programming Language :: Python :: Implementation', | ||
| 46 | 'Operating System :: POSIX', | ||
| 47 | 'Topic :: Security :: Cryptography', | ||
| 48 | ], | ||
| 49 | keywords='unix environment security cryptography', | ||
| 50 | project_urls={ | ||
| 51 | 'Bug Reports': 'https://github.com/blackm0re/etoolkit/issues', | ||
| 52 | 'Source': 'https://github.com/blackm0re/etoolkit', | ||
| 53 | }, | ||
| 54 | install_requires=["cryptography>=3.2"], | ||
| 55 | python_requires='>=3.7', | ||
| 56 | ) | ||
diff --git a/etoolkit/__init__.py b/src/etoolkit/__init__.py index df53a55..e2925ef 100644 --- a/etoolkit/__init__.py +++ b/src/etoolkit/__init__.py | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | from .etoolkit import EtoolkitInstance, EtoolkitInstanceError | 17 | from .etoolkit import EtoolkitInstance, EtoolkitInstanceError |
| 18 | 18 | ||
| 19 | __author__ = 'Simeon Simeonov' | 19 | __author__ = 'Simeon Simeonov' |
| 20 | __version__ = '1.1.0-rc1' | 20 | __version__ = '1.1.0' |
| 21 | __license__ = 'GPL3' | 21 | __license__ = 'GPL3' |
| 22 | 22 | ||
| 23 | 23 | ||
diff --git a/etoolkit/__main__.py b/src/etoolkit/__main__.py index 603bb2e..603bb2e 100644 --- a/etoolkit/__main__.py +++ b/src/etoolkit/__main__.py | |||
diff --git a/etoolkit/etoolkit.py b/src/etoolkit/etoolkit.py index d8221a5..d8221a5 100755 --- a/etoolkit/etoolkit.py +++ b/src/etoolkit/etoolkit.py | |||
