Obs2Org is a cross platform command (works on *BSD, Linux, OS X and Windows) line program to convert Obsidian style Markdown files to Org-Mode files for Emacs and other Editors that support Org-Mode.
at main 29 lines 977 B view raw
1:: SPDX-License-Identifier: GPL-3.0-or-later 2:: Copyright (C) 2021 Roland Csaszar 3:: 4:: Project: Obs2Org 5:: File: make_package.bat 6:: 7::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 8 9:: generates a Python PIP package in the current working directory and uploads 10:: it to Pypi. 11:: Uses pipenv, you can install that by `python -m pip install pipenv` and 12:: installing the needed packages from the Obs2Org root dir `Obs2Org` - where 13:: the `Pipfile` is located. 14:: `pipenv install --dev` installs all needed dependencies to develop. 15 16@echo off 17 18rmdir /S /Q build 19rmdir /S /Q dist 20rmdir /S /Q Obs2Org.egg-info 21 22::pipenv run python -m build 23echo Do not build the package under Windows, the file permissions are lost, shell 24echo scripts are no longer executable! 25 26 27:: pipenv run twine upload --repository testpypi dist/* --config-file %APPDATA%\pip\pip.ini 28 29:: pipenv run twine upload --repository pypi dist/* --config-file %APPDATA%\pip\pip.ini