mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-27 08:36:05 -04:00
Remove toml dep from setup.py
This commit is contained in:
parent
da1cd8ae1d
commit
b0299ee552
1 changed files with 4 additions and 2 deletions
|
@ -22,11 +22,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# This setup.py file is used for flatpak packaging. For other packaging,
|
# This setup.py file is used for flatpak packaging. For other packaging,
|
||||||
# OnionShare uses briefcase.
|
# OnionShare uses briefcase.
|
||||||
|
|
||||||
import toml
|
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
with open("../pyproject.toml") as f:
|
with open("../pyproject.toml") as f:
|
||||||
version = toml.loads(f.read())["tool"]["briefcase"]["version"]
|
for line in f.readlines():
|
||||||
|
if line.startswith("version = "):
|
||||||
|
version = line.split('"')[1]
|
||||||
|
break
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="onionshare",
|
name="onionshare",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue