mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Remove toml dep from setup.py
This commit is contained in:
parent
da1cd8ae1d
commit
b0299ee552
@ -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,
|
||||
# OnionShare uses briefcase.
|
||||
|
||||
import toml
|
||||
import setuptools
|
||||
|
||||
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(
|
||||
name="onionshare",
|
||||
|
Loading…
Reference in New Issue
Block a user