-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16d99b0
commit 3f5aa85
Showing
8 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,3 +163,5 @@ cython_debug/ | |
examples/tmp | ||
|
||
tmp | ||
|
||
pypi.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ | |
|
||
pytest | ||
ipython | ||
|
||
setuptools | ||
wheel | ||
twine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
import setuptools | ||
|
||
|
||
def parse_requirements(requirements: str): | ||
with open(requirements) as f: | ||
return [ | ||
l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#') | ||
] | ||
|
||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="toml_union", | ||
version="1.0.0", | ||
author="Demetry Pascal", | ||
author_email="qtckpuhdsa@gmail.com", | ||
maintainer='Demetry Pascal', | ||
description="Utils to merge *.toml files with conflicts highlighting", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/PasaOpasen/toml-union", | ||
license='MIT', | ||
keywords=['toml', 'merge'], | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.8", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
install_requires=parse_requirements('./requirements.txt'), | ||
entry_points = { | ||
'console_scripts': ['toml-union=toml_union.toml_union:main'], | ||
}, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
from .toml_union import toml_union_process, override_param, remove_field, read_toml, write_toml, write_json | ||
from .toml_union import toml_union_process, override_param, remove_field, read_toml, write_toml, write_json, read_text, write_text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# pushes to pypi with credentials reading | ||
# | ||
|
||
if [ -f pypi.sh ] | ||
then | ||
source pypi.sh | ||
fi | ||
|
||
U=${PYPI_USERNAME} | ||
P=${PYPI_PASSWORD} | ||
|
||
if [ -n "$U" ] && [ -n "$P" ] | ||
then | ||
venv/bin/python -m twine upload -u $U -p $P dist/* --skip-existing | ||
else | ||
echo "credentials not found" | ||
venv/bin/python -m twine upload dist/* --skip-existing | ||
fi | ||
|